diff options
| author | Phoebe <20694052+PhoebeHui@users.noreply.github.com> | 2020-06-12 12:30:40 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-11 21:30:40 -0700 |
| commit | df99d8dcc2286e6a9b167bc7b52a2f44e69f3082 (patch) | |
| tree | 6be97a0626c0c72a4f6b3fe522ed407ea92d5998 /ports/gts | |
| parent | d690c9bf7f3e44f57299d9272cfa8071bbd30198 (diff) | |
| download | vcpkg-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')
| -rw-r--r-- | ports/gts/CONTROL | 2 | ||||
| -rw-r--r-- | ports/gts/fix-pkgconfig.patch | 28 | ||||
| -rw-r--r-- | ports/gts/portfile.cmake | 7 |
3 files changed, 33 insertions, 4 deletions
diff --git a/ports/gts/CONTROL b/ports/gts/CONTROL index 3685a47b3..7d9db7391 100644 --- a/ports/gts/CONTROL +++ b/ports/gts/CONTROL @@ -1,5 +1,5 @@ Source: gts
-Version: 0.7.6-2
+Version: 0.7.6-3
Homepage: https://github.com/finetjul/gts
Description: A Library intended to provide a set of useful functions to deal with 3D surfaces meshed with interconnected triangles
Build-Depends: glib
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}
diff --git a/ports/gts/portfile.cmake b/ports/gts/portfile.cmake index 7a603e076..da7ed6183 100644 --- a/ports/gts/portfile.cmake +++ b/ports/gts/portfile.cmake @@ -9,6 +9,7 @@ vcpkg_from_github( PATCHES fix-M_PI-in-windows.patch support-unix.patch + fix-pkgconfig.patch ) vcpkg_configure_cmake( @@ -19,7 +20,7 @@ vcpkg_install_cmake() file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) -# Handle copyright -file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) - +vcpkg_fixup_pkgconfig() vcpkg_copy_pdbs() + +file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |
