irssi-perl: cross compile
This commit is contained in:
parent
065932bfdd
commit
b16545a9f6
|
@ -1,11 +1,13 @@
|
||||||
# Template file for 'irssi'
|
# Template file for 'irssi'
|
||||||
pkgname=irssi
|
pkgname=irssi
|
||||||
version=1.2.2
|
version=1.2.2
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-static --with-proxy --enable-true-color --with-otr"
|
configure_args="--disable-static --with-proxy --enable-true-color
|
||||||
hostmakedepends="pkg-config"
|
--with-otr --with-perl=module"
|
||||||
makedepends="libglib-devel libressl-devel ncurses-devel libgcrypt-devel libotr-devel"
|
hostmakedepends="pkg-config perl"
|
||||||
|
makedepends="libglib-devel libressl-devel ncurses-devel libgcrypt-devel
|
||||||
|
libotr-devel perl"
|
||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
conf_files="/etc/irssi.conf"
|
conf_files="/etc/irssi.conf"
|
||||||
short_desc="Secure and modular IRC client with text mode user interface"
|
short_desc="Secure and modular IRC client with text mode user interface"
|
||||||
|
@ -16,13 +18,33 @@ distfiles="https://github.com/irssi/irssi/releases/download/${version}/irssi-${v
|
||||||
checksum=53182861d4d2be6db35fa7e3f0524a64d2a54a374307574dab5f5362bfea563c
|
checksum=53182861d4d2be6db35fa7e3f0524a64d2a54a374307574dab5f5362bfea563c
|
||||||
|
|
||||||
LDFLAGS="-lncursesw"
|
LDFLAGS="-lncursesw"
|
||||||
subpackages="irssi-devel irssi-otr"
|
|
||||||
|
|
||||||
if [ -z "$CROSS_BUILD" ]; then
|
pre_configure() {
|
||||||
configure_args+=" --with-perl=module"
|
[ -z "$CROSS_BUILD" ] && return 0
|
||||||
subpackages+=" irssi-perl"
|
local perlprefix=${XBPS_STATEDIR}/perlprefix-${XBPS_TARGET_MACHINE}
|
||||||
makedepends+=" perl"
|
mkdir -p $perlprefix
|
||||||
fi
|
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Config"*.p? $perlprefix
|
||||||
|
cp "$XBPS_CROSS_BASE/usr/lib/perl5/core_perl/Errno.pm" $perlprefix
|
||||||
|
vsed -i -e "s;archlibexp => '\(.*\)';archlibexp => '${XBPS_CROSS_BASE}\1';" \
|
||||||
|
${perlprefix}/Config.pm
|
||||||
|
vsed -i -e "s;^archlibexp='\(.*\)';archlibexp='${XBPS_CROSS_BASE}\1';" \
|
||||||
|
${perlprefix}/Config_heavy.pl
|
||||||
|
export PERL5LIB=$perlprefix
|
||||||
|
export OPTIMIZE="$CFLAGS"
|
||||||
|
export LDDLFLAGS="-shared $CFLAGS -L${XBPS_CROSS_BASE}/usr/lib -lperl"
|
||||||
|
export PERL_MM_USE_DEFAULT=1
|
||||||
|
}
|
||||||
|
|
||||||
|
post_configure() {
|
||||||
|
for i in common irc textui ui; do
|
||||||
|
perlmkf="$wrksrc/src/perl/$i/Makefile.PL"
|
||||||
|
if [ ! -f $perlmkf ]; then
|
||||||
|
msg_error "*** ERROR: couldn't find $perlmkf, aborting **\n"
|
||||||
|
fi
|
||||||
|
cd $wrksrc/src/perl/$i
|
||||||
|
perl Makefile.PL INSTALLDIRS=vendor
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
irssi-perl_package() {
|
irssi-perl_package() {
|
||||||
depends="irssi"
|
depends="irssi"
|
||||||
|
|
Loading…
Reference in a new issue