{"id":18714162,"url":"https://github.com/pfultz2/pkgconfig","last_synced_at":"2025-10-20T07:24:21.750Z","repository":{"id":143674705,"uuid":"66503206","full_name":"pfultz2/pkgconfig","owner":"pfultz2","description":"Package config","archived":false,"fork":false,"pushed_at":"2016-09-12T00:54:31.000Z","size":419,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-28T09:20:24.186Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pfultz2.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-24T22:06:16.000Z","updated_at":"2019-10-27T10:58:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"23279527-f176-4cd8-829d-fde3444bcfd8","html_url":"https://github.com/pfultz2/pkgconfig","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfultz2%2Fpkgconfig","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfultz2%2Fpkgconfig/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfultz2%2Fpkgconfig/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pfultz2%2Fpkgconfig/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pfultz2","download_url":"https://codeload.github.com/pfultz2/pkgconfig/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239576790,"owners_count":19662114,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T12:51:35.051Z","updated_at":"2025-10-20T07:24:16.717Z","avatar_url":"https://github.com/pfultz2.png","language":"Shell","readme":"pkg-config is a script to make putting together all the build\nflags when compiling/linking a lot easier.\n\nReport bugs at http://bugzilla.freedesktop.org/\n\nTo use pkg-config, do something like the following in your configure.ac\n\n    PKG_CHECK_MODULES([GNOME], [gtk \u003e 1.2.8 gnomeui \u003e= 1.2.0])\n\nThis puts the neccesary include flags to compile/link something against\nlibgnomeui and all its dependencies in $(GNOME_CFLAGS), and the -L/-l flags\nfor linking in $(GNOME_LIBS).\n\nUsers can define the PKG_CONFIG environment variable to point at the\nright one, or if they cross-compile and have a correctly named pkg-config\n(eg. arm-linux-pkg-config) in their PATH that will be used in preference.\n\nUsers can also define the GNOME_CFLAGS and GNOME_LIBS environment variables\nif they think they know better, pkg-config will not be called if they do\nthat.\n\nThe \"gtk \u003e 1.2.8\" part is only neccesary if you want to specifically check\nif libgtk is version 1.2.8 or higher. Otherwise, the flags for gtk\nwill be included automatically, since libgnomeui depends on gtk.\nSo you could just say:\n\n     PKG_CHECK_MODULES([GNOME], [gnomeui])\n\nfor any version of gnomeui.\n\nFor more info, there's even a man page, try 'man pkg-config'\n\nBuilding\n========\npkg-config depends on glib.  Note that glib build-depends on pkg-config,\nbut you can just set the corresponding environment variables (ZLIB_LIBS,\nZLIB_CFLAGS are the only needed ones when this is written) to build it.\n\npkg-config also either needs an earlier version of itself to find glib\nor you need to set GLIB_CFLAGS and GLIB_LIBS to the correct values for\nwhere it's installed in your system.\n\nIf this requirement is too cumbersome, a bundled copy of a recent glib\nstable release is included. Pass --with-internal-glib to configure to\nuse this copy.\n\nIf you're cross-compiling and you need to build the bundled glib, refer\nto the glib documentation for cross-compiling glib. In short, this will\nrequire setting some autoconf cache variables in cases where glib would\nneed to run a program to determine the correct value. See the glib\ndocumentation:\n\nhttp://developer.gnome.org/glib/stable/glib-cross-compiling.html\n\nIf you need to use the bundled glib on Mac OS X, you'll most likely need\nto build for a single architecture rather than as a universal binary.\nThis is because glib (as of version 2.32) does not support building for\nmultiple architectures out of the box. The glib2 from MacPorts or\nHomebrew may be available as a universal binary and usable for\npkg-config as described above. Nothing in pkg-config itself precludes\nbeing built as a universal binary.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfultz2%2Fpkgconfig","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpfultz2%2Fpkgconfig","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpfultz2%2Fpkgconfig/lists"}