Makefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 (libraries)
  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. PKGSC_CXXTOOLS_DEV:= devel
  17. PKGSD_CXXTOOLS_DEV:= a collection of general-purpose C++ classes (headers)
  18. include ${TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,CXXTOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. $(eval $(call PKG_template,CXXTOOLS_DEV,${PKG_NAME}-dev,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. TARGET_CFLAGS:= $(filter-out -flto,$(TARGET_CFLAGS))
  22. ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
  23. TARGET_CXXFLAGS+= -fno-builtin -nostdinc++ \
  24. -I${STAGING_TARGET_DIR}/usr/include/uClibc++ -Wl,-E
  25. TARGET_LDFLAGS+= -luClibc++ -liconv -lm -nodefaultlibs -shared
  26. else
  27. TARGET_LDFLAGS+= -liconv -shared
  28. endif
  29. TARGET_CFLAGS+= -fPIC
  30. TARGET_CXXFLAGS+= -fPIC
  31. CONFIGURE_ARGS+= --with-libiconv-prefix='${STAGING_TARGET_DIR}/usr'
  32. cxxtools-install:
  33. ${INSTALL_DIR} ${IDIR_CXXTOOLS}/usr/lib
  34. ${CP} ${WRKINST}/usr/lib/libcxxtools.so* ${IDIR_CXXTOOLS}/usr/lib
  35. cxxtools-dev-install:
  36. ${INSTALL_DIR} ${IDIR_CXXTOOLS_DEV}/usr/include
  37. ${CP} ${WRKINST}/usr/include/* \
  38. ${IDIR_CXXTOOLS_DEV}/usr/include
  39. ${INSTALL_DIR} ${IDIR_CXXTOOLS_DEV}/usr/bin
  40. ${CP} ${WRKINST}/usr/bin/cxxtools-config ${IDIR_CXXTOOLS_DEV}/usr/bin
  41. include ${TOPDIR}/mk/pkg-bottom.mk