gimp: fix crossbuild
This commit is contained in:
parent
83eacb1f55
commit
0ed2142653
|
@ -0,0 +1,18 @@
|
|||
--- plug-ins/script-fu/Makefile.am.orig 2018-05-18 00:03:53.095184079 +0200
|
||||
+++ plug-ins/script-fu/Makefile.am 2018-05-18 00:04:50.184762769 +0200
|
||||
@@ -14,6 +14,7 @@ else
|
||||
libm = -lm
|
||||
endif
|
||||
|
||||
+libgimpmodule = $(top_builddir)/libgimpmodule/libgimpmodule-$(GIMP_API_VERSION).la
|
||||
libgimpui = $(top_builddir)/libgimp/libgimpui-$(GIMP_API_VERSION).la
|
||||
libgimpwidgets = $(top_builddir)/libgimpwidgets/libgimpwidgets-$(GIMP_API_VERSION).la
|
||||
libgimp = $(top_builddir)/libgimp/libgimp-$(GIMP_API_VERSION).la
|
||||
@@ -85,6 +86,7 @@ script_fu_SOURCES = \
|
||||
scheme-wrapper.h
|
||||
|
||||
LDADD = \
|
||||
+ $(libgimpmodule) \
|
||||
$(libgimpui) \
|
||||
$(libgimpwidgets) \
|
||||
$(libgimpconfig) \
|
|
@ -4,12 +4,13 @@ version=2.10.0
|
|||
revision=1
|
||||
lib32disabled=yes
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config intltool gettext-devel"
|
||||
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 glib-devel jasper-devel json-glib-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"
|
||||
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"
|
||||
|
@ -20,6 +21,20 @@ homepage="https://www.gimp.org"
|
|||
distfiles="https://download.gimp.org/pub/gimp/v${version%.*}/gimp-${version}.tar.bz2"
|
||||
checksum=7fcc96fb88cb0a0595d2610f63a15dec245bb37bf9db527d37a24fb75e547de2
|
||||
|
||||
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() {
|
||||
|
|
Loading…
Reference in New Issue