66 lines
1.8 KiB
Bash
66 lines
1.8 KiB
Bash
# Template build file for 'gimp'
|
|
pkgname=gimp
|
|
version=2.10.2
|
|
revision=1
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
hostmakedepends="automake gegl gettext-devel glib-devel gtk+3-devel intltool libtool
|
|
pkg-config pygtk-devel"
|
|
makedepends="aalib-devel alsa-lib-devel babl-devel dbus-glib-devel gegl-devel
|
|
ghostscript-devel jasper-devel lcms-devel libXcursor-devel libXpm-devel
|
|
libgexiv2-devel libgudev-devel libmng-devel libmypaint-devel
|
|
libopenexr-devel librsvg-devel libwmf-devel mypaint-brushes
|
|
poppler-glib-devel pygtk-devel webkitgtk2-devel"
|
|
depends="desktop-file-utils gegl hicolor-icon-theme iso-codes
|
|
mypaint-brushes"
|
|
short_desc="The GNU image manipulation program"
|
|
conf_files="/etc/gimp/2.0/*"
|
|
maintainer="Kartik S <kartik.ynwa@gmail.com>"
|
|
license="GPL-3.0-only"
|
|
homepage="https://www.gimp.org"
|
|
distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
|
|
checksum=1cb0baaecdefe44d371a15f2739a1bcbce4682336b4ccf8eb7b587ce52c333eb
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 autoreconf -fi
|
|
if [ "$CROSS_BUILD" ]; then
|
|
sed -i 's:^py_prefix=`:py_prefix='"$XBPS_CROSS_BASE"'`:' configure
|
|
fi
|
|
}
|
|
|
|
pre_build() {
|
|
if [ "$CROSS_BUILD" ]; then
|
|
make -C tools invert-svg \
|
|
CFLAGS_FOR_BUILD="$BUILD_CFLAGS -fPIE -I/usr/lib/glib-2.0/include -I/usr/lib/glib-2.0"
|
|
fi
|
|
}
|
|
|
|
libgimp_package() {
|
|
short_desc+=" - runtime libraries"
|
|
pkg_install() {
|
|
vmove usr/lib/*.so.*
|
|
}
|
|
}
|
|
|
|
gimp-devel_package() {
|
|
depends="libgimp>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove usr/share/gtk-doc
|
|
vmove usr/share/aclocal
|
|
vmove "usr/lib/*.so"
|
|
}
|
|
}
|
|
|
|
gimp-python_package() {
|
|
lib32disabled=yes
|
|
depends="pygtk"
|
|
pycompile_dirs="usr/lib/gimp/2.0/python"
|
|
short_desc+=" - python bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/gimp/2.0/python
|
|
vmove "usr/lib/gimp/2.0/plug-ins/*.py"
|
|
}
|
|
}
|