aboutsummaryrefslogtreecommitdiffstats
path: root/print/pdfbox/Makefile
blob: c3edd74eaa54d44df3e21ee6be2ece9cd1fa5c0f (plain) (blame)
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
36
37
38
39
# Created by: Pedro Giffuni
# $FreeBSD$

PORTNAME=   pdfbox
PORTVERSION=    1.8.1
CATEGORIES= print textproc java
MASTER_SITES=   ${MASTER_SITE_APACHE:S,%SUBDIR%,pdfbox/${PORTVERSION},}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTFILES=  ${PORTNAME}-app-${PORTVERSION}.jar  \
        fontbox-${PORTVERSION}.jar jempbox-${PORTVERSION}.jar

MAINTAINER= ports@FreeBSD.org
COMMENT=    Java PDF Library

LICENSE=    AL2

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

USE_JAVA=   yes
JAVA_VERSION=   1.6+

DIST_SUBDIR=    ${PORTNAME}
NO_EXTRACT= yes
NO_BUILD=   yes

PLIST_FILES=    %%JAVAJARDIR%%/fontbox-${PORTVERSION}.jar   \
        %%JAVAJARDIR%%/jempbox-${PORTVERSION}.jar   \
        %%JAVAJARDIR%%/${PORTNAME}-app-${PORTVERSION}.jar

NO_STAGE=   yes
do-install:
    @${ECHO_MSG} -n ">> Installing JAR files in ${JAVAJARDIR}..."
    @${MKDIR} ${JAVAJARDIR}
    @${INSTALL_DATA} ${DISTDIR}/${DIST_SUBDIR}/*-${PORTVERSION}.jar \
     ${JAVAJARDIR}
    @${ECHO_MSG} " [ DONE ]"

.include <bsd.port.mk>