aboutsummaryrefslogtreecommitdiffstats
path: root/deskutils/ganttproject/Makefile
blob: 4c73391eceb5a364acc917babb81e7091dce5025 (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
# ex:ts=8
# Ports collection makefile for:    ganttproject
# Date created:         Jul 6, 2004
# Whom:             ijliao
#
# $FreeBSD$
#

PORTNAME=   ganttproject
PORTVERSION=    1.10.1
CATEGORIES= deskutils
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
EXTRACT_SUFX=   -src.zip

MAINTAINER= ports@FreeBSD.org
COMMENT=    Plan projects using a Gantt chart

USE_ZIP=    yes
USE_JAVA=   yes
JAVA_VERSION=   1.4+
USE_ANT=    yes
JAVA_RUN=   yes

PLIST_FILES=    bin/ganttproject %%JAVAJARDIR%%/ganttproject.jar

post-patch:
    @${SED} 's,%%JAVAJARDIR%%,${JAVAJARDIR},; \
         s,%%JAVA%%,${JAVA},' ${FILESDIR}/${PORTNAME} > ${WRKSRC}/${PORTNAME}

do-install:
    ${INSTALL_DATA} ${WRKSRC}/build/${PORTNAME}-${PORTVERSION}.jar ${JAVAJARDIR}/${PORTNAME}.jar
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin

.include <bsd.port.mk>