summaryrefslogtreecommitdiffstats
path: root/src/libtorrent-rasterbar.mk
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-08-30 00:51:19 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-08-31 21:02:25 (GMT)
commit30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c (patch)
tree838c24997a18a30823454f797b9d9e8a8a3e795a /src/libtorrent-rasterbar.mk
parent83f9075394a520b0645c5bd4d5c67d3470cb44cc (diff)
downloadmxe-30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c.zip
mxe-30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c.tar.gz
mxe-30ddbd79e10d1cb5ec0ee1a457b2d76f187d271c.tar.bz2
add package libtorrent-rasterbar
Diffstat (limited to 'src/libtorrent-rasterbar.mk')
-rw-r--r--src/libtorrent-rasterbar.mk31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/libtorrent-rasterbar.mk b/src/libtorrent-rasterbar.mk
new file mode 100644
index 0000000..b3039c6
--- /dev/null
+++ b/src/libtorrent-rasterbar.mk
@@ -0,0 +1,31 @@
+# This file is part of MXE.
+# See index.html for further information.
+
+PKG := libtorrent-rasterbar
+$(PKG)_IGNORE :=
+$(PKG)_VERSION := 1.0.6
+$(PKG)_CHECKSUM := 160e7cde6aafdb3dff1abf5ae384676367d04f2b
+$(PKG)_SUBDIR := libtorrent-rasterbar-$($(PKG)_VERSION)
+$(PKG)_FILE := libtorrent-rasterbar-$($(PKG)_VERSION).tar.gz
+$(PKG)_URL := https://github.com/arvidn/libtorrent/releases/download/libtorrent-$(subst .,_,$($(PKG)_VERSION))/libtorrent-rasterbar-$($(PKG)_VERSION).tar.gz
+$(PKG)_DEPS := gcc boost openssl
+
+define $(PKG)_UPDATE
+ $(WGET) -q -O- 'https://github.com/arvidn/libtorrent/releases' | \
+ $(SED) -n 's,.*libtorrent-rasterbar-\([0-9][^"]*\)\.tar.*,\1,p' | \
+ head -1
+endef
+
+define $(PKG)_BUILD
+ cd '$(1)' && \
+ ./configure \
+ $(MXE_CONFIGURE_OPTS) \
+ PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' \
+ --with-boost-system=boost_system-mt \
+ --disable-debug \
+ --enable-tests --enable-examples
+ $(MAKE) -C '$(1)' -j '$(JOBS)'
+ $(MAKE) -C '$(1)' -j 1 install
+endef
+
+$(PKG)_BUILD_SHARED =