summaryrefslogtreecommitdiff
path: root/time/projectlibre/Makefile
blob: b55b2774e489319f02546e77223270dfd1f9b43c (plain)
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
# $NetBSD: Makefile,v 1.4 2018/01/01 18:16:39 rillig Exp $

DISTNAME=	projectlibre-1.6.1
CATEGORIES=	time
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=projectlibre/}

MAINTAINER=	asau@inbox.ru
HOMEPAGE=	http://www.projectlibre.org/
COMMENT=	Project management software

USE_JAVA=	run
USE_JAVA2=	7

REPLACE_SH=	projectlibre.sh

SUBST_CLASSES+=			set-java set-base

SUBST_STAGE.set-java=		post-configure
SUBST_MESSAGE.set-java=		Setting Java path.
SUBST_FILES.set-java=		projectlibre.sh
SUBST_SED.set-java=		-e '/^JAVA_EXE=/s,java,${PKG_JAVA_HOME}/bin/java,'

SUBST_STAGE.set-base=		post-configure
SUBST_MESSAGE.set-base=		Setting package base path.
SUBST_FILES.set-base=		projectlibre.sh
SUBST_SED.set-base=		-e '/^OPENPROJ_HOME0=/s,^.*$$,OPENPROJ_HOME0=${PREFIX}/share/${PKGBASE},'

NO_BUILD=	yes

INSTALLATION_DIRS=	bin share/${PKGBASE}

do-install:
	cd ${WRKSRC} && pax -rwpm . ${DESTDIR}${PREFIX}/share/${PKGBASE}
	${LN} -sf ${PREFIX}/share/${PKGBASE}/projectlibre.sh ${DESTDIR}${PREFIX}/bin/projectlibre

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"