summaryrefslogtreecommitdiff
path: root/time/cardboard-schedule/Makefile
blob: 0924e76e35f69685266d7992b8fa604f816ce329 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# $NetBSD: Makefile,v 1.20 2006/10/04 22:01:51 wiz Exp $
#

DISTNAME=	cs113ins
PKGNAME=	cardboard-schedule-1.13
PKGREVISION=	1
CATEGORIES=	time x11
MASTER_SITES=	http://cardboard.nu/downloads/
EXTRACT_SUFX=	.exe

MAINTAINER=	jwise@NetBSD.org
HOMEPAGE=	http://cardboard.nu/docs/software.html
COMMENT=	Project and resource management software implemented in Java/Swing

USE_X11BASE=	yes

RESTRICTED=	License prohibits redistribution on CDROM
NO_SRC_ON_CDROM=	${RESTRICTED}
NO_BIN_ON_CDROM=	${RESTRICTED}

USE_TOOLS+=	gtar unzip

WRKSRC=		${WRKDIR}
EXTRACT_CMD=	cd ${WRKDIR:Q} && {					\
			${UNZIP_CMD} -x ${DOWNLOADED_DISTFILE}		\
			|| ${TEST} -f InstallerData/Installer.zip;	\
		}
NO_BUILD=	yes

CSFILES=	cs/images/Logo2.gif \
		cs/images/Logo.gif \
		stage/cs.jar \
		stage/readme.txt \
		stage/jhbasic.jar \
		stage/license.txt \
		stage/CsHelp.jar

INSTALLATION_DIRS=	bin

SUBST_CLASSES+=		cs
SUBST_STAGE.cs=		do-configure
SUBST_FILES.cs=		csched.sh
SUBST_SED.cs+=		-e 's,@PREFIX@,${PREFIX},g'
SUBST_SED.cs+=		-e 's,@LOCALBASE@,${LOCALBASE},g'
SUBST_SED.cs+=		-e 's,@JAVA_HOME@,${PKG_JAVA_HOME},g'

post-extract:
	cd ${WRKDIR} && ${UNZIP_CMD} -x InstallerData/Installer.zip
	${CP} ${FILESDIR:Q}/csched.sh ${WRKDIR:Q}

do-install:
	${INSTALL_DATA_DIR} ${PREFIX:Q}/lib/cardboard-schedule
	cd ${WRKDIR:Q}/C:/projects && ${PAX} -rw ${CSFILES} ${PREFIX:Q}/lib/cardboard-schedule
	${INSTALL_SCRIPT} ${WRKDIR:Q}/csched.sh ${PREFIX:Q}/bin/csched

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