mxe/src/libtorrent-rasterbar.mk

32 lines
1.3 KiB
Makefile
Raw Permalink Normal View History

# This file is part of MXE. See LICENSE.md for licensing information.
2015-08-30 01:51:19 +01:00
PKG := libtorrent-rasterbar
2018-08-13 17:38:36 +01:00
$(PKG)_WEBSITE := https://www.libtorrent.org/
2015-08-30 01:51:19 +01:00
$(PKG)_IGNORE :=
$(PKG)_VERSION := 1.1.6
$(PKG)_CHECKSUM := b7c74d004bd121bd6e9f8975ee1fec3c95c74044c6a6250f6b07f259f55121ef
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
$(PKG)_DEPS := cc boost openssl
2015-08-30 01:51:19 +01:00
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
2018-03-15 06:26:41 +00:00
cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \
2015-08-30 01:51:19 +01:00
$(MXE_CONFIGURE_OPTS) \
PKG_CONFIG='$(PREFIX)/bin/$(TARGET)-pkg-config' \
--with-boost='$(PREFIX)/$(TARGET)' \
2015-08-30 01:51:19 +01:00
--disable-debug \
--disable-tests \
--disable-examples \
2018-03-15 06:26:41 +00:00
CXXFLAGS='-D_WIN32_WINNT=0x0501 -g -O2' \
LIBS='-lws2_32 -lmswsock'
$(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' LDFLAGS=-no-undefined
$(MAKE) -C '$(BUILD_DIR)' -j 1 install LDFLAGS=-no-undefined
2015-08-30 01:51:19 +01:00
endef