2002-01-27 16:47:42 +01:00
|
|
|
# New ports collection makefile for: pdflib
|
2002-01-27 17:04:16 +01:00
|
|
|
# Date created: Wed Jan 9 12:27:54 CET 2002
|
|
|
|
# Whom: Alex Dupre <sysadmin@alexdupre.com>
|
2002-01-27 16:47:42 +01:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pdflib
|
2009-07-06 10:02:29 +02:00
|
|
|
PORTVERSION= 7.0.4
|
2002-01-27 16:47:42 +01:00
|
|
|
CATEGORIES= print
|
2007-08-28 07:52:07 +02:00
|
|
|
MASTER_SITES= http://www.pdflib.com/binaries/PDFlib/${PORTVERSION:S/.//g}/
|
2009-07-06 10:02:29 +02:00
|
|
|
DISTNAME= PDFlib-Lite-${PORTVERSION}p4
|
2002-01-27 16:47:42 +01:00
|
|
|
|
2004-01-18 11:50:15 +01:00
|
|
|
MAINTAINER= ale@FreeBSD.org
|
2003-02-21 14:28:59 +01:00
|
|
|
COMMENT= A C library for dynamically generating PDF
|
2002-01-27 16:47:42 +01:00
|
|
|
|
2006-10-09 10:17:20 +02:00
|
|
|
RESTRICTED= many odd restrictions on usage and distribution
|
2002-02-03 02:27:26 +01:00
|
|
|
|
2006-10-09 10:17:20 +02:00
|
|
|
USE_LDCONFIG= yes
|
2002-07-11 07:05:50 +02:00
|
|
|
USE_GMAKE= yes
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-10-09 10:17:20 +02:00
|
|
|
CONFIGURE_ARGS= --with-java=no --with-py=no --with-ruby=no --with-tcl=no
|
2003-03-31 09:04:43 +02:00
|
|
|
|
|
|
|
.if defined(WITH_PERL)
|
|
|
|
USE_PERL5= yes
|
|
|
|
PLIST_SUB= PERL=""
|
|
|
|
CONFIGURE_ARGS+=--with-perl=${PERL}
|
2003-04-16 05:36:58 +02:00
|
|
|
PKGNAMESUFFIX= -perl
|
2003-03-31 09:04:43 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-perl=no
|
|
|
|
PLIST_SUB= PERL="@comment "
|
|
|
|
.endif
|
2002-01-27 16:47:42 +01:00
|
|
|
|
2004-12-09 11:51:41 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2005-01-23 12:21:07 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
|
|
CONFIGURE_ARGS+=--enable-64bit
|
|
|
|
.endif
|
2004-01-27 01:24:56 +01:00
|
|
|
post-patch:
|
2006-10-09 10:17:20 +02:00
|
|
|
@${REINPLACE_CMD} -e "s|\(PDFLIB_LTCURRENT\)=6|\1=8|g" ${WRKSRC}/configure
|
2004-12-09 11:51:41 +01:00
|
|
|
@${REINPLACE_CMD} -e 's^\$$(top_builddir)/libtool^${LIBTOOL}^' ${WRKSRC}/config/mkcommon.inc.in
|
2004-01-27 01:24:56 +01:00
|
|
|
|
2002-01-27 17:04:16 +01:00
|
|
|
post-install:
|
2003-03-31 09:04:43 +02:00
|
|
|
${MKDIR} ${DATADIR}/fonts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fonts/* ${DATADIR}/fonts
|
2002-01-27 16:47:42 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-06-21 17:49:49 +02:00
|
|
|
${MKDIR} ${DOCSDIR}
|
2003-06-04 08:25:20 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/pdflib/* ${DOCSDIR}
|
2002-01-27 16:47:42 +01:00
|
|
|
.endif
|
|
|
|
|
2005-01-23 12:21:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|