diff options
Diffstat (limited to 'print/pdflib/Makefile')
-rw-r--r-- | print/pdflib/Makefile | 38 |
1 files changed, 29 insertions, 9 deletions
diff --git a/print/pdflib/Makefile b/print/pdflib/Makefile index 2bb0f070f136..ac26197991d5 100644 --- a/print/pdflib/Makefile +++ b/print/pdflib/Makefile @@ -7,7 +7,7 @@ PORTNAME= pdflib PORTVERSION= 7.0.5 -CATEGORIES= print +CATEGORIES= print perl java MASTER_SITES= http://www.pdflib.com/binaries/PDFlib/${PORTVERSION:S/.//g}/ DISTNAME= PDFlib-Lite-${PORTVERSION} @@ -16,32 +16,52 @@ COMMENT= A C library for dynamically generating PDF RESTRICTED= many odd restrictions on usage and distribution +.if defined(WITH_PERL) +OPTIONS= PERL "Build perl bindings" on +.else +OPTIONS= PERL "Build perl bindings" off +.endif +OPTIONS+= JAVA "Build Java bindings" off + USE_LDCONFIG= yes USE_GMAKE= yes GNU_CONFIGURE= yes -CONFIGURE_ARGS= --with-java=no --with-py=no --with-ruby=no --with-tcl=no +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 .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 -PORTDOCS= * - -.include <bsd.port.pre.mk> - -.if ${ARCH} == "amd64" || ${ARCH} == "ia64" || ${ARCH} == "sparc64" -CONFIGURE_ARGS+=--enable-64bit +.if defined(WITH_JAVA) +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 " .endif post-install: ${MKDIR} ${DATADIR}/fonts ${INSTALL_DATA} ${WRKSRC}/fonts/* ${DATADIR}/fonts +.if defined(WITH_JAVA) + ${INSTALL_DATA} ${WRKSRC}/bind/pdflib/java/pdflib.jar ${JAVAJARDIR}/pdflib.jar +.endif .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/pdflib/* ${DOCSDIR} |