Makefile 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. include ${TOPDIR}/rules.mk
  6. PKG_NAME:= libtorrent
  7. PKG_VERSION:= 0.12.2
  8. PKG_RELEASE:= 1
  9. PKG_MD5SUM:= 0831ca06f8906c7898fd67931ab239c7
  10. PKG_DESCR:= A bittorrent library
  11. PKG_SECTION:= libs
  12. PKG_DEPENDS:= libopenssl libsigc++
  13. PKG_URL:= http://libtorrent.rakshasa.no
  14. PKG_SITES:= http://libtorrent.rakshasa.no/downloads/
  15. include ${TOPDIR}/mk/package.mk
  16. ifeq ($(ADK_COMPILE_LIBTORRENT_WITH_UCLIBCXX),y)
  17. PKG_DEPENDS+= uclibc++
  18. else
  19. PKG_DEPENDS+= libstdcxx
  20. endif
  21. $(eval $(call PKG_template,LIBTORRENT,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. ifeq ($(ADK_COMPILE_LIBTORRENT_WITH_UCLIBCXX),y)
  23. CONFIGURE_ENV+= CXXFLAGS="-fno-builtin -fno-rtti -nostdinc++ -fno-strict-aliasing -fno-inline \
  24. -I${STAGING_DIR}/usr/include/uClibc++" \
  25. LIBS="-nodefaultlibs -luClibc++ -lc -lm -lgcc"
  26. endif
  27. CONFIGURE_STYLE= gnu
  28. CONFIGURE_ARGS+= --enable-aligned
  29. BUILD_STYLE= auto
  30. INSTALL_STYLE= auto confprog
  31. ifeq (${ADK_COMPILE_LIBTORRENT_WITH_UCLIBCXX},y)
  32. # add workaround because libtool tries to link libstdc++
  33. post-configure:
  34. ${SED} 's#postdeps="-lstdc.*#postdeps=""#' \
  35. ${WRKBUILD}/libtool
  36. endif
  37. post-install:
  38. ${INSTALL_DIR} ${IDIR_LIBTORRENT}/usr/lib
  39. ${CP} ${WRKINST}/usr/lib/libtorrent.so.* ${IDIR_LIBTORRENT}/usr/lib/
  40. include ${TOPDIR}/mk/pkg-bottom.mk