From 1ec7d4d1218cad0a1681a0bc7faba7cca4d4c245 Mon Sep 17 00:00:00 2001
From: chuckr <chuckr@FreeBSD.org>
Date: Tue, 23 Nov 1999 03:30:35 +0000
Subject: Update to the 0.90 version, with encryption and hot links.

PR:		13133
Submitted by:	OKAZAKI Tetsurou <okazaki@be.to> and
		Christian Weisgerber <naddy@mips.rhein-neckar.de>
---
 graphics/xpdf/Makefile | 31 +++++++++++++++++++------------
 graphics/xpdf/distinfo |  4 ++--
 2 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/graphics/xpdf/Makefile b/graphics/xpdf/Makefile
index b05f27d..c70aedc3 100644
--- a/graphics/xpdf/Makefile
+++ b/graphics/xpdf/Makefile
@@ -1,36 +1,43 @@
 # New ports collection makefile for:	xpdf
-# Version required:     0.80
+# Version required:     0.90
 # Date created:         02 Feb 1996
 # Whom:                 chuckr@glue.umd.edu
 #
 # $FreeBSD$
 #
 
-DISTNAME=       xpdf-0.80
+DISTNAME=       xpdf-0.90
 CATEGORIES=	graphics print
 MASTER_SITES=	${MASTER_SITE_TEX_CTAN} ftp://ftp.foolabs.com/pub/xpdf/  \
-		ftp://ftp.duke.edu/pub/X11/contrib/applications/  \
-		${MASTER_SITE_TEX_CTAN}
+		ftp://ftp.duke.edu/pub/X11/contrib/applications/
 MASTER_SITE_SUBDIR=support/xpdf
 EXTRACT_SUFX=	.tgz
 
 .if defined(USA_RESIDENT) && !defined(PACKAGE_BUILDING)
-PATCH_SITES=	ftp://ftp.sci.usq.edu.au/pub/linux/xpdf/
-PATCHFILES=	xpdf-0.80-decrypt.patch
-PATCH_DIST_ARGS=-p0 -E -d ${WRKDIR} --quiet
+PATCH_SITES=	http://www.fefe.de/
+PATCHFILES=	xpdf-0.90-fefe-diff.gz
+PATCH_DIST_STRIP= -p1
 .endif
 
-MAINTAINER=	chuckr@glue.umd.edu
+MAINTAINER=	chuckr@freebsd.org
 
-LIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm
+LIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm \
+		t1.9:${PORTSDIR}/devel/t1lib
 
 .if defined(USA_RESIDENT) && !defined(PACKAGE_BUILDING)
 RESTRICTED=     "Contains cryptography"
 .endif
+USE_XLIB=	yes
 USE_X_PREFIX=	yes
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-gzip --enable-japanese
-CONFIGURE_ENV=	CXXFLAGS="${CFLAGS}"
+USE_AUTOCONF=	yes
+CONFIGURE_ARGS=	--with-gzip --enable-japanese		\
+		--with-t1-library=${LOCALBASE}/lib	\
+		--with-t1-includes=${LOCALBASE}/include	\
+		--with-t1x-library=${LOCALBASE}/lib	\
+		--with-t1x-includes=${LOCALBASE}/include
+.if defined(A4)
+CONFIGURE_ARGS+=	--enable-a4-paper
+.endif
 
 MAN1=		pdfimages.1 \
 		pdfinfo.1 \
diff --git a/graphics/xpdf/distinfo b/graphics/xpdf/distinfo
index 495a265..202dc44 100644
--- a/graphics/xpdf/distinfo
+++ b/graphics/xpdf/distinfo
@@ -1,2 +1,2 @@
-MD5 (xpdf-0.80.tgz) = 91d49cfaf1e555a26a9bcd0b57e51f8a
-MD5 (xpdf-0.80-decrypt.patch) = 97d6648022fcd9633917f8dc96d25fa2
+MD5 (xpdf-0.90.tgz) = a7678b64713a466279b61c28ba01134b
+MD5 (xpdf-0.90-fefe-diff.gz) = a2e68bb76b4d7a7bf3c43f5af0ec38c8
-- 
cgit v1.1