summaryrefslogtreecommitdiff
path: root/graphics/xpdf
diff options
context:
space:
mode:
authorhubertf <hubertf@pkgsrc.org>1999-10-25 01:36:26 +0000
committerhubertf <hubertf@pkgsrc.org>1999-10-25 01:36:26 +0000
commite25406a41b11a58615f7ee5f72774cffce536c99 (patch)
treea7d9f6766c786dfbb7c7e00bfdfa20be60834aca /graphics/xpdf
parentfc167b1e2586f31a494b10a546e04f87bf17decb (diff)
downloadpkgsrc-e25406a41b11a58615f7ee5f72774cffce536c99.tar.gz
1. Fix last commit if PAPERSIZE's not defined anywhere
2. Split out common code.
Diffstat (limited to 'graphics/xpdf')
-rw-r--r--graphics/xpdf/Makefile33
-rw-r--r--graphics/xpdf/Makefile.common37
2 files changed, 39 insertions, 31 deletions
diff --git a/graphics/xpdf/Makefile b/graphics/xpdf/Makefile
index 7c15634070e..4e7760e516f 100644
--- a/graphics/xpdf/Makefile
+++ b/graphics/xpdf/Makefile
@@ -1,37 +1,8 @@
-# $NetBSD: Makefile,v 1.11 1999/10/23 15:08:31 fredb Exp $
+# $NetBSD: Makefile,v 1.12 1999/10/25 01:36:27 hubertf Exp $
# FreeBSD Id: Makefile,v 1.12 1998/03/11 03:08:12 vanilla Exp
#
-DISTNAME= xpdf-0.90
-CATEGORIES= graphics print
-MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
-EXTRACT_SUFX= .tgz
-
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.foolabs.com/xpdf/
-DEPENDS+= t1lib-0.9.2:../../textproc/t1lib
-DEPENDS+= xpm-3.4k:../../graphics/xpm
-
-USE_X11BASE= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--enable-japanese
-
-CONFLICTS= xpdf-crypto-0.90
-
-MAN1= xpdf.1 pdftops.1 pdftotext.1 pdfinfo.1 pdftopbm.1 pdfimages.1
-
-post-install:
- @cd ${WRKSRC}/doc; \
- for m in ${MAN1}; do \
- nroff -Tascii -mandoc $$m > $${m%.1}.0; \
- done; \
- ${ECHO} ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1; \
- ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1
-
-.include "../../mk/bsd.prefs.mk"
-.if ${PAPERSIZE} == "A4"
-CONFIGURE_ARGS+= --enable-a4-paper
-.endif
-
-.include "../../mk/bsd.pkg.mk"
+.include "Makefile.common"
diff --git a/graphics/xpdf/Makefile.common b/graphics/xpdf/Makefile.common
new file mode 100644
index 00000000000..35c7fe5e0b6
--- /dev/null
+++ b/graphics/xpdf/Makefile.common
@@ -0,0 +1,37 @@
+# $NetBSD: Makefile.common,v 1.1 1999/10/25 01:36:27 hubertf Exp $
+# FreeBSD Id: Makefile,v 1.12 1998/03/11 03:08:12 vanilla Exp
+#
+
+#
+# Common Makefile for xpdf and xpdf-crypto pkgs
+#
+
+VERS= 0.90
+DISTNAME= xpdf-${VERS}
+CATEGORIES= graphics print
+MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/
+EXTRACT_SUFX= .tgz
+
+DEPENDS+= t1lib-0.9.2:../../textproc/t1lib
+DEPENDS+= xpm-3.4k:../../graphics/xpm
+
+USE_X11BASE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+=--enable-japanese
+
+MAN1= xpdf.1 pdftops.1 pdftotext.1 pdfinfo.1 pdftopbm.1 pdfimages.1
+
+post-install:
+ @cd ${WRKSRC}/doc; \
+ for m in ${MAN1}; do \
+ nroff -Tascii -mandoc $$m > $${m%.1}.0; \
+ done; \
+ ${ECHO} ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1; \
+ ${INSTALL_MAN} ${MAN1:S/.1/.0/} ${PREFIX}/man/cat1
+
+.include "../../mk/bsd.prefs.mk"
+.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
+CONFIGURE_ARGS+= --enable-a4-paper
+.endif
+
+.include "../../mk/bsd.pkg.mk"