Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= libiconv
  5. PKG_VERSION:= 1.13.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 7ab33ebd26687c744a37264a330bbe9a
  8. PKG_DESCR:= character set conversion library
  9. PKG_SECTION:= libs
  10. PKG_URL:= http://www.gnu.org/software/libiconv/
  11. PKG_SITES:= ${MASTER_SITE_GNU:=libiconv/}
  12. PKG_SUBPKGS:= LIBICONV LIBICONV_DEV
  13. PKGSC_LIBICONV_DEV:= devel
  14. PKGSD_LIBICONV_DEV:= header files for libiconv
  15. ifeq ($(ADK_STATIC),y)
  16. PKG_OPTS:= libonly
  17. endif
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBICONV,libiconv,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. $(eval $(call PKG_template,LIBICONV_DEV,libiconv-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_LIBICONV_DEV},${PKGSC_LIBICONV_DEV}))
  21. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  22. TARGET_CFLAGS+= -fPIC
  23. FAKE_FLAGS+= libdir="${WRKINST}/usr/lib" \
  24. includedir="${WRKINST}/usr/include" \
  25. INSTALL_TARGET= install-lib
  26. libiconv-install:
  27. ${INSTALL_DIR} ${IDIR_LIBICONV}/usr/lib
  28. ${CP} ${WRKINST}/usr/lib/libiconv.so* ${IDIR_LIBICONV}/usr/lib/
  29. libiconv-dev-install:
  30. ${INSTALL_DIR} ${IDIR_LIBICONV_DEV}/usr/include
  31. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBICONV_DEV}/usr/include
  32. include ${TOPDIR}/mk/pkg-bottom.mk