From e803090f9eb21615394c2e47ba90a9ef203a8f1b Mon Sep 17 00:00:00 2001 From: Michał Masłowski Date: Sun, 3 Feb 2013 21:32:12 +0100 Subject: ghostscript-libre: fix build, rebuild for mips64el's mips3. --- libre/ghostscript-libre/PKGBUILD | 17 +++++++++++------ libre/ghostscript-libre/ijs-automake.patch | 10 ++++++++++ 2 files changed, 21 insertions(+), 6 deletions(-) create mode 100644 libre/ghostscript-libre/ijs-automake.patch (limited to 'libre') diff --git a/libre/ghostscript-libre/PKGBUILD b/libre/ghostscript-libre/PKGBUILD index 656f49fb5..499f4bab0 100644 --- a/libre/ghostscript-libre/PKGBUILD +++ b/libre/ghostscript-libre/PKGBUILD @@ -6,7 +6,7 @@ _pkgname=ghostscript pkgname=ghostscript-libre pkgver=9.06 -pkgrel=1 +pkgrel=1.1 # rebuild for mips64el -march pkgdesc="An interpreter for the PostScript language without non-free files" arch=('i686' 'x86_64' 'mips64el') license=('GPL3') #non free files removed @@ -18,12 +18,17 @@ conflicts=('ghostscript') replaces=('ghostscript') provides=("ghostscript=$pkgver") url="http://www.ghostscript.com/" -source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2) -options=('!libtool' '!makeflags') -md5sums=('46f9ebe40dc52755287b30704270db11') +source=(http://downloads.ghostscript.com/public/ghostscript-${pkgver}.tar.bz2 + ijs-automake.patch) +options=('!libtool') +md5sums=('46f9ebe40dc52755287b30704270db11' + '686830841eb9004143a0d0f56b73aaaf') build() { cd ${srcdir}/ghostscript-${pkgver} + + # Fix build with recent automake. + patch -p1 -i "$srcdir/ijs-automake.patch" # delete non-free packages grep -l "are not altered" Resource/CMap/* | xargs rm -fv @@ -57,7 +62,7 @@ build() { package() { cd ${srcdir}/ghostscript-${pkgver} - make DESTDIR=${pkgdir} \ + make -j1 DESTDIR=${pkgdir} \ cups_serverroot=${pkgdir}/etc/cups \ cups_serverbin=${pkgdir}/usr/lib/cups install soinstall @@ -72,5 +77,5 @@ package() { # install IJS cd ${srcdir}/ghostscript-${pkgver}/ijs - make DESTDIR=${pkgdir} install + make -j1 DESTDIR=${pkgdir} install } diff --git a/libre/ghostscript-libre/ijs-automake.patch b/libre/ghostscript-libre/ijs-automake.patch new file mode 100644 index 000000000..1b890277a --- /dev/null +++ b/libre/ghostscript-libre/ijs-automake.patch @@ -0,0 +1,10 @@ +--- ghostscript-9.06.orig/ijs/configure.ac 2012-08-08 10:01:36.000000000 +0200 ++++ ghostscript-9.06/ijs/configure.ac 2013-02-03 19:33:08.361797799 +0100 +@@ -117,7 +117,6 @@ + dnl Checks for programs + + AC_PROG_CC +-AM_PROG_CC_STDC + AM_PROG_LIBTOOL + AC_SUBST(LIBTOOL_DEPS) + AC_ISC_POSIX -- cgit v1.2.3-54-g00ecf