freebsd-ports/print/pdflib/Makefile
Alex Dupre 6dc126eca7 - Fix tiff vulnerability
- Fix pdf generation on 64bit architectures [1]

PR:		ports/76385 [1]
Submitted by:	UEMURA Tetsuya <t_uemura@macome.co.jp> [1]
2005-01-23 11:21:07 +00:00

61 lines
1.4 KiB
Makefile

# New ports collection makefile for: pdflib
# Date created: Wed Jan 9 12:27:54 CET 2002
# Whom: Alex Dupre <sysadmin@alexdupre.com>
#
# $FreeBSD$
#
PORTNAME= pdflib
PORTVERSION= 6.0.1
PORTREVISION= 1
CATEGORIES= print
MASTER_SITES= http://www.pdflib.com/products/pdflib/download/${PORTVERSION:S/.//g}src/
DISTNAME= PDFlib-Lite-${PORTVERSION}
MAINTAINER= ale@FreeBSD.org
COMMENT= A C library for dynamically generating PDF
RESTRICTED= "many odd restrictions on usage and distribution"
INSTALLS_SHLIB= yes
USE_LIBTOOL_VER=15
USE_REINPLACE= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-java=no \
--with-py=no \
--with-tcl=no
.if defined(WITH_PERL)
USE_PERL5= yes
PLIST_SUB= PERL=""
CONFIGURE_ARGS+=--with-perl=${PERL}
PKGNAMESUFFIX= -perl
.else
CONFIGURE_ARGS+=--with-perl=no
PLIST_SUB= PERL="@comment "
.endif
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
CONFIGURE_ARGS+=--enable-64bit
.endif
post-patch:
@${REINPLACE_CMD} -e "s|\(PDFLIB_LTCURRENT\)=5|\1=7|g" ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's^\$$(top_builddir)/libtool^${LIBTOOL}^' ${WRKSRC}/config/mkcommon.inc.in
post-install:
${MKDIR} ${DATADIR}/fonts
${INSTALL_DATA} ${WRKSRC}/fonts/* ${DATADIR}/fonts
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/pdflib/* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>