wok-next view libtorrent/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents 7479c35e3b23
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="libtorrent"
4 VERSION="0.13.6"
5 CATEGORY="network"
6 SHORT_DESC="Torrent library for rtorrent"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://rakshasa.github.io/rtorrent/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/rakshasa/libtorrent/archive/$VERSION.tar.gz"
14 PATCH_FILE="libtorrent-openssl-1.1.patch"
15 PATCH_URL="https://github.com/rakshasa/libtorrent/commit/4607bbf7.patch"
17 BUILD_DEPENDS="automake libtool zlib-dev openssl-dev"
18 SPLIT="$PACKAGE-dev"
20 compile_rules() {
21 [ -e $SRC/$PATCH_FILE ] || wget -O $SRC/$PATCH_FILE $PATCH_URL
22 patch -p1 -i $SRC/$PATCH_FILE
24 sed -i '/AM_PATH_CPPUNIT/d' configure.ac
25 ./autogen.sh
26 export CXXFLAGS="$CXXFLAGS -fno-strict-aliasing"
28 # see https://github.com/rakshasa/rtorrent/issues/156
29 case $ARCH in
30 x86_64) ARCH_ARGS='';;
31 *) ARCH_ARGS='--disable-instrumentation';;
32 esac
34 ./configure \
35 --disable-debug \
36 $ARCH_ARGS \
37 $CONFIGURE_ARGS &&
38 fix libtool &&
39 make &&
40 make install
41 }
43 genpkg_rules() {
44 case $PACKAGE in
45 libtorrent)
46 copy @std
47 DEPENDS="openssl zlib"
48 ;;
49 *-dev)
50 copy @dev
51 ;;
52 esac
53 }