summaryrefslogtreecommitdiff
path: root/graphics/xpdf
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2000-10-06 15:23:46 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2000-10-06 15:23:46 +0000
commitd5b8bb9657643d17bb4d53b9c9d833b3ad21a474 (patch)
treeea12dc7f0cbf31be3cee94250b40dc3a552c548d /graphics/xpdf
parentf994d552f0e2bc119ed81d489b74d4e8acd81dc0 (diff)
downloadpkgsrc-d5b8bb9657643d17bb4d53b9c9d833b3ad21a474.tar.gz
Don't use -O2 on a particular problem file on mipsel. Makes this work on
pmax.
Diffstat (limited to 'graphics/xpdf')
-rw-r--r--graphics/xpdf/Makefile4
-rw-r--r--graphics/xpdf/files/patch-sum3
-rw-r--r--graphics/xpdf/patches/patch-aa22
3 files changed, 28 insertions, 1 deletions
diff --git a/graphics/xpdf/Makefile b/graphics/xpdf/Makefile
index cdba56b4c54..1201dc3c6bb 100644
--- a/graphics/xpdf/Makefile
+++ b/graphics/xpdf/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.17 2000/08/23 23:14:28 tron Exp $
+# $NetBSD: Makefile,v 1.18 2000/10/06 15:23:46 dmcmahill Exp $
# FreeBSD Id: Makefile,v 1.12 1998/03/11 03:08:12 vanilla Exp
#
@@ -23,6 +23,8 @@ GNU_CONFIGURE= YES
CONFIGURE_ARGS+=--enable-japanese --enable-chinese
CONFIGURE_ARGS+=--with-freetype-includes=${LOCALBASE}/include
+CONFIGURE_ENV+= CXXFLAGS=${CXXFLAGS}
+MAKE_ENV+= SED=${SED} ECHO=${ECHO}
post-install:
${SED} 's|@@LOCALBASE@@|${LOCALBASE}|' \
diff --git a/graphics/xpdf/files/patch-sum b/graphics/xpdf/files/patch-sum
new file mode 100644
index 00000000000..4f54f91cd9e
--- /dev/null
+++ b/graphics/xpdf/files/patch-sum
@@ -0,0 +1,3 @@
+$NetBSD: patch-sum,v 1.5 2000/10/06 15:23:47 dmcmahill Exp $
+
+MD5 (patch-aa) = 3a86e0b6e272e8698ba8a5f0c6bacb5a
diff --git a/graphics/xpdf/patches/patch-aa b/graphics/xpdf/patches/patch-aa
new file mode 100644
index 00000000000..b32034e5309
--- /dev/null
+++ b/graphics/xpdf/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.3 2000/10/06 15:23:47 dmcmahill Exp $
+
+Avoid a toolchain bug on mipsel noted in NetBSD-1.4.2/pmax
+
+--- xpdf/Makefile.in.orig Tue Aug 15 01:01:52 2000
++++ xpdf/Makefile.in Fri Oct 6 10:27:43 2000
+@@ -19,4 +19,7 @@
+ CXXFLAGS = @CXXFLAGS@ @DEFS@ @OPTIONS@ -I$(GOOSRCDIR) -I$(LTKSRCDIR) -I$(srcdir) @X_CFLAGS@ @Xpm_CFLAGS@ @t1_CFLAGS@ @freetype_CFLAGS@
+
++CXXFLAGS_NOOPT!= ${ECHO} ${CXXFLAGS} | ${SED} 's/-O[0-9]*//g'
++
++
+ LDFLAGS = @LDFLAGS@
+
+@@ -258,4 +261,7 @@
+ config.h Params.h TextOutputDev.h OutputDev.h XOutputDev.h T1Font.h \
+ SFont.h TTFont.h XOutputFontInfo.h
++.if (${MACHINE_ARCH} == "mipsel")
++ ${CXX} ${CXXFLAGS_NOOPT} -c XOutputDev.cc
++.endif
+ XRef.o: ./XRef.cc ../goo/gmem.h Object.h ../goo/gtypes.h \
+ ../goo/GString.h Array.h Dict.h Stream.h Lexer.h Parser.h Decrypt.h \