mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
f998977b3d
CVE-2009-0146, CVE-2009-0147, CVE-2009-0166, CVE-2009-0799, CVE-2009-0800, CVE-2009-1179, CVE-2009-1180, CVE-2009-1181, CVE-2009-1182 and CVE-2009-1183. PR: ports/133831 Submitted by: Mark Foster <mark@foster.cc> Approved by: portmgr (erwin) Security: http://www.vuxml.org/freebsd/a21037d5-2c38-11de-ab3b-0017a4cccfc6.html
92 lines
2.3 KiB
Makefile
92 lines
2.3 KiB
Makefile
# New ports collection makefile for: xpdf
|
|
# Date created: 02 Feb 1996
|
|
# Whom: chuckr@glue.umd.edu
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= xpdf
|
|
PORTVERSION= 3.02
|
|
PORTREVISION= 11
|
|
CATEGORIES= graphics print
|
|
MASTER_SITES= ftp://ftp.foolabs.com/pub/xpdf/ \
|
|
${MASTER_SITE_TEX_CTAN}
|
|
MASTER_SITE_SUBDIR= support/xpdf
|
|
|
|
PATCH_SITES= ftp://ftp.foolabs.com/pub/xpdf/
|
|
PATCHFILES= xpdf-3.02pl1.patch xpdf-3.02pl2.patch xpdf-3.02pl3.patch
|
|
PATCH_DIST_STRIP= -p1
|
|
|
|
MAINTAINER= araujo@FreeBSD.org
|
|
COMMENT= Display PDF files, and convert them to other formats
|
|
|
|
BUILD_DEPENDS= freetype-config:${PORTSDIR}/print/freetype2
|
|
LIB_DEPENDS= t1.5:${PORTSDIR}/devel/t1lib \
|
|
freetype.9:${PORTSDIR}/print/freetype2
|
|
RUN_DEPENDS= ${LOCALBASE}/share/ghostscript/fonts/n021003l.pfb:${PORTSDIR}/print/gsfonts
|
|
|
|
USE_GMAKE= yes
|
|
USE_AUTOTOOLS= autoconf:262
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
CONFIGURE_ARGS= --enable-opi \
|
|
--with-t1-library="${LOCALBASE}/lib" \
|
|
--with-t1-includes="${LOCALBASE}/include" \
|
|
--with-freetype2-library="${LOCALBASE}/lib" \
|
|
--with-freetype2-includes="${LOCALBASE}/include/freetype2"
|
|
|
|
OPTIONS= LIBPAPER "Enable libpaper" off \
|
|
DRAW "Enable drawing annotations" on \
|
|
X11 "Enable X11 support" on \
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if defined(WITH_LIBPAPER)
|
|
LIB_DEPENDS+= paper.2:${PORTSDIR}/print/libpaper
|
|
CONFIGURE_ARGS+=--with-libpaper-library="${LOCALBASE}/lib" \
|
|
--with-libpaper-includes="${LOCALBASE}/include"
|
|
.else
|
|
CONFIGURE_ARGS+=--without-libpaper-library
|
|
.endif
|
|
|
|
.if defined(A4)
|
|
CONFIGURE_ARGS+= --enable-a4-paper
|
|
.endif
|
|
|
|
MAN1= pdffonts.1 \
|
|
pdfimages.1 \
|
|
pdfinfo.1 \
|
|
pdftoppm.1 \
|
|
pdftops.1 \
|
|
pdftotext.1
|
|
MAN5= xpdfrc.5
|
|
|
|
CONFLICTS= poppler-utils-[0-9]*
|
|
|
|
.if defined(WITHOUT_X11)
|
|
PKGNAMESUFFIX+= -nox11
|
|
CONFIGURE_ARGS+= --without-x
|
|
PLIST_SUB+= X11="@comment "
|
|
.else
|
|
CONFIGURE_ARGS+= --with-x
|
|
USE_MOTIF= yes
|
|
MAN1+= xpdf.1
|
|
PLIST_SUB+= X11=""
|
|
.endif
|
|
|
|
.if defined(WITH_DRAW)
|
|
# add support for adding/deleting drawing annotations in PDF files
|
|
PATCH_SITES+= http://info.iet.unipi.it/~luigi/FreeBSD/
|
|
PATCHFILES+= patch-zz-xpdf-annot.20080728a
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@${MKDIR} ${DOCSDIR}
|
|
.for file in ANNOUNCE CHANGES INSTALL README misc/hello.pdf
|
|
${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|