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

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

MAINTAINER= rainer.alves@gmail.com
COMMENT=    Plan projects using a Gantt chart

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/${PORTNAME}-builder

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

DATADIR=    ${JAVASHAREDIR}/${PORTNAME}
CPIOARGS=   --quiet -pdum -R

SUB_FILES=  ${PORTNAME}.sh

.include <bsd.port.pre.mk>

do-install:
    @${MKDIR} -m 0755 -p ${DATADIR}
    (cd ${WRKSRC}/dist-bin && \
        ${CP} ${WRKSRC}/ganttproject-eclipsito-config.xml ${WRKSRC}/dist-bin && \
        ${FIND} . | ${GREP} -v './.*\.\(sh\|bat\|command\)' | \
        ${CPIO} ${CPIOARGS} ${LIBOWN}:${LIBGRP} ${DATADIR})
    ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME}

.include <bsd.port.post.mk>