gmic: unbreak

- Remove cross build test. gmic is nocross, so it doesn't make sense.
- Remove zart build option. As of now, gmic cannot be built w/o zart
  (unless patching the Makefile), so the build option doesn't work at
  all.
- Fix broken depends in subpackages.
- Restore gmic-zart symlink, was erroneously removed with commit 01bbc54.

The package is less a mess then it was, but more work is probably
needed though.
This commit is contained in:
Alessio Sergi 2016-05-09 02:00:29 +02:00
parent 5960929a42
commit 9803698c38
2 changed files with 22 additions and 35 deletions

1
srcpkgs/gmic-zart Symbolic link
View File

@ -0,0 +1 @@
gmic

View File

@ -1,60 +1,46 @@
# Template file for 'gmic'
pkgname=gmic
version=1.6.9
revision=1
hostmakedepends="pkg-config gimp gimp-devel"
revision=2
hostmakedepends="pkg-config gimp"
makedepends="fftw-devel libopenexr-devel MesaLib-devel libopencv-devel
libgomp-devel libpng-devel libjpeg-turbo-devel gimp-devel tiff-devel
libcurl-devel gtk+-devel gimp-devel"
short_desc="GREYC's Magic Image Converter (image processing framework)"
libgomp-devel libpng-devel libjpeg-turbo-devel tiff-devel libcurl-devel
gtk+-devel gimp-devel qt-devel"
short_desc="GREYC's Magic for Image Computing (image processing framework)"
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
license="CeCILL"
homepage="http://gmic.eu/"
distfiles="http://gmic.eu/files/source/gmic_${version}.tar.gz"
checksum=8b836b4ac02a2d3963384951b6e00f2d8e19ede0b49ee93b041ef227cf9dd794
build_options="zart"
desc_option_zart="Enable zArt tool, depends on Qt4"
if [ -z "$CROSS_BUILD" ]; then
build_options_default="zart"
fi
if [ "$build_option_zart" ]; then
hostmakedepends+=" qt-qmake"
makedepends+=" qt-devel"
fi
pre_build() {
sed -i -e 's|qmake zart.pro|qmake-qt4 zart.pro|g'\
-e 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g'\
src/Makefile
do_build() {
sed -i 's|/etc/bash_completion.d|/usr/share/bash-completion/completions|g' src/Makefile
make -C src all
}
do_install() {
make -C src install DESTDIR="${DESTDIR}" USR="/usr"
vlicense COPYING
}
gmic-gimp_package() {
short_desc+=" - GIMP plugin"
depends+=" gimp gmic"
depends="gimp ${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/lib/gimp
}
}
if [ "$build_option_zart" ]; then
gmic-zart_package() {
short_desc+=" - zArt tool"
depends+=" qt4 gmic"
pkg_install() {
vmove usr/bin/zart
}
}
fi
gmic-devel_package() {
depends+=" gmic"
short_desc+=" - development files"
gmic-zart_package() {
short_desc+=" - ZArt tool"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so*
vmove usr/bin/zart
}
}
gmic-devel_package() {
short_desc+=" - development files"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/include
vmove usr/lib/*.so
}
}