Index: head/print/pdflib/Makefile =================================================================== --- head/print/pdflib/Makefile +++ head/print/pdflib/Makefile @@ -5,51 +5,52 @@ PORTVERSION= 7.0.5 PORTREVISION= 6 CATEGORIES= print perl5 java -MASTER_SITES= LOCAL/ale +MASTER_SITES= LOCAL/ale:src \ + LOCAL/crees:license DISTNAME= PDFlib-Lite-${PORTVERSION}p3 +DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:src PDFlib-Lite-license.txt.gz:license +EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ale@FreeBSD.org COMMENT= C library for dynamically generating PDF +LICENSE= PDFlib-Lite +LICENSE_NAME= PDFlib-Lite +LICENSE_FILE= ${WRKDIR}/LICENSE +LICENSE_PERMS= dist-mirror pkg-mirror auto-accept + BUILD_DEPENDS= gsed:textproc/gsed -RESTRICTED= Many odd restrictions on usage and distribution - -OPTIONS_DEFINE= PERL JAVA DOCS -PERL_DESC= Build perl bindings -JAVA_DESC= Build Java bindings - USES= gmake libtool USE_LDCONFIG= yes GNU_CONFIGURE= yes BINARY_ALIAS= sed=${LOCALBASE}/bin/gsed CONFIGURE_ARGS= --with-py=no --with-ruby=no --with-tcl=no +OPTIONS_DEFINE= PERL JAVA DOCS +OPTIONS_SUB= yes +PERL_DESC= Build perl bindings +JAVA_DESC= Build Java bindings +PERL_CONFIGURE_WITH= perl=${PERL} + PORTDOCS= * PERL_USES= perl5 -.include +.include -.if ${PORT_OPTIONS:MPERL} -PLIST_SUB+= PERL="" -CONFIGURE_ARGS+=--with-perl=${PERL} -.else -CONFIGURE_ARGS+=--with-perl=no -PLIST_SUB+= PERL="@comment " -.endif - .if ${PORT_OPTIONS:MJAVA} 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-extract: + ${GZCAT} ${DISTDIR}/PDFlib-Lite-license.txt.gz > ${WRKDIR}/LICENSE + post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pdfimage ${STAGEDIR}${PREFIX}/bin/text2pdf \ ${STAGEDIR}${PREFIX}/lib/libpdf.so.6.0.5 @@ -63,4 +64,4 @@ post-install-JAVA-on: ${INSTALL_DATA} ${WRKSRC}/bind/pdflib/java/pdflib.jar ${STAGEDIR}${JAVAJARDIR}/pdflib.jar -.include +.include Index: head/print/pdflib/distinfo =================================================================== --- head/print/pdflib/distinfo +++ head/print/pdflib/distinfo @@ -1,2 +1,5 @@ +TIMESTAMP = 1614866181 SHA256 (PDFlib-Lite-7.0.5p3.tar.gz) = e5fb30678165d28b2bf066f78d5f5787e73a2a28d4902b63e3e07ce1678616c9 SIZE (PDFlib-Lite-7.0.5p3.tar.gz) = 8179201 +SHA256 (PDFlib-Lite-license.txt.gz) = fedc1ef76e3df5f40cf5740a0fc06df5a7844a968cf72dba3e073716f779a91b +SIZE (PDFlib-Lite-license.txt.gz) = 2869