aboutsummaryrefslogtreecommitdiff
path: root/ports/gts/fix-pkgconfig.patch
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2020-06-12 12:30:40 +0800
committerGitHub <noreply@github.com>2020-06-11 21:30:40 -0700
commitdf99d8dcc2286e6a9b167bc7b52a2f44e69f3082 (patch)
tree6be97a0626c0c72a4f6b3fe522ed407ea92d5998 /ports/gts/fix-pkgconfig.patch
parentd690c9bf7f3e44f57299d9272cfa8071bbd30198 (diff)
downloadvcpkg-df99d8dcc2286e6a9b167bc7b52a2f44e69f3082.tar.gz
vcpkg-df99d8dcc2286e6a9b167bc7b52a2f44e69f3082.zip
[glib/gts] Add pkgconfig files (#11884)
* [glib/gts] Add pkgconfig files * Update the patch * Update ports/glib/CMakeLists.txt
Diffstat (limited to 'ports/gts/fix-pkgconfig.patch')
-rw-r--r--ports/gts/fix-pkgconfig.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/ports/gts/fix-pkgconfig.patch b/ports/gts/fix-pkgconfig.patch
new file mode 100644
index 000000000..59deeca22
--- /dev/null
+++ b/ports/gts/fix-pkgconfig.patch
@@ -0,0 +1,28 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index f458c35..8035507 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -124,3 +124,11 @@ INSTALL(FILES
+ src/gtsconfig.h
+ DESTINATION include COMPONENT Development
+ )
++
++set(prefix ${CMAKE_INSTALL_PREFIX})
++set(exec_prefix ${CMAKE_INSTALL_PREFIX})
++set(libdir ${CMAKE_INSTALL_PREFIX}/lib)
++set(includedir ${CMAKE_INSTALL_PREFIX}/include)
++
++configure_file("${CMAKE_CURRENT_SOURCE_DIR}/gts.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/gts.pc" @ONLY)
++install(FILES "${CMAKE_CURRENT_BINARY_DIR}/gts.pc" DESTINATION lib/pkgconfig)
+\ No newline at end of file
+diff --git a/gts.pc.in b/gts.pc.in
+index 39626d7..bcd4014 100644
+--- a/gts.pc.in
++++ b/gts.pc.in
+@@ -7,5 +7,5 @@ Name: GTS
+ Description: GNU Triangulated Surface Library
+ Version: @VERSION@
+ Requires: glib-2.0,gthread-2.0,gmodule-2.0
+-Libs: -L${libdir} @LIBS@ -lgts -lm
++Libs: -L${libdir} @LIBS@ -lgts
+ Cflags: -I${includedir}