highlight: attempt to unbreak cross with perl plugin build
This commit is contained in:
parent
9e67595b2a
commit
1f233cbac7
1 changed files with 13 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'highlight'
|
||||
pkgname=highlight
|
||||
version=3.54
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
make_cmd="make QMAKE=qmake"
|
||||
hostmakedepends="pkg-config qt-qmake swig perl"
|
||||
|
@ -14,12 +14,20 @@ distfiles="http://www.andre-simon.de/zip/${pkgname}-${version}.tar.bz2"
|
|||
checksum=8a50a85e94061b53085c6ad8cf110039217dbdd411ab846f9ff934bec7ecd6d0
|
||||
conf_files="/etc/highlight/filetypes.conf"
|
||||
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
arm*) broken="https://build.voidlinux.org/builders/armv6l_builder/builds/23719/steps/shell_3/logs/stdio"
|
||||
esac
|
||||
post_extract() {
|
||||
# prevent leakage of cflags from host during cross, we don't care about
|
||||
# most of them (except the largefile ones); we will pass the correct
|
||||
# ones for target ourselves manually; but we still want include path
|
||||
vsed -i '/PERL_INC/s/eccopts/eperl_inc/' extras/swig/makefile
|
||||
}
|
||||
|
||||
pre_build() {
|
||||
make -C extras/swig perl "CXX=$CXX -fPIC -lperl $LDFLAGS"
|
||||
# extra flags used during build of perl itself
|
||||
local _ecflags=
|
||||
if [ "$XBPS_TARGET_LIBC" = "glibc" ]; then
|
||||
_ecflags="-D_FILE_OFFSET_BITS=64 -DLARGE_FILE_SUPPORT64"
|
||||
fi
|
||||
make -C extras/swig perl "CXX=$CXX -fPIC -lperl $CFLAGS $_ecflags $LDFLAGS"
|
||||
}
|
||||
|
||||
do_check() {
|
||||
|
|
Loading…
Reference in a new issue