liboping: fix cross-build, install perl binding to vendor_perl.
This commit is contained in:
parent
d7b28aeb8d
commit
bfd5148360
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'liboping'
|
||||
pkgname=liboping
|
||||
version=1.8.0
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="perl"
|
||||
makedepends="ncurses-devel"
|
||||
|
@ -12,6 +12,15 @@ homepage="http://noping.cc/"
|
|||
distfiles="http://noping.cc/files/liboping-${version}.tar.bz2"
|
||||
checksum=1dcb9182c981b31d67522ae24e925563bed57cf950dc681580c4b0abb6a65bdb
|
||||
|
||||
post_configure() {
|
||||
(
|
||||
cd bindings/perl
|
||||
perl Makefile.PL INSTALLDIRS=vendor PREFIX="/usr" TOP_BUILDDIR=".." \
|
||||
TARGET_LIBDIR="/usr/lib" CC="$CC" LD="$CC" OPTIMIZE="$CFLAGS"
|
||||
sed -i 's/-shared .*/-shared/' Makefile # wrangle LDDLFLAGS
|
||||
)
|
||||
}
|
||||
|
||||
liboping-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="${sourcepkg}>=${version}_${revision}"
|
||||
|
|
Loading…
Reference in New Issue