Makefile 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= cxxtools
  5. PKG_VERSION:= 1.4.8
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 16ce92a83beb925fa5138fc9a52d55af
  8. PKG_DESCR:= a collection of general-purpose C++ classes
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libiconv
  11. PKG_BUILDDEP:= libiconv
  12. PKG_URL:= http://www.tntnet.org/
  13. PKG_SITES:= http://www.tntnet.org/download/
  14. PKG_NEED_CXX:= 1
  15. PKG_SUBPKGS:= CXXTOOLS CXXTOOLS_DEV
  16. include ${TOPDIR}/mk/package.mk
  17. $(eval $(call PKG_template,CXXTOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  18. $(eval $(call PKG_template,CXXTOOLS_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  19. ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
  20. TARGET_CXXFLAGS+= -fno-builtin -nostdinc++ \
  21. -I${STAGING_TARGET_DIR}/usr/include/uClibc++ -Wl,-E
  22. TARGET_LDFLAGS+= -luClibc++ -liconv -lm -nodefaultlibs -shared
  23. else
  24. TARGET_LDFLAGS+= -liconv -shared
  25. endif
  26. TARGET_CFLAGS+= -fPIC
  27. TARGET_CXXFLAGS+= -fPIC
  28. CONFIGURE_ARGS+= --with-libiconv-prefix='${STAGING_TARGET_DIR}/usr'
  29. cxxtools-install:
  30. ${INSTALL_DIR} ${IDIR_CXXTOOLS}/usr/lib
  31. ${CP} ${WRKINST}/usr/lib/libcxxtools.so* ${IDIR_CXXTOOLS}/usr/lib
  32. cxxtools-dev-install:
  33. ${INSTALL_DIR} ${IDIR_CXXTOOLS_DEV}/usr/include
  34. ${CP} ${WRKINST}/usr/include/* \
  35. ${IDIR_CXXTOOLS_DEV}/usr/include
  36. ${INSTALL_DIR} ${IDIR_CXXTOOLS_DEV}/usr/bin
  37. ${CP} ${WRKINST}/usr/bin/cxxtools-config ${IDIR_CXXTOOLS_DEV}/usr/bin
  38. include ${TOPDIR}/mk/pkg-bottom.mk