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:= libtorrent
  5. PKG_VERSION:= 0.12.5
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= fe8155d364b220713074423100d4bf29
  8. PKG_DESCR:= A bittorrent library
  9. PKG_SECTION:= libs
  10. PKG_DEPENDS:= libopenssl libsigc++
  11. PKG_URL:= http://libtorrent.rakshasa.no
  12. PKG_SITES:= http://libtorrent.rakshasa.no/downloads/
  13. include ${TOPDIR}/mk/package.mk
  14. ifeq ($(ADK_COMPILE_LIBTORRENT_WITH_UCLIBCXX),y)
  15. PKG_DEPENDS+= uclibc++
  16. else
  17. PKG_DEPENDS+= libstdcxx
  18. endif
  19. $(eval $(call PKG_template,LIBTORRENT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  20. ifeq ($(ADK_COMPILE_LIBTORRENT_WITH_UCLIBCXX),y)
  21. CONFIGURE_ENV+= CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++ -fno-strict-aliasing -fno-inline \
  22. -I${STAGING_DIR}/usr/include/uClibc++" \
  23. LIBS="-nodefaultlibs -luClibc++ -lc -lm -lgcc"
  24. endif
  25. CONFIGURE_STYLE= gnu
  26. CONFIGURE_ARGS+= --enable-aligned
  27. BUILD_STYLE= auto
  28. INSTALL_STYLE= auto
  29. ifeq (${ADK_COMPILE_LIBTORRENT_WITH_UCLIBCXX},y)
  30. # add workaround because libtool tries to link libstdc++
  31. post-configure:
  32. ${SED} 's#postdeps="-lstdc.*#postdeps=""#' \
  33. ${WRKBUILD}/libtool
  34. endif
  35. post-install:
  36. ${INSTALL_DIR} ${IDIR_LIBTORRENT}/usr/lib
  37. ${CP} ${WRKINST}/usr/lib/libtorrent.so.* ${IDIR_LIBTORRENT}/usr/lib/
  38. include ${TOPDIR}/mk/pkg-bottom.mk