weechat: fix cross compilation of perl plugin
This commit is contained in:
parent
1cec75084a
commit
3039085d7e
1 changed files with 12 additions and 6 deletions
|
@ -1,13 +1,13 @@
|
|||
# Template file for 'weechat'
|
||||
pkgname=weechat
|
||||
version=2.0
|
||||
revision=1
|
||||
revision=2
|
||||
lib32disabled=yes
|
||||
build_style=cmake
|
||||
configure_args="-DENABLE_MAN=ON -DENABLE_ENCHANT=ON -DPYTHON_EXECUTABLE=/usr/bin/python2.7 -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so"
|
||||
hostmakedepends="pkg-config python-devel libgcrypt-devel tcl-devel asciidoc"
|
||||
makedepends="tcl-devel enchant-devel libgcrypt-devel gnutls-devel
|
||||
python-devel ruby-devel lua-devel libcurl-devel"
|
||||
python-devel ruby-devel lua-devel libcurl-devel perl"
|
||||
depends="ca-certificates"
|
||||
short_desc="Fast, light and extensible IRC client"
|
||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||
|
@ -16,10 +16,16 @@ homepage="https://www.weechat.org"
|
|||
distfiles="${homepage}/files/src/$pkgname-$version.tar.bz2"
|
||||
checksum=b6e1ea2ca6c70d6909d2a52da386d60f6c22478de128b05ded844c318fa1a149
|
||||
|
||||
subpackages="weechat-aspell weechat-devel weechat-ruby weechat-python weechat-tcl weechat-lua"
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
makedepends+=" perl"
|
||||
subpackages+=" weechat-perl"
|
||||
subpackages="weechat-aspell weechat-devel weechat-ruby weechat-python weechat-tcl weechat-lua weechat-perl"
|
||||
|
||||
if [ -n "$CROSS_BUILD" ]; then
|
||||
_perlpath="${XBPS_CROSS_BASE}/usr/lib/perl5/core_perl/CORE"
|
||||
configure_args+=" -DPERL_FOUND=1
|
||||
-DPERL_EXECUTABLE=0
|
||||
-DPERL_INCLUDE_PATH=$_perlpath
|
||||
-DPERL_LIBRARY=${XBPS_CROSS_BASE}/usr/lib/libperl.so
|
||||
-DPERL_CFLAGS=-I$_perlpath
|
||||
-DPERL_LFLAGS=-L$_perlpath"
|
||||
fi
|
||||
|
||||
post_extract() {
|
||||
|
|
Loading…
Reference in a new issue