52 lines
1.4 KiB
Makefile
52 lines
1.4 KiB
Makefile
# Created by: Patrick Dung (patrick_dkt@yahoo.com.hk)
|
|
|
|
PORTNAME= pdftk
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 3.2.2
|
|
CATEGORIES= print java
|
|
MASTER_SITES= https://repo.maven.apache.org/maven2/:bcprov
|
|
DISTFILES= ${_BCPROV_JAR}:bcprov
|
|
|
|
MAINTAINER= andreas@bilke.org
|
|
COMMENT= Simple tool for doing everyday things with PDF documents
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${JAVAJARDIR}/commons-lang3.jar:java/apache-commons-lang3
|
|
RUN_DEPENDS= ${JAVAJARDIR}/commons-lang3.jar:java/apache-commons-lang3
|
|
|
|
USE_ANT= yes
|
|
USE_GITLAB= yes
|
|
GL_ACCOUNT= pdftk-java
|
|
GL_COMMIT= eefd0b5178e1cafd25a0ae762b8535c7f13a5a4e
|
|
USE_JAVA= yes
|
|
ALL_TARGET= jar
|
|
NO_ARCH= yes
|
|
SUB_FILES= pdftk
|
|
SUB_LIST= CLASSPATH="${_CLASSPATH:ts:}" \
|
|
JAVA="${JAVA}"
|
|
PLIST_FILES= ${JAVAJARDIR}/${_BCPROV_JAR:T} \
|
|
${JAVAJARDIR}/pdftk.jar \
|
|
bin/pdftk \
|
|
share/man/man1/pdftk.1.gz
|
|
|
|
_BCPROV_JAR= org/bouncycastle/bcprov-jdk15on/1.64/bcprov-jdk15on-1.64.jar
|
|
_CLASSPATH= ${JAVAJARDIR}/${_BCPROV_JAR:T} ${JAVAJARDIR}/commons-lang3.jar \
|
|
${JAVAJARDIR}/pdftk.jar
|
|
|
|
post-extract:
|
|
@${MKDIR} ${WRKSRC}/lib
|
|
@${LN} -sf ${JAVAJARDIR}/commons-lang3.jar ${WRKSRC}/lib
|
|
@${LN} -sf ${DISTDIR}/${_BCPROV_JAR} ${WRKSRC}/lib
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/pdftk \
|
|
${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/build/jar/pdftk.jar \
|
|
${DISTDIR}/${_BCPROV_JAR} \
|
|
${STAGEDIR}${JAVAJARDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/pdftk.1 \
|
|
${STAGEDIR}${PREFIX}/share/man/man1
|
|
|
|
.include <bsd.port.mk>
|