parent
0b217003e2
commit
2c3baf1290
1
srcpkgs/gmic-krita
Symbolic link
1
srcpkgs/gmic-krita
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
gmic
|
@ -1,7 +1,8 @@
|
|||||||
# Template file for 'gmic'
|
# Template file for 'gmic'
|
||||||
pkgname=gmic
|
pkgname=gmic
|
||||||
version=2.8.0
|
version=2.9.9
|
||||||
revision=1
|
revision=1
|
||||||
|
_zart_hash=939cf381c5871e506aabd066037acf2b55143c1d
|
||||||
build_wrksrc="src"
|
build_wrksrc="src"
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
build_helper=qmake
|
build_helper=qmake
|
||||||
@ -13,20 +14,39 @@ short_desc="GREYC's Magic for Image Computing (image processing framework)"
|
|||||||
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
|
maintainer="Jakub Skrzypnik <jot.skrzyp@gmail.com>"
|
||||||
license="CECILL-2.1"
|
license="CECILL-2.1"
|
||||||
homepage="http://gmic.eu/"
|
homepage="http://gmic.eu/"
|
||||||
distfiles="http://gmic.eu/files/source/gmic_${version}.tar.gz"
|
distfiles="http://gmic.eu/files/source/gmic_${version}.tar.gz
|
||||||
checksum=d1ca5c726f7570af3a6f0bca27eeb66ef1e6a1b6a17bdaeaf0d59be40b9cd075
|
https://github.com/c-koi/zart/archive/${_zart_hash}.tar.gz"
|
||||||
|
checksum="9f053338752ec96a6b619718037767682c5fd58e2471c08f3740fdb070605bc0
|
||||||
|
eec47cc9b572cb3e3c26b424381948e12161e129f3d0d3ceca87ff4a8f99fe5d"
|
||||||
disable_parallel_build="yes"
|
disable_parallel_build="yes"
|
||||||
|
|
||||||
|
post_extract() {
|
||||||
|
mv ../zart-${_zart_hash} zart
|
||||||
|
}
|
||||||
|
|
||||||
post_patch() {
|
post_patch() {
|
||||||
vsed -i -e "s,-I[\$](USR),-I$XBPS_CROSS_BASE/usr,g" Makefile
|
vsed -i Makefile -e "s,-I[\$](USR),-I$XBPS_CROSS_BASE/usr,g"
|
||||||
# Fix library names for openexr-2.4.0
|
vsed -i Makefile -e "s/-Ofast/-O2/g"
|
||||||
vsed -i Makefile -e "s;-lIlmImf -lHalf;-lIlmImf-2_4 -lHalf-2_4;"
|
# uses gimptool-2.0 to determine PLUGINDIR which fails in cross builds
|
||||||
|
vsed -i Makefile -e "s,^PLUGINDIR = .*,PLUGINDIR = /usr/lib/gimp/2\.0/plug-ins,g"
|
||||||
|
vsed -i ../gmic-qt/gmic_qt.pro -e "s/-Ofast/-O2/g"
|
||||||
# Not supported on ppc but we already compile for baselines
|
# Not supported on ppc but we already compile for baselines
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
ppc*) vsed -i Makefile -e 's;-mtune=generic;;' ;;
|
ppc*) vsed -i Makefile -e 's;-mtune=generic;;' ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
do_build() {
|
||||||
|
make CC="$CC" CXX="$CXX" LD="$LD" AR="$AR" RANLIB="$RANLIB" \
|
||||||
|
CPP="$CPP" AS="$AS" OBJCOPY="$OBJCOPY" OBJDUMP="$OBJDUMP" \
|
||||||
|
CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS" \
|
||||||
|
cli lib libc
|
||||||
|
|
||||||
|
for _target in gimp krita gmic_qt zart; do
|
||||||
|
make $_target
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense ../COPYING
|
vlicense ../COPYING
|
||||||
}
|
}
|
||||||
@ -38,18 +58,31 @@ gmic-gimp_package() {
|
|||||||
vmove usr/lib/gimp
|
vmove usr/lib/gimp
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gmic-krita_package() {
|
||||||
|
short_desc+=" - Krita plugin"
|
||||||
|
depends="krita ${sourcepkg}>=${version}_${revision}"
|
||||||
|
pkg_install() {
|
||||||
|
vmove usr/bin/gmic_krita_qt
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
gmic-zart_package() {
|
gmic-zart_package() {
|
||||||
short_desc+=" - ZArt tool"
|
short_desc+=" - ZArt tool"
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/zart
|
vmove usr/bin/zart
|
||||||
|
vmove usr/share/applications/zart.desktop
|
||||||
|
vmove usr/share/icons/hicolor/48x48/apps/zart.png
|
||||||
|
vmove usr/share/icons/hicolor/scalable/apps/zart.svg
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
gmic-devel_package() {
|
gmic-devel_package() {
|
||||||
short_desc+=" - development files"
|
short_desc+=" - development files"
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/include
|
vmove usr/include
|
||||||
vmove usr/lib/*.so
|
vmove "usr/lib/*.so"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user