2 # Copyright (C) 2007 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 # $Id: Makefile 9173 2007-10-07 03:20:26Z blogic $
9 include $(TOPDIR
)/rules.mk
11 PKG_NAME
:=rblibtorrent
15 PKG_SOURCE
:=libtorrent-rasterbar-
$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/libtorrent
17 PKG_MD5SUM
:=6959f719245d82758235fd73d93373b2
18 PKG_BUILD_DIR
:=$(BUILD_DIR
)/libtorrent-rasterbar-
$(PKG_VERSION
)
19 PKG_BUILD_DEPENDS
:=libtool bzlib
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/rblibtorrent
27 TITLE
:=Rasterbar BitTorrent library
28 URL
:=http
://www.rasterbar.com
/products
/libtorrent
/
29 DEPENDS
:=+boost
+boost-python
+boost-filesystem
+boost-regex
+boost-thread
+boost-program_options
+boost-system
+libopenssl @BROKEN
32 define Package
/rblibtorrent
/description
33 Rasterbar libtorrent is a C
++ library that aims to be a good alternative to
34 all the other bittorrent implementations around. It is a library and not a
35 full featured client
, although it comes with a working example client.
41 --enable-python-binding \
42 --with-ssl
=$(STAGING_DIR
)/usr \
43 --with-boost
=$(STAGING_DIR
)/usr
/include \
44 --with-boost-libdir
=$(STAGING_DIR
)/usr
/lib \
46 --with-boost-system
=boost_system-
$(BOOSTPOSTFIX
) \
47 --with-boost-filesystem
=boost_filesystem-
$(BOOSTPOSTFIX
) \
48 --with-boost-thread
=boost_thread-
$(BOOSTPOSTFIX
) \
49 --with-boost-regex
=boost_regex-
$(BOOSTPOSTFIX
) \
50 --with-boost-python
=boost_python-
$(BOOSTPOSTFIX
) \
51 --with-boost-program_options
=boost_program_options-
$(BOOSTPOSTFIX
)
53 CONFIGURE_VARS
+=CC
="$(TARGET_CXX)"
55 EXTRA_LDFLAGS
+=-lz
-lpthread
58 $(call Build
/Compile
/Default
)
59 $(call Build
/Install
/Default
)
62 define Build
/InstallDev
63 mkdir
-p
$(1)/usr
/include
64 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/libtorrent
$(1)/usr
/include/
66 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
67 mkdir
-p
$(1)/usr
/lib
/pkgconfig
68 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/libtorrent-rasterbar.
pc $(1)/usr
/lib
/pkgconfig
/
71 define Package
/rblibtorrent
/install
72 $(INSTALL_DIR
) $(1)/usr
/lib
$(1)/usr
/lib
/python2.6
/site-packages
/
73 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/*.so
* $(1)/usr
/lib
/
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/python2.6
/site-packages
/*.so
* $(1)/usr
/lib
/python2.6
/site-packages
/
77 $(eval
$(call BuildPackage
,rblibtorrent
))