rtorrent: get rid of unnecessary workarounds.
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
# Template file for 'rtorrent'
|
# Template file for 'rtorrent'
|
||||||
pkgname=rtorrent
|
pkgname=rtorrent
|
||||||
version=0.9.6
|
version=0.9.6
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-xmlrpc-c"
|
configure_args="--with-xmlrpc-c"
|
||||||
hostmakedepends="automake libtool pkg-config"
|
hostmakedepends="automake libtool pkg-config"
|
||||||
@@ -19,13 +19,3 @@ pre_configure() {
|
|||||||
autoreconf -fi
|
autoreconf -fi
|
||||||
sed -e 's,test "$cross_compiling" = yes, false,' -i configure
|
sed -e 's,test "$cross_compiling" = yes, false,' -i configure
|
||||||
}
|
}
|
||||||
post_configure() {
|
|
||||||
local f
|
|
||||||
for f in $(find ${wrksrc} -name Makefile); do
|
|
||||||
sed -e "s;-L/usr/lib;-L${XBPS_CROSS_BASE}/usr/lib;g" -i $f
|
|
||||||
sed -e "s;-I/usr/include;-L${XBPS_CROSS_BASE}/usr/include;g" -i $f
|
|
||||||
done
|
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
|
||||||
*-musl) sed -e "s;-lm;-lm -lc;" Makefile
|
|
||||||
esac
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user