summaryrefslogtreecommitdiff
path: root/print
diff options
context:
space:
mode:
authorwiz <wiz>2001-10-04 11:58:37 +0000
committerwiz <wiz>2001-10-04 11:58:37 +0000
commit4ae617b88488b4be46defa5aeaaaafb43f3ba65b (patch)
treee1068f8a99fda450e087a145cb971bae7518c099 /print
parentc811af85aac93b5fafa03ec557b2b7e68ed07fcc (diff)
downloadpkgsrc-4ae617b88488b4be46defa5aeaaaafb43f3ba65b.tar.gz
Move from graphics/xpdf to print/xpdf per pkg/14154.
Diffstat (limited to 'print')
-rw-r--r--print/xpdf/Makefile44
-rw-r--r--print/xpdf/distinfo5
-rw-r--r--print/xpdf/files/xpdf-app-defaults16
-rw-r--r--print/xpdf/patches/patch-aa22
-rw-r--r--print/xpdf/pkg/DESCR6
-rw-r--r--print/xpdf/pkg/PLIST14
6 files changed, 107 insertions, 0 deletions
diff --git a/print/xpdf/Makefile b/print/xpdf/Makefile
new file mode 100644
index 00000000000..0a567db1750
--- /dev/null
+++ b/print/xpdf/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2001/10/04 11:58:37 wiz Exp $
+#
+
+DISTNAME= xpdf-0.92
+CATEGORIES= print
+MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
+ ${MASTER_SITE_SUNSITE:=apps/graphics/viewers/X/}
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.foolabs.com/xpdf/
+COMMENT= Display tool for PDF files
+
+DEPENDS+= ghostscript-fonts-[0-9]*:../../fonts/ghostscript-fonts
+
+CONFLICTS= xpdf-crypto-[0-9]*
+
+USE_BUILDLINK_ONLY= YES
+USE_X11BASE= YES
+GNU_CONFIGURE= YES
+
+CONFIGURE_ARGS+= --enable-japanese
+CONFIGURE_ARGS+= --enable-chinese
+CONFIGURE_ARGS+= --with-freetype-includes=${BUILDLINK_DIR}/include
+CONFIGURE_ARGS+= --with-t1-includes=${BUILDLINK_DIR}/include
+CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
+MAKE_ENV+= SED="${SED}" ECHO="${ECHO}"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
+CONFIGURE_ARGS+= --enable-a4-paper
+.endif
+
+post-install:
+ ${SED} -e "s|@@LOCALBASE@@|${LOCALBASE}|g" \
+ ${FILESDIR}/xpdf-app-defaults \
+ > ${X11PREFIX}/lib/X11/app-defaults/Xpdf
+
+.include "../../graphics/freetype-lib/buildlink.mk"
+.include "../../graphics/xpm/buildlink.mk"
+.include "../../textproc/t1lib/buildlink.mk"
+.include "../../mk/x11.buildlink.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/print/xpdf/distinfo b/print/xpdf/distinfo
new file mode 100644
index 00000000000..6bd2a66fc79
--- /dev/null
+++ b/print/xpdf/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2001/10/04 11:58:37 wiz Exp $
+
+SHA1 (xpdf-0.92.tgz) = a3c1f2ffa9dffa64284106b00d10cf61c5ce22ce
+Size (xpdf-0.92.tgz) = 917813 bytes
+SHA1 (patch-aa) = dbac2c341499df0ab4c1e3e9c072eb14a5d78fed
diff --git a/print/xpdf/files/xpdf-app-defaults b/print/xpdf/files/xpdf-app-defaults
new file mode 100644
index 00000000000..282bb5f9bf1
--- /dev/null
+++ b/print/xpdf/files/xpdf-app-defaults
@@ -0,0 +1,16 @@
+xpdf.t1TimesRoman: @@LOCALBASE@@/share/ghostscript/fonts/n021003l.pfb
+xpdf.t1TimesItalic: @@LOCALBASE@@/share/ghostscript/fonts/n021023l.pfb
+xpdf.t1TimesBold: @@LOCALBASE@@/share/ghostscript/fonts/n021004l.pfb
+xpdf.t1TimesBoldItalic: @@LOCALBASE@@/share/ghostscript/fonts/n021024l.pfb
+xpdf.t1Helvetica: @@LOCALBASE@@/share/ghostscript/fonts/n019003l.pfb
+xpdf.t1HelveticaOblique: @@LOCALBASE@@/share/ghostscript/fonts/n019023l.pfb
+xpdf.t1HelveticaBold: @@LOCALBASE@@/share/ghostscript/fonts/n019004l.pfb
+xpdf.t1HelveticaBoldOblique: @@LOCALBASE@@/share/ghostscript/fonts/n019024l.pfb
+xpdf.t1Courier: @@LOCALBASE@@/share/ghostscript/fonts/n022003l.pfb
+xpdf.t1CourierOblique: @@LOCALBASE@@/share/ghostscript/fonts/n022023l.pfb
+xpdf.t1CourierBold: @@LOCALBASE@@/share/ghostscript/fonts/n022004l.pfb
+xpdf.t1CourierBoldOblique: @@LOCALBASE@@/share/ghostscript/fonts/n022024l.pfb
+xpdf.t1Symbol: @@LOCALBASE@@/share/ghostscript/fonts/s050000l.pfb
+xpdf.t1ZapfDingbats: @@LOCALBASE@@/share/ghostscript/fonts/d050000l.pfb
+xpdf.freeTypeControl: aa
+xpdf.t1libControl: aa
diff --git a/print/xpdf/patches/patch-aa b/print/xpdf/patches/patch-aa
new file mode 100644
index 00000000000..d27d501229e
--- /dev/null
+++ b/print/xpdf/patches/patch-aa
@@ -0,0 +1,22 @@
+$NetBSD: patch-aa,v 1.1.1.1 2001/10/04 11:58:37 wiz 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 \
diff --git a/print/xpdf/pkg/DESCR b/print/xpdf/pkg/DESCR
new file mode 100644
index 00000000000..9dcff288b26
--- /dev/null
+++ b/print/xpdf/pkg/DESCR
@@ -0,0 +1,6 @@
+Xpdf is a viewer for Portable Document Format (PDF) files.
+
+Xpdf is designed to be small and efficient. It runs under X,
+but does not use the Motif or Xt libraries. Use of the T1 library
+provides superior rendering of type 1 fonts, and also permits
+run-time configuration of the exact fonts to be used.
diff --git a/print/xpdf/pkg/PLIST b/print/xpdf/pkg/PLIST
new file mode 100644
index 00000000000..4fcb32fdf66
--- /dev/null
+++ b/print/xpdf/pkg/PLIST
@@ -0,0 +1,14 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2001/10/04 11:58:37 wiz Exp $
+bin/xpdf
+bin/pdftops
+bin/pdftotext
+bin/pdfinfo
+bin/pdftopbm
+bin/pdfimages
+man/man1/xpdf.1
+man/man1/pdftops.1
+man/man1/pdftotext.1
+man/man1/pdfinfo.1
+man/man1/pdftopbm.1
+man/man1/pdfimages.1
+lib/X11/app-defaults/Xpdf