summaryrefslogtreecommitdiff
path: root/package/pkgconf/Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-02 12:03:09 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-02 12:03:09 +0100
commitfbe47cba997e4f2f2dbaa6af0583dbec2e5d130c (patch)
tree63aa5fb4d8c8ad7e63aeaad50e5701a2918dbedd /package/pkgconf/Makefile
parent216fc3f63dcf07f5bc644165ce1965d733330de0 (diff)
remove dependencies to libiconv,pkg-config and file. use pkgconf and libiconv-tiny instead. fixes glib compile on systems without libiconv/ native iconv implementation
Diffstat (limited to 'package/pkgconf/Makefile')
-rw-r--r--package/pkgconf/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/pkgconf/Makefile b/package/pkgconf/Makefile
new file mode 100644
index 000000000..b1131003a
--- /dev/null
+++ b/package/pkgconf/Makefile
@@ -0,0 +1,35 @@
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:= pkgconf
+PKG_VERSION:= 0.9.3
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 52c553bad686f8be1556b58bc1925f4f
+PKG_DESCR:= smart pkg-config replacement
+PKG_SECTION:= lang
+PKG_URL:= https://github.com/pkgconf/pkgconf
+PKG_SITES:= http://rabbit.dereferenced.org/~nenolod/distfiles/
+
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
+
+include $(TOPDIR)/mk/host.mk
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call HOST_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE}))
+$(eval $(call PKG_template,PKGCONF,pkgconf,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
+
+HOST_STYLE:= auto
+
+hostpost-install:
+ (cd $(STAGING_HOST_DIR)/usr/bin && ln -sf pkgconf pkg-config)
+
+pkgconf-install:
+ $(INSTALL_DIR) $(IDIR_PKGCONF)/usr/bin
+ $(INSTALL_BIN) $(WRKINST)/usr/bin/pkgconf \
+ $(IDIR_PKGCONF)/usr/bin
+ (cd $(IDIR_PKGCONF)/usr/bin && ln -sf pkgconf pkg-config)
+
+include ${TOPDIR}/mk/host-bottom.mk
+include ${TOPDIR}/mk/pkg-bottom.mk