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 $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= libiconv-tiny
  5. PKG_VERSION:= 0.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 1410d40697a5eda9de5e433edfbed540b66c3e1af7374b8507ab9c468b7d9012
  8. PKG_DESCR:= iconv stub and replacement
  9. PKG_SECTION:= libs/misc
  10. PKG_URL:= http://www.openwrt.org/
  11. PKG_SITES:= http://www.openadk.org/distfiles/
  12. PKG_OPTS:= dev devonly
  13. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  14. PKG_LIBC_DEPENDS:= uclibc
  15. include $(ADK_TOPDIR)/mk/host.mk
  16. include $(ADK_TOPDIR)/mk/package.mk
  17. $(eval $(call HOST_template,LIBICONV_TINY,libiconv-tiny,$(PKG_VERSION)-${PKG_RELEASE}))
  18. $(eval $(call PKG_template,LIBICONV_TINY,libiconv-tiny,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  19. HOST_STYLE:= manual
  20. CONFIG_STYLE:= manual
  21. host-build:
  22. (cd ${WRKBUILD} && env ${HOST_MAKE_ENV} ${MAKE} -f ${MAKE_FILE} \
  23. ${HOST_MAKE_FLAGS} ${HOST_ALL_TARGET})
  24. libiconv-tiny-hostinstall:
  25. $(CP) $(WRKBUILD)/libiconv.a $(STAGING_HOST_DIR)/usr/lib
  26. $(CP) $(WRKBUILD)/include/* $(STAGING_HOST_DIR)/usr/include
  27. $(CP) $(WRKBUILD)/charmaps $(STAGING_HOST_DIR)/usr/include
  28. $(INSTALL_DIR) $(STAGING_HOST_DIR)/usr/share/aclocal
  29. $(CP) $(WRKBUILD)/m4/iconv.m4 \
  30. $(STAGING_HOST_DIR)/usr/share/aclocal
  31. include ${ADK_TOPDIR}/mk/host-bottom.mk
  32. include ${ADK_TOPDIR}/mk/pkg-bottom.mk