pkgsrc/graphics/xpdf/Makefile

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.24 2001/04/03 14:47:16 wiz Exp $
# FreeBSD Id: Makefile,v 1.12 1998/03/11 03:08:12 vanilla Exp
#
DISTNAME= xpdf-0.92
CATEGORIES= graphics 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+= freetype-lib-1.3.1:../../graphics/freetype
DEPENDS+= ghostscript-fonts-*:../../fonts/ghostscript-fonts
DEPENDS+= t1lib>=1.0.1:../../textproc/t1lib
CONFLICTS= xpdf-crypto-*
USE_X11BASE= YES
USE_XPM= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+=--enable-japanese --enable-chinese
CONFIGURE_ARGS+=--with-freetype-includes=${LOCALBASE}/include
CONFIGURE_ARGS+=--with-t1-includes=${X11PREFIX}/include
CONFIGURE_ENV+= CXXFLAGS="${CXXFLAGS}"
MAKE_ENV+= SED="${SED}" ECHO="${ECHO}"
post-install:
${SED} 's|@@LOCALBASE@@|${LOCALBASE}|' \
< ${FILESDIR}/xpdf-app-defaults \
> ${X11PREFIX}/lib/X11/app-defaults/Xpdf
.include "../../mk/bsd.prefs.mk"
.if defined(PAPERSIZE) && ${PAPERSIZE} == "A4"
CONFIGURE_ARGS+= --enable-a4-paper
.endif
.include "../../mk/bsd.pkg.mk"