2015-08-30 01:51:19 +01:00
|
|
|
# This file is part of MXE.
|
|
|
|
# See index.html for further information.
|
|
|
|
|
|
|
|
PKG := libtorrent-rasterbar
|
|
|
|
$(PKG)_IGNORE :=
|
2016-05-05 11:24:19 +01:00
|
|
|
$(PKG)_VERSION := 1.1.0
|
|
|
|
$(PKG)_CHECKSUM := 2713df7da4aec5263ac11b6626ea966f368a5a8081103fd8f2f2ed97b5cd731d
|
2015-08-30 01:51:19 +01:00
|
|
|
$(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
|
2016-05-05 11:24:19 +01:00
|
|
|
# this will likely revert to standard naming in future releases
|
|
|
|
$(PKG)_URL := https://github.com/arvidn/libtorrent/releases/download/libtorrent-1_1/libtorrent-rasterbar-$($(PKG)_VERSION).tar.gz
|
2015-08-30 01:51:19 +01:00
|
|
|
$(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
|
2016-05-05 11:24:19 +01:00
|
|
|
cd '$(1)' && ./configure \
|
2015-08-30 01:51:19 +01:00
|
|
|
$(MXE_CONFIGURE_OPTS) \
|
|
|
|
PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' \
|
2016-05-05 11:24:19 +01:00
|
|
|
--with-boost='$(PREFIX)/$(TARGET)' \
|
2015-08-30 01:51:19 +01:00
|
|
|
--disable-debug \
|
2015-09-04 06:12:13 +01:00
|
|
|
--disable-tests \
|
2016-05-05 11:24:19 +01:00
|
|
|
--disable-examples \
|
|
|
|
CXXFLAGS='-D_WIN32_WINNT=0x0501'
|
2015-08-30 01:51:19 +01:00
|
|
|
$(MAKE) -C '$(1)' -j '$(JOBS)'
|
|
|
|
$(MAKE) -C '$(1)' -j 1 install
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(PKG)_BUILD_SHARED =
|