blob: 5874d870768785f4607b56e570e721f9a7437fba (
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
|
# New ports collection makefile for: JDOM
# Date created: June 1, 2001
# Whom: Ernst de Haan <znerd@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= jdom
PORTVERSION= 1.0b8
PORTREVISION= 1
CATEGORIES= java
MASTER_SITES= http://www.jdom.org/dist/source/ \
http://www.metaverse.nl/~ernst/ \
${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= znerd
DISTNAME= ${PORTNAME}-${PORTVERSION:C/[0-9]*\.[0-9]*//}
MAINTAINER= znerd@FreeBSD.org
BUILD_DEPENDS= ${ANT}:${PORTSDIR}/devel/jakarta-ant
USE_JAVA= 1.2+
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:C/[0-9]*\.[0-9]*//}
PLIST_SUB+= T=${TARGET_DIR:S/^${PREFIX}\///}
TARGET_DIR?= ${PREFIX}/share/java/${PORTNAME}-${PORTVERSION}
ANT?= ${LOCALBASE}/bin/ant
ANT_TARGET= package javadoc
do-build:
@cd ${WRKSRC} && ${ANT} ${ANT_TARGET}
do-install:
@${ECHO} -n ">> Creating directory ${TARGET_DIR}..."
@${MKDIR} ${TARGET_DIR}
@${ECHO} " [ DONE ]"
@${ECHO} -n ">> Copying files..."
@${CP} -r ${WRKSRC}/* ${TARGET_DIR}
@${ECHO} " [ DONE ]"
.include <bsd.port.mk>
|