Makefile 1.4 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_BUILDDEP+= libiconv
  8. PKG_CXX:= CXXTOOLS
  9. PKG_MD5SUM:= 16ce92a83beb925fa5138fc9a52d55af
  10. PKG_DESCR:= a collection of general-purpose C++ classes
  11. PKG_SECTION:= net
  12. PKG_DEPENDS:= libiconv
  13. PKG_URL:= http://www.tntnet.org
  14. PKG_SITES:= http://www.tntnet.org/download/
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,CXXTOOLS,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  17. ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
  18. TCXXFLAGS+= -fno-builtin -nostdinc++ -I${STAGING_DIR}/usr/include/uClibc++ -Wl,-E
  19. TLDFLAGS+= -luClibc++ -liconv -lm -nodefaultlibs -shared
  20. else
  21. TLDFLAGS+= -liconv -shared
  22. endif
  23. TCFLAGS+= -fPIC
  24. TCXXFLAGS+= -fPIC
  25. CONFIGURE_STYLE:= gnu
  26. CONFIGURE_ENV+= ac_cv_lib_nsl_setsockopt=no
  27. CONFIGURE_ARGS+= --with-libiconv-prefix='${STAGING_DIR}/usr'
  28. BUILD_STYLE:= auto
  29. INSTALL_STYLE:= auto confprog
  30. ifeq (${ADK_COMPILE_CXXTOOLS_WITH_UCLIBCXX},y)
  31. # add workaround because libtool tries to link libstdc++
  32. post-configure:
  33. ${SED} 's#postdeps="-lstdc.*#postdeps=""#' \
  34. ${WRKBUILD}/libtool
  35. endif
  36. post-install:
  37. ${INSTALL_DIR} ${IDIR_CXXTOOLS}/usr/lib
  38. ${CP} ${WRKINST}/usr/lib/libcxxtools.so.* ${IDIR_CXXTOOLS}/usr/lib/
  39. include ${TOPDIR}/mk/pkg-bottom.mk