summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-08-21 10:21:03 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-08-21 10:21:03 (GMT)
commit93458195956ee3ef733d307569dff915754249d4 (patch)
tree45eae3fdbae033cd2b4ed679f6bbcddba75672b5 /src
parent794fa2934c3264eb0dd5791a8e1c5471a6539019 (diff)
downloadmxe-93458195956ee3ef733d307569dff915754249d4.zip
mxe-93458195956ee3ef733d307569dff915754249d4.tar.gz
mxe-93458195956ee3ef733d307569dff915754249d4.tar.bz2
add package pkgconf (optional native build)
Diffstat (limited to 'src')
-rw-r--r--src/pkgconf.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/pkgconf.mk b/src/pkgconf.mk
new file mode 100644
index 0000000..3197858
--- /dev/null
+++ b/src/pkgconf.mk
@@ -0,0 +1,26 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := pkgconf
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := da179fd
+$(PKG)_CHECKSUM := 1e7b5ffe35ca4580a9b801307c3bc919fd77a4fd
+$(PKG)_SUBDIR := $(PKG)-$(PKG)-$($(PKG)_VERSION)
+$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := http://github.com/$(PKG)/$(PKG)/tarball/$($(PKG)_VERSION)/$($(PKG)_FILE)
+$(PKG)_DEPS :=
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://github.com/pkgconf/pkgconf/commits/master' | \
+ $(SED) -n 's#.*<span class="sha">\([^<]\{7\}\)[^<]\{3\}<.*#\1#p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD_NATIVE
+ cd '$(1)' && ./autogen.sh
+ cd '$(1)' && ./configure \
+ --prefix='$(PREFIX)'
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+ ln -sf '$(PREFIX)/bin/pkgconf' '$(PREFIX)/bin/pkg-config'
+endef