2003-11-07 17:34:41 +01:00
|
|
|
# $NetBSD: Makefile,v 1.26 2003/11/07 16:34:41 gavan Exp $
|
2001-10-04 13:58:37 +02:00
|
|
|
|
2003-10-24 03:12:52 +02:00
|
|
|
DISTNAME= xpdf-2.03
|
2001-10-04 13:58:37 +02:00
|
|
|
CATEGORIES= print
|
|
|
|
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
|
|
|
|
${MASTER_SITE_SUNSITE:=apps/graphics/viewers/X/}
|
|
|
|
|
2003-11-03 01:36:02 +01:00
|
|
|
MAINTAINER= dillo@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]*
|
|
|
|
|
2002-08-25 23:48:57 +02:00
|
|
|
USE_BUILDLINK2= YES
|
2003-01-28 23:03:00 +01:00
|
|
|
USE_PKGINSTALL= YES
|
2003-03-25 15:02:37 +01:00
|
|
|
USE_X11= YES
|
2003-11-07 17:34:41 +01:00
|
|
|
USE_GCC_SHLIB= YES
|
2001-10-04 13:58:37 +02:00
|
|
|
|
2002-09-19 03:45:42 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
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
|
2001-10-04 13:58:37 +02:00
|
|
|
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
|
|
|
|
|
2002-09-19 03:45:42 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/xpdf
|
|
|
|
CONF_FILES= ${EGDIR}/xpdfrc ${PKG_SYSCONFDIR}/xpdfrc
|
|
|
|
|
2003-03-25 15:02:37 +01:00
|
|
|
post-patch:
|
|
|
|
@cd ${WRKSRC}/doc && \
|
|
|
|
for f in *.1 *.5; do \
|
|
|
|
${MV} $${f} $${f}.orig; \
|
|
|
|
${SED} ${FILES_SUBST_SED} $${f}.orig > $${f}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
# Used by supplemental packages.
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/xpdf
|
|
|
|
|
2002-08-25 23:48:57 +02:00
|
|
|
.include "../../fonts/t1lib/buildlink2.mk"
|
|
|
|
.include "../../graphics/freetype2/buildlink2.mk"
|
|
|
|
.include "../../graphics/xpm/buildlink2.mk"
|
2002-11-08 03:46:29 +01:00
|
|
|
.include "../../mk/motif.buildlink2.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
|