forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[glib/gts] Add pkgconfig files (microsoft#11884)
* [glib/gts] Add pkgconfig files * Update the patch * Update ports/glib/CMakeLists.txt
- Loading branch information
Showing
6 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters