diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-05 12:44:16 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-02-05 12:44:16 +0100 |
commit | 3b3487b093985fe757afe581de713279ff8fc7e7 (patch) | |
tree | 4424abf23757fd007eb8c9732c445638cf7d79df | |
parent | 4670c380de855e1838c1b373d74b6a3b17046c30 (diff) |
do not link against host libiconv
-rw-r--r-- | package/libiconv/Makefile | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/package/libiconv/Makefile b/package/libiconv/Makefile index 2da817c1e..f27df06c1 100644 --- a/package/libiconv/Makefile +++ b/package/libiconv/Makefile @@ -12,21 +12,30 @@ PKG_SECTION:= libs PKG_URL:= http://www.gnu.org/software/libiconv/ PKG_SITES:= ${MASTER_SITE_GNU:=libiconv/} +PKG_SUBPKGS:= LIBICONV LIBICONV_DEV +PKGSC_LIBICONV_DEV:= devel +PKGSD_LIBICONV_DEV:= header files for libiconv + ifeq ($(ADK_STATIC),y) PKG_OPTS:= libonly endif include ${TOPDIR}/mk/package.mk -$(eval $(call PKG_template,LIBICONV,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +$(eval $(call PKG_template,LIBICONV,libiconv,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS})) +$(eval $(call PKG_template,LIBICONV_DEV,libiconv-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBICONV_DEV},${PKGSC_LIBICONV_DEV})) TARGET_CFLAGS+= -fPIC FAKE_FLAGS+= libdir="${WRKINST}/usr/lib" \ includedir="${WRKINST}/usr/include" \ INSTALL_TARGET= install-lib -post-install: +libiconv-install: ${INSTALL_DIR} ${IDIR_LIBICONV}/usr/lib ${CP} ${WRKINST}/usr/lib/libiconv.so* ${IDIR_LIBICONV}/usr/lib/ +libiconv-dev-install: + ${INSTALL_DIR} ${IDIR_LIBICONV_DEV}/usr/include + ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBICONV_DEV}/usr/include + include ${TOPDIR}/mk/pkg-bottom.mk |