libiio: fix pkgconfig paths
[feed/packages.git] / libs / libtorrent-rasterbar / Makefile
1 include $(TOPDIR)/rules.mk
2
3 PKG_NAME:=libtorrent-rasterbar
4 PKG_VERSION:=2.0.9
5 PKG_RELEASE:=1
6
7 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
8 PKG_SOURCE_URL:=https://github.com/arvidn/libtorrent/releases/download/v$(PKG_VERSION)/
9 PKG_HASH:=90cd92b6061c5b664840c3d5e151d43fedb24f5b2b24e14425ffbb884ef1798e
10
11 PKG_MAINTAINER:=David Yang <mmyangfl@gmail.com>
12 PKG_LICENSE:=BSD-3-Clause
13 PKG_LICENSE_FILES:=COPYING
14
15 include $(INCLUDE_DIR)/package.mk
16 include $(INCLUDE_DIR)/cmake.mk
17
18 define Package/libtorrent-rasterbar/Default
19 TITLE:=Rasterbar BitTorrent library
20 URL:=https://libtorrent.org/
21 endef
22
23 define Package/libtorrent-rasterbar
24 $(call Package/libtorrent-rasterbar/Default)
25 SECTION:=libs
26 CATEGORY:=Libraries
27 DEPENDS:=+boost-system +libopenssl +libatomic +libstdcpp
28 endef
29
30 #define Package/python3-libtorrent
31 # $(call Package/libtorrent-rasterbar/Default)
32 # SECTION:=lang
33 # CATEGORY:=Languages
34 # SUBMENU:=Python
35 # TITLE+= (Python 3)
36 # DEPENDS:=+libtorrent-rasterbar +boost-python
37 #endef
38
39 define Package/libtorrent-rasterbar/description
40 Rasterbar libtorrent is a C++ library that aims to be a good alternative to
41 all the other bittorrent implementations around.
42 endef
43
44 #define Package/python3-libtorrent/description
45 # $(call Package/libtorrent-rasterbar/description)
46 # This package contains Python 3 bindings for the libtorrent-rasterbar library.
47 #endef
48
49 #CMAKE_OPTIONS += \
50 # -Dpython-bindings=ON \
51 # -Dpython-egg-info=ON
52
53 define Build/InstallDev
54 $(INSTALL_DIR) $(1)/usr/include
55 $(CP) $(PKG_INSTALL_DIR)/usr/include/libtorrent $(1)/usr/include/
56 $(INSTALL_DIR) $(1)/usr/lib
57 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent-rasterbar.so* $(1)/usr/lib/
58 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
59 $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/libtorrent-rasterbar.pc $(1)/usr/lib/pkgconfig/
60 endef
61
62 define Package/libtorrent-rasterbar/install
63 $(INSTALL_DIR) $(1)/usr/lib
64 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libtorrent-rasterbar.so.* $(1)/usr/lib/
65 endef
66
67 #define Package/python3-libtorrent/install
68 # $(INSTALL_DIR) $(1)/usr/lib/python2.7/site-packages
69 # $(CP) $(PKG_INSTALL_DIR)/usr/lib/python2.7/site-packages/*.so* $(1)/usr/lib/python2.7/site-packages/
70 #endef
71
72 $(eval $(call BuildPackage,libtorrent-rasterbar))
73 #$(eval $(call BuildPackage,python3-libtorrent))