summaryrefslogtreecommitdiffstats
path: root/print/pdfbox/Makefile
blob: 522e91d3bad542c7dc6077a90ef1a1b9efd92608 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Pedro Giffuni
# $FreeBSD$

PORTNAME=	pdfbox
PORTVERSION=	1.8.9
CATEGORIES=	print textproc java
MASTER_SITES=	APACHE/pdfbox/${PORTVERSION}
DISTFILES=	${JAR_NAMES:S/$/-${PORTVERSION}.jar/}

MAINTAINER=	ale@FreeBSD.org
COMMENT=	Java tool for working with PDF documents

LICENSE=	APACHE20

RUN_DEPENDS=	${JAVAJARDIR}/bcmail.jar:${PORTSDIR}/java/bouncycastle	\
		${JAVALIBDIR}/commons-logging.jar:${PORTSDIR}/java/jakarta-commons-logging

JAR_NAMES=	pdfbox fontbox jempbox preflight xmpbox

USE_JAVA=	yes
NO_EXTRACT=	yes
NO_BUILD=	yes

PLIST_FILES=	${JAR_NAMES:S/^/%%JAVAJARDIR%%\//:S/$/.jar/}

do-install:
	@${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
	@${MKDIR} ${STAGEDIR}${JAVAJARDIR}
.for f in ${JAR_NAMES}
	${INSTALL_DATA} ${DISTDIR}/${f}-${PORTVERSION}.jar \
		${STAGEDIR}${JAVAJARDIR}/${f}.jar
.endfor
	@${ECHO_MSG} " [ DONE ]"

.include <bsd.port.mk>
OpenPOWER on IntegriCloud