2013-09-21 00:43:59 +02:00
|
|
|
# Created by: Alex Dupre <sysadmin@alexdupre.com>
|
2002-01-27 16:47:42 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pdflib
|
2012-01-10 12:40:12 +01:00
|
|
|
PORTVERSION= 7.0.5
|
2012-06-13 11:42:06 +02:00
|
|
|
PORTREVISION= 2
|
2012-01-13 12:59:34 +01:00
|
|
|
CATEGORIES= print perl5 java
|
2007-08-28 07:52:07 +02:00
|
|
|
MASTER_SITES= http://www.pdflib.com/binaries/PDFlib/${PORTVERSION:S/.//g}/
|
2012-06-13 11:42:06 +02:00
|
|
|
DISTNAME= PDFlib-Lite-${PORTVERSION}p3
|
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
|
|
|
|
2012-06-13 11:42:06 +02:00
|
|
|
OPTIONS_DEFINE= PERL JAVA
|
|
|
|
PERL_DESC= Build perl bindings
|
|
|
|
JAVA_DESC= Build Java bindings
|
2012-01-13 10:17:41 +01:00
|
|
|
|
2013-09-15 10:15:41 +02:00
|
|
|
USES= gmake
|
2006-10-09 10:17:20 +02:00
|
|
|
USE_LDCONFIG= yes
|
2012-01-10 12:40:12 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2012-01-13 10:17:41 +01:00
|
|
|
CONFIGURE_ARGS= --with-py=no --with-ruby=no --with-tcl=no
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64"
|
|
|
|
CONFIGURE_ARGS+=--enable-64bit
|
|
|
|
.endif
|
2003-03-31 09:04:43 +02:00
|
|
|
|
2012-06-13 11:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-09-15 10:15:41 +02:00
|
|
|
USES+= perl5
|
2003-03-31 09:04:43 +02:00
|
|
|
PLIST_SUB= PERL=""
|
|
|
|
CONFIGURE_ARGS+=--with-perl=${PERL}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-perl=no
|
|
|
|
PLIST_SUB= PERL="@comment "
|
|
|
|
.endif
|
2002-01-27 16:47:42 +01:00
|
|
|
|
2012-06-13 11:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MJAVA}
|
2012-01-13 10:17:41 +01:00
|
|
|
USE_JAVA= yes
|
|
|
|
JAVA_BUILD= yes
|
|
|
|
JAVA_RUN= yes
|
|
|
|
PLIST_SUB+= JAVA=""
|
|
|
|
CONFIGURE_ARGS+=--with-java=${JAVA_HOME}
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-java=no
|
|
|
|
PLIST_SUB+= JAVA="@comment "
|
2005-01-23 12:21:07 +01:00
|
|
|
.endif
|
2004-01-27 01:24:56 +01:00
|
|
|
|
2002-01-27 17:04:16 +01:00
|
|
|
post-install:
|
2014-02-26 08:38:19 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/fonts
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/fonts/* ${STAGEDIR}${DATADIR}/fonts
|
2012-06-13 11:42:06 +02:00
|
|
|
.if ${PORT_OPTIONS:MJAVA}
|
2014-02-26 08:38:19 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/bind/pdflib/java/pdflib.jar ${STAGEDIR}${JAVAJARDIR}/pdflib.jar
|
2002-01-27 16:47:42 +01:00
|
|
|
.endif
|
2014-02-26 08:38:19 +01:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/pdflib/* ${STAGEDIR}${DOCSDIR}
|
2002-01-27 16:47:42 +01:00
|
|
|
|
2005-01-23 12:21:07 +01:00
|
|
|
.include <bsd.port.post.mk>
|