aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/jakarta-poi/Makefile
blob: 1cdcb39f76a18efc28a61daec15f3f63b0a33ae2 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# New ports collection makefile for:    Jakarta POI API
# Date created:             Wed Mar  2 22:01:02 EET 2005
# Whom:                 Anton Yudin <toha@toha.org.ua>
#
# $FreeBSD$
#

PORTNAME=   poi
PORTVERSION=    2.5.1
PORTREVISION=   1
CATEGORIES= textproc devel java
MASTER_SITES=   ${MASTER_SITE_APACHE_JAKARTA}
MASTER_SITE_SUBDIR= ${PORTNAME:S,-,/,}/release/src
PKGNAMEPREFIX=  jakarta-
DISTNAME=   ${PORTNAME}-src-${PORTVERSION}-final-20040804

MAINTAINER= toha@toha.org.ua
COMMENT=    Java API To Access Microsoft Format Files

BUILD_DEPENDS=  ${JAVALIBDIR}/xalan.jar:${PORTSDIR}/textproc/xalan-j

USE_JAVA=   yes
JAVA_VERSION=   1.4+
USE_JIKES=  no

NO_WRKSUBDIR=   yes

DSTAMP=     `date +%Y%m%d`

USE_ANT=    yes
MAKE_ENV+=  ANT_INCLUDE_SHARED_JARS=YES
.if !defined(NOPORTDOCS)
PORTDOCS=   *
.endif
ALL_TARGET= jar
JARFILE=    ${PORTNAME}-${PORTVERSION}-final-${DSTAMP}.jar
DESTJARFILE=    ${PORTNAME}.jar

PLIST_FILES=    %%JAVAJARDIR%%/${DESTJARFILE}

do-install:
    @${ECHO_MSG} -n ">> Installing JAR as ${JAVAJARDIR}/${DESTJARFILE}..."
    @${INSTALL_DATA} ${WRKSRC}/build/dist/${JARFILE} ${JAVAJARDIR}/${DESTJARFILE}
    @${ECHO_MSG} " [ DONE ]"

.if !defined(NOPORTDOCS)
    @${ECHO_MSG} -n ">> Installing documentation in ${DOCSDIR}..."
    @cd ${WRKSRC}/docs/apidocs \
      && ${FIND} . -type d -exec ${MKDIR} ${DOCSDIR}/{} \; \
      && ${FIND} . -type f -exec ${INSTALL_DATA} {} ${DOCSDIR}/{} \;
    @${ECHO_MSG} " [ DONE ]"
.endif

.include <bsd.port.mk>