app-text/ghostscript-gpl: fix pkg-config/endian handling for cross-compiles
authorChuan-kai Lin <cklin@google.com>
Thu, 7 Jan 2016 08:53:07 +0000 (03:53 -0500)
committerMike Frysinger <vapier@gentoo.org>
Thu, 7 Jan 2016 09:15:30 +0000 (04:15 -0500)
app-text/ghostscript-gpl/ghostscript-gpl-9.15-r1.ebuild
app-text/ghostscript-gpl/ghostscript-gpl-9.18.ebuild

index 84e590c8ae367d7ad2560f38d14750a49329b570..46321ba50eb772fc95f8557124e3219cf93db393 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit autotools eutils multilib versionator flag-o-matic
+inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs
 
 DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF"
 HOMEPAGE="http://ghostscript.com/"
@@ -143,11 +143,15 @@ src_configure() {
                FONTPATH="$FONTPATH${FONTPATH:+:}$path"
        done
 
+       # We force the endian configure flags until this is fixed:
+       # http://bugs.ghostscript.com/show_bug.cgi?id=696498
+       PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
        econf \
                --enable-dynamic \
                --enable-freetype \
                --enable-fontconfig \
                --enable-openjpeg \
+               --enable-$(tc-endian)-endian \
                --disable-compile-inits \
                --with-drivers=ALL \
                --with-fontpath="$FONTPATH" \
index a9ba6bf30764b3c2349746d29c8b86ac8dcda9da..13e873ca3d53c74df2de9cc3f16c2e9fb830c251 100644 (file)
@@ -4,7 +4,7 @@
 
 EAPI=5
 
-inherit autotools eutils multilib versionator flag-o-matic
+inherit autotools eutils multilib versionator flag-o-matic toolchain-funcs
 
 DESCRIPTION="Ghostscript is an interpreter for the PostScript language and for PDF"
 HOMEPAGE="http://ghostscript.com/"
@@ -148,11 +148,15 @@ src_configure() {
                FONTPATH="$FONTPATH${FONTPATH:+:}$path"
        done
 
+       # We force the endian configure flags until this is fixed:
+       # http://bugs.ghostscript.com/show_bug.cgi?id=696498
+       PKGCONFIG=$(type -P $(tc-getPKG_CONFIG)) \
        econf \
                --enable-dynamic \
                --enable-freetype \
                --enable-fontconfig \
                --enable-openjpeg \
+               --enable-$(tc-endian)-endian \
                --disable-compile-inits \
                --with-drivers=ALL \
                --with-fontpath="$FONTPATH" \