summaryrefslogtreecommitdiff
path: root/time/cardboard-schedule/Makefile
blob: 49d0d16590f9a7cc8f5ffd7e7bac8cff3a7929c3 (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
# $NetBSD: Makefile,v 1.14 2005/06/17 03:50:38 jlam Exp $
#

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

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

USE_X11BASE=	yes
DEPENDS+=	unzip-[0-9]*:../../archivers/unzip

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

PKGSRC_USE_TOOLS+=	gtar

EXTRACT_CMD=	(cd ${WRKDIR} && unzip -x ${DOWNLOADED_DISTFILE}) || ${TRUE}
WRKSRC=		${WRKDIR}

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

post-extract:
	(cd ${WRKDIR} && unzip -x InstallerData/Installer.zip) || ${TRUE}

do-build:
	${SED} -e s,@PREFIX@,${PREFIX},g < ${FILESDIR}/csched.sh > ${WRKDIR}/csched.tmp
	${SED} -e s,@LOCALBASE@,${LOCALBASE},g < ${WRKDIR}/csched.tmp > ${WRKDIR}/csched.tmp2
	${SED} -e s,@JAVA_HOME@,${PKG_JAVA_HOME},g < ${WRKDIR}/csched.tmp2 > ${WRKDIR}/csched

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/lib/cardboard-schedule
	@(cd ${WRKDIR}/C:/projects && ${GTAR} cf - ${CSFILES} | (cd ${PREFIX}/lib/cardboard-schedule && ${GTAR} xvf -))
	${INSTALL_SCRIPT} ${WRKDIR}/csched ${PREFIX}/bin

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