147564444a
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
66 lines
2 KiB
Bash
66 lines
2 KiB
Bash
# Template build file for 'gimp'.
|
|
pkgname=gimp
|
|
version=2.8.22
|
|
revision=2
|
|
lib32disabled=yes
|
|
build_style=gnu-configure
|
|
configure_args="--without-aa --without-gvfs --enable-gimp-console
|
|
--enable-python --with-gif-compression=lzw --with-libcurl --enable-mp"
|
|
hostmakedepends="automake gettext-devel glib-devel libtool pkg-config intltool"
|
|
makedepends="libpng-devel gtk+-devel lcms2-devel
|
|
alsa-lib-devel dbus-glib-devel libXmu-devel libXcursor-devel
|
|
libexif-devel libsoup-devel libwmf-devel librsvg-devel
|
|
libmng-devel libXpm-devel libcurl-devel babl-devel gegl-devel pygtk-devel
|
|
libgudev-devel jasper-devel poppler-glib-devel ghostscript-devel iso-codes"
|
|
short_desc="The GNU image manipulation program"
|
|
conf_files="/etc/gimp/2.0/*"
|
|
depends="desktop-file-utils hicolor-icon-theme iso-codes"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="https://www.gimp.org"
|
|
license="GPL-3"
|
|
distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
|
|
checksum=9187a35cc52b110d78124d7b27b68a68ade14a794c2721314bac6134d2a5638a
|
|
|
|
if [ -n "$CROSS_BUILD" ]; then
|
|
hostmakedepends+=" dbus-glib-devel gdk-pixbuf-devel pygtk-devel"
|
|
configure_args+=" am_cv_python_pythondir=${XBPS_CROSS_BASE}/usr/lib/python2.7/site-packages"
|
|
CPPFLAGS="-I${XBPS_CROSS_BASE}/usr/include/python2.7"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
arm*|musl*)
|
|
configure_args+=" --disable-python"
|
|
subpackages="libgimp gimp-devel"
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
pre_configure() {
|
|
NOCONFIGURE=1 autoreconf -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"
|
|
short_desc+=" - python bindings"
|
|
pkg_install() {
|
|
vmove usr/lib/gimp/2.0/python
|
|
vmove "usr/lib/gimp/2.0/plug-ins/*.py"
|
|
}
|
|
}
|