1
0

Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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+= -fPIC
  22. FAKE_FLAGS+= libdir="${WRKINST}/usr/lib" \
  23. includedir="${WRKINST}/usr/include" \
  24. INSTALL_TARGET= install-lib
  25. libiconv-install:
  26. ${INSTALL_DIR} ${IDIR_LIBICONV}/usr/lib
  27. ${CP} ${WRKINST}/usr/lib/libiconv.so* ${IDIR_LIBICONV}/usr/lib/
  28. libiconv-dev-install:
  29. ${INSTALL_DIR} ${IDIR_LIBICONV_DEV}/usr/include
  30. ${CP} ${WRKINST}/usr/include/*.h ${IDIR_LIBICONV_DEV}/usr/include
  31. include ${TOPDIR}/mk/pkg-bottom.mk