1
0

Makefile 1.5 KB

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