libtorrent: cross build, static and dbg support.
This commit is contained in:
parent
d75ea7bdf7
commit
54357fcd1f
2 changed files with 14 additions and 8 deletions
|
@ -1,13 +1,10 @@
|
||||||
# Template file for 'librtorrent-devel'.
|
# Template file for 'librtorrent-devel'.
|
||||||
#
|
#
|
||||||
noarch=yes
|
|
||||||
depends="libtorrent>=$version"
|
depends="libtorrent>=$version"
|
||||||
short_desc="${sourcepkg} - development files"
|
short_desc="${short_desc} - development files"
|
||||||
long_desc="${long_desc}
|
|
||||||
|
|
||||||
This package contains files for development: headers, static libs, etc."
|
|
||||||
|
|
||||||
do_install() {
|
do_install() {
|
||||||
vmove usr/include usr
|
vmove usr/include usr
|
||||||
vmove usr/lib/pkgconfig usr/lib
|
vmove usr/lib/pkgconfig usr/lib
|
||||||
|
vmove "usr/lib/*.a" usr/lib
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,19 @@
|
||||||
# Template build file for 'libtorrent'
|
# Template build file for 'libtorrent'
|
||||||
pkgname=libtorrent
|
pkgname=libtorrent
|
||||||
version=0.13.2
|
version=0.13.2
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-debug"
|
|
||||||
makedepends="pkg-config openssl-devel libsigc++-devel"
|
# Check endiannes
|
||||||
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
# XXX Only supported targets are matched.
|
||||||
|
i686|x86_64|armv6l|mipsel) _endiannes="ac_cv_c_bigendian=no";;
|
||||||
|
*) _endiannes="ac_cv_c_bigendian=yes";;
|
||||||
|
esac
|
||||||
|
|
||||||
|
configure_args="--enable-static --disable-debug --without-kqueue --enable-aligned ${_endiannes}"
|
||||||
|
hostmakedepends="pkg-config"
|
||||||
|
makedepends="openssl-devel libsigc++-devel"
|
||||||
subpackages="$pkgname-devel"
|
subpackages="$pkgname-devel"
|
||||||
short_desc="BitTorrent library written in C++"
|
short_desc="BitTorrent library written in C++"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue