summaryrefslogtreecommitdiff
path: root/package/libiconv-tiny/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/libiconv-tiny/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/libiconv-tiny/Makefile')
-rw-r--r--package/libiconv-tiny/Makefile34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/libiconv-tiny/Makefile b/package/libiconv-tiny/Makefile
new file mode 100644
index 000000000..0f91f715b
--- /dev/null
+++ b/package/libiconv-tiny/Makefile
@@ -0,0 +1,34 @@
+# 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:= libiconv-tiny
+PKG_VERSION:= 0.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 7211794e2fa1df4123c5cc9f9226a5bb
+PKG_DESCR:= iconv stub and replacement
+PKG_SECTION:= libs
+PKG_URL:= http://www.openwrt.org/
+PKG_SITES:= http://www.openadk.org/distfiles/
+PKG_OPTS:= dev devonly
+
+include $(TOPDIR)/mk/host.mk
+include $(TOPDIR)/mk/package.mk
+
+$(eval $(call HOST_template,LIBICONV_TINY,libiconv-tiny,$(PKG_VERSION)-${PKG_RELEASE}))
+$(eval $(call PKG_template,LIBICONV_TINY,libiconv-tiny,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
+
+HOST_STYLE:= manual
+CONFIG_STYLE:= manual
+
+libiconv-tiny-hostinstall:
+ $(CP) $(WRKBUILD)/libiconv.a $(STAGING_HOST_DIR)/usr/lib
+ $(CP) $(WRKBUILD)/include/* $(STAGING_HOST_DIR)/usr/include
+ $(CP) $(WRKBUILD)/charmaps $(STAGING_HOST_DIR)/usr/include
+ $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/aclocal
+ $(CP) $(WRKBUILD)/m4/iconv.m4 \
+ $(STAGING_HOST_DIR)/usr/share/aclocal
+
+include ${TOPDIR}/mk/host-bottom.mk
+include ${TOPDIR}/mk/pkg-bottom.mk