diff --git a/srcpkgs/weechat/template b/srcpkgs/weechat/template index aa5a5a5228..2246aab1f4 100644 --- a/srcpkgs/weechat/template +++ b/srcpkgs/weechat/template @@ -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 " @@ -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() {