aboutsummaryrefslogtreecommitdiffstats
path: root/finance/jgnash/Makefile
blob: f4b4b747132c9229d94db95956c7985e444878d2 (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
# New ports collection makefile for:    jgnash
# Date created:     2009-12-27
# Whom:         Bernhard Froehlich <decke@bluelife.at>
#
# $FreeBSD$
#

PORTNAME=   jGnash
PORTVERSION=    2.5.1
CATEGORIES= finance java
MASTER_SITES=   SF/jgnash/Active%20Stable%202.x/2.5.x%20Releases

MAINTAINER= decke@FreeBSD.org
COMMENT=    A free personal finance manager

WRKSRC=     ${WRKDIR}/${PORTNAME}
DATADIR=    ${JAVASHAREDIR}/${PORTNAME}
SUB_FILES=  jgnash2.desktop
SUB_LIST=   JAVA="${JAVA}"
PLIST_SUB+= DESKTOPDIR=${DESKTOPDIR:S|^${PREFIX}/||}

USE_ZIP=    yes
USE_JAVA=   yes
JAVA_VERSION=   1.6+
JAVA_VENDOR=    openjdk

NO_BUILD=   yes

do-install:
    @${MKDIR} ${DATADIR}
    @${CP} ${WRKSRC}/jgnash2.jar ${DATADIR}
    @${CP} -R ${WRKSRC}/lib ${DATADIR}
    @${MKDIR} ${DESKTOPDIR}
    @${CP} ${WRKDIR}/jgnash2.desktop ${DESKTOPDIR}

.include <bsd.port.mk>