2006-01-21 23:31:58 +01:00
|
|
|
# $NetBSD: Makefile,v 1.50 2006/01/21 22:31:58 dillo Exp $
|
2001-10-04 13:58:37 +02:00
|
|
|
|
2005-09-07 17:19:08 +02:00
|
|
|
DISTNAME= xpdf-3.01
|
2005-12-07 10:26:58 +01:00
|
|
|
PKGNAME= ${DISTNAME}pl1
|
2005-12-20 17:00:16 +01:00
|
|
|
PKGREVISION= 3
|
2001-10-04 13:58:37 +02:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
|
2005-12-08 19:53:24 +01:00
|
|
|
${MASTER_SITE_SUNSITE:=apps/graphics/viewers/X/xpdf/} \
|
2004-07-28 13:06:43 +02:00
|
|
|
http://gd.tuwien.ac.at/publishing/xpdf/
|
2001-10-04 13:58:37 +02:00
|
|
|
|
2005-12-07 10:26:58 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCHFILES= xpdf-3.01pl1.patch
|
|
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
|
2006-01-21 23:31:58 +01:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2001-10-04 13:58:37 +02:00
|
|
|
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]*
|
|
|
|
|
2004-02-02 14:02:49 +01:00
|
|
|
USE_LANGUAGES= c c++
|
2005-09-07 17:19:08 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2002-08-25 23:48:57 +02:00
|
|
|
CONFIGURE_ARGS+= --with-freetype2-includes=${BUILDLINK_PREFIX.freetype2}/include/freetype2
|
|
|
|
CONFIGURE_ARGS+= --with-t1-includes=${BUILDLINK_PREFIX.t1lib}/include
|
2005-12-05 21:49:47 +01:00
|
|
|
CONFIGURE_ENV+= CXXFLAGS=${CXXFLAGS:M*:Q}
|
|
|
|
MAKE_ENV+= SED=${SED:Q} ECHO=${ECHO:Q}
|
2001-10-04 13:58:37 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
|
|
|
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
|
|
|
|
CONFIGURE_ARGS+= --enable-a4-paper
|
|
|
|
.endif
|
|
|
|
|
2002-09-19 03:45:42 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/xpdf
|
|
|
|
CONF_FILES= ${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
|
|
|
|
|
2006-01-12 03:02:16 +01:00
|
|
|
SUBST_CLASSES+= paths
|
|
|
|
SUBST_FILES.paths= doc/pdffonts.1 doc/pdfimages.1 doc/pdfinfo.1
|
2006-01-12 14:56:12 +01:00
|
|
|
SUBST_FILES.paths+= doc/pdftopnm.1 doc/pdftops.1 doc/pdftotext.1
|
|
|
|
SUBST_FILES.paths+= doc/sample-xpdfrc doc/xpdf.1 doc/xpdfrc.5
|
2006-01-12 03:02:16 +01:00
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
2003-03-25 15:02:37 +01:00
|
|
|
|
|
|
|
# Used by supplemental packages.
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/xpdf
|
|
|
|
|
2004-04-19 01:58:29 +02:00
|
|
|
.include "../../fonts/t1lib/buildlink3.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink3.mk"
|
|
|
|
.include "../../graphics/xpm/buildlink3.mk"
|
|
|
|
.include "../../mk/motif.buildlink3.mk"
|
2002-08-25 23:48:57 +02:00
|
|
|
|
2001-10-04 13:58:37 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|
2002-09-19 03:45:42 +02:00
|
|
|
|
|
|
|
.if !empty(MACHINE_PLATFORM:MNetBSD-*-mipsel)
|
|
|
|
CXXFLAGS:= ${CXXFLAGS:N-O[0-9]*}
|
|
|
|
.endif
|