1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00
freebsd-ports/print/pdftk/Makefile
2021-10-04 10:27:08 +02:00

53 lines
1.4 KiB
Makefile

# Created by: Patrick Dung (patrick_dkt@yahoo.com.hk)
PORTNAME= pdftk
DISTVERSIONPREFIX= v
DISTVERSION= 3.3.1
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= 6e80f7f64fe989de298f0ad7a107b2539b0038a7
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.69/bcprov-jdk15on-1.69.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>