-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[pkg-config] Add new port #11523
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
[pkg-config] Add new port #11523
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
00eadfb
[vcpkg/scripts/make] add CONFIG_DEPENDENT_ENVIROMNENT
Neumann-A b75ad09
[pkg-config] add new port
Neumann-A 066c859
[pkg-config] add pthread as a dependency on not windows
Neumann-A 3679993
[vcpkg/ci] update baseline
Neumann-A d0a8a8f
[vcpkg/scripts/make] fix spelling of environment
Neumann-A 50c9ae1
[pkg-config] fix spelling
Neumann-A File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,5 @@ | ||
| Source: pkg-config | ||
| Version: 0.29.2 | ||
| Homepage: https://gitlab.freedesktop.org/pkg-config/pkg-config | ||
| Description: pkg-config is a script to make putting together all the build flags when compiling/linking a lot easier. | ||
| Build-Depends: glib[core] |
This file contains hidden or 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,49 @@ | ||
| set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) # Tool build no library or includes | ||
|
|
||
| vcpkg_from_gitlab( | ||
| GITLAB_URL https://gitlab.freedesktop.org/ | ||
| OUT_SOURCE_PATH SOURCE_PATH | ||
| REPO pkg-config/pkg-config | ||
| REF edf8e6f0ea77ede073f07bff0d2ae1fc7a38103b #v0.29.2 | ||
| SHA512 537bace09ff183ec793587fc7cf091d75cd5ec34efc1261227de70a15631f40558528f19dbe9e3f2eb8bc24bed21003a01c7766c849ae498031c0c1ae322e314 | ||
| HEAD_REF master | ||
| ) | ||
|
|
||
| # Remove if GLIB installs a *.pc file or keep it to make it independent of pkg-config itself | ||
| set(GLIBS "-lglib-2.0 -lgio-2.0 -lgmodule-2.0 -lgobject-2.0 -lgthread-2.0") | ||
| if(VCPKG_TARGET_IS_WINDOWS) | ||
| set(GLIB_LIBS_DEBUG "-L${CURRENT_INSTALLED_DIR}/debug/lib ${GLIBS} -lzlibd") | ||
| set(GLIB_LIBS_RELEASE "-L${CURRENT_INSTALLED_DIR}/lib ${GLIBS} -lzlib") | ||
| else() | ||
| set(GLIB_LIBS_DEBUG "-L${CURRENT_INSTALLED_DIR}/lib ${GLIBS} -lz -pthread") | ||
| set(GLIB_LIBS_RELEASE "-L${CURRENT_INSTALLED_DIR}/lib ${GLIBS} -lz -pthread") | ||
| endif() | ||
|
|
||
| set(ENV{GLIB_CFLAGS} "-I${CURRENT_INSTALLED_DIR}/include") | ||
| vcpkg_configure_make( | ||
| SOURCE_PATH ${SOURCE_PATH} | ||
| AUTOCONFIG | ||
| CONFIG_DEPENDENT_ENVIROMNENT "GLIB_LIBS" | ||
| ) | ||
|
|
||
| vcpkg_install_make() | ||
|
|
||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug) | ||
| file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug) # no need for debug tools | ||
|
|
||
| vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin) | ||
|
|
||
| # # Handle copyright | ||
| file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) | ||
|
|
||
| # pkg-config depends on glib. Note that glib build-depends on pkg-config, | ||
| # but you can just set the corresponding environment variables (ZLIB_LIBS, | ||
| # ZLIB_CFLAGS are the only needed ones when this is written) to build it. | ||
|
|
||
| # pkg-config also either needs an earlier version of itself to find glib | ||
| # or you need to set GLIB_CFLAGS and GLIB_LIBS to the correct values for | ||
| # where it's installed in your system. | ||
|
|
||
| # If this requirement is too cumbersome, a bundled copy of a recent glib | ||
| # stable release is included. Pass --with-internal-glib to configure to | ||
| # use this copy. | ||
This file contains hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.