mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= xpdf
|
|
PORTVERSION= 3.04
|
|
PORTREVISION= 4
|
|
CATEGORIES= graphics print
|
|
MASTER_SITES= http://mirrors.rit.edu/zi/ \
|
|
ftp://ftp.foolabs.com/pub/xpdf/ \
|
|
TEX_CTAN/support/xpdf \
|
|
http://komquats.com/distfiles/
|
|
|
|
MAINTAINER= cy@FreeBSD.org
|
|
COMMENT= Display PDF files and convert them to other formats
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
|
|
libpng.so:${PORTSDIR}/graphics/png
|
|
|
|
GNU_CONFIGURE= yes
|
|
USES= gmake cpe
|
|
CPE_VENDOR= foolabs
|
|
CFLAGS+= -I${LOCALBASE}/include -O0
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
CONFIGURE_ARGS= --enable-opi \
|
|
--with-freetype2-library="${LOCALBASE}/lib" \
|
|
--with-freetype2-includes="${LOCALBASE}/include/freetype2" \
|
|
--bindir="${PREFIX}/libexec/xpdf" \
|
|
--mandir="${PREFIX}/share/xpdf/man"
|
|
|
|
MANPREFIX= ${PREFIX}/share/xpdf
|
|
|
|
OPTIONS_DEFINE= LIBPAPER TYPE1 X11 DOCS
|
|
LIBPAPER_DESC= Enable libpaper
|
|
TYPE1_DESC= Ghostscript type1 fonts
|
|
OPTIONS_DEFAULT= TYPE1 X11
|
|
OPTIONS_SUB= yes
|
|
|
|
TYPE1_RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts
|
|
|
|
LIBPAPER_LIB_DEPENDS= libpaper.so:${PORTSDIR}/print/libpaper
|
|
LIBPAPER_CONFIGURE_ON=--with-libpaper-library="${LOCALBASE}/lib" \
|
|
--with-libpaper-includes="${LOCALBASE}/include"
|
|
LIBPAPER_CONFIGURE_OFF=--without-libpaper-library
|
|
|
|
.if defined(A4)
|
|
CONFIGURE_ARGS+= --enable-a4-paper
|
|
.endif
|
|
|
|
X11_CONFIGURE_WITH= x
|
|
X11_USES= motif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's|undef USE_COMBO_BOX|define USE_COMBO_BOX 1|' \
|
|
${WRKSRC}/xpdf/XPDFViewer.h
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for file in ANNOUNCE CHANGES README misc/hello.pdf
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
${LN} -sf ${PREFIX}/libexec/xpdf/xpdf ${STAGEDIR}${PREFIX}/bin/xpdf
|
|
|
|
.include <bsd.port.mk>
|