r13919 jmb - /trunk/tools/buildsystem/makefiles/Makefile.pkgconfig

netsurf at semichrome.net netsurf at semichrome.net
Sat May 12 18:59:02 BST 2012


Author: jmb
Date: Sat May 12 12:59:02 2012
New Revision: 13919

URL: http://source.netsurf-browser.org?rev=13919&view=rev
Log:
Add accessor for pkg-config variables

Modified:
    trunk/tools/buildsystem/makefiles/Makefile.pkgconfig

Modified: trunk/tools/buildsystem/makefiles/Makefile.pkgconfig
URL: http://source.netsurf-browser.org/trunk/tools/buildsystem/makefiles/Makefile.pkgconfig?rev=13919&r1=13918&r2=13919&view=diff
==============================================================================
--- trunk/tools/buildsystem/makefiles/Makefile.pkgconfig (original)
+++ trunk/tools/buildsystem/makefiles/Makefile.pkgconfig Sat May 12 12:59:02 2012
@@ -86,3 +86,15 @@
 
 endef
 
+# Obtain the value of a pkg-config variable
+# 1: Name of variable to assign result into
+# 2: Name of package to search for
+# 3: Name of pkg-config variable to retrieve
+define pkg_config_get_variable
+  ifeq ($$(PKGCONFIG),)
+    $$(error pkg-config is required to auto-detect package version)
+  endif
+
+  $(1) := $$(shell $$(PKGCONFIG) --variable=$(3) $(2))
+
+endef




More information about the netsurf-commits mailing list