gmic: cross compile

This commit is contained in:
Đoàn Trần Công Danh 2020-10-13 23:11:18 +07:00
parent ced3893a7a
commit c244a805cb
1 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,8 @@ version=2.8.0
revision=1
build_wrksrc="src"
build_style=gnu-makefile
hostmakedepends="pkg-config gimp"
build_helper=qmake
hostmakedepends="pkg-config gimp qt5-host-tools qt5-qmake"
makedepends="fftw-devel ilmbase-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel lcms2-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
gtk+-devel gimp-devel qt5-devel"
@ -15,9 +16,9 @@ homepage="http://gmic.eu/"
distfiles="http://gmic.eu/files/source/gmic_${version}.tar.gz"
checksum=d1ca5c726f7570af3a6f0bca27eeb66ef1e6a1b6a17bdaeaf0d59be40b9cd075
disable_parallel_build="yes"
nocross="https://build.voidlinux.org/builders/armv7l_builder/builds/8869/steps/shell_3/logs/stdio"
pre_build() {
post_patch() {
vsed -i -e "s,-I[\$](USR),-I$XBPS_CROSS_BASE/usr,g" Makefile
# Fix library names for openexr-2.4.0
vsed -i Makefile -e "s;-lIlmImf -lHalf;-lIlmImf-2_4 -lHalf-2_4;"
# Not supported on ppc but we already compile for baselines