summaryrefslogtreecommitdiff
path: root/devel/jgrasp/Makefile
blob: ea1772539f16f901b2d648546f1ce6a32c147b04 (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
# $NetBSD: Makefile,v 1.6 2004/08/27 06:29:07 jlam Exp $
#

DISTNAME=		jgrasp170
PKGNAME=		jgrasp-1.7.0
CATEGORIES=		devel
MASTER_SITES=		ftp://ftp.eng.auburn.edu/pub/grasp/jgrasp/
EXTRACT_SUFX=		.zip

MAINTAINER=		jschauma@NetBSD.org
HOMEPAGE=		http://www.jgrasp.org/
COMMENT=		IDE with support for Software Visualizations

WRKSRC=			${WRKDIR}/jgrasp
PKG_JVMS_ACCEPTED=	sun-jdk13 sun-jdk14 jdk13 jdk14

do-configure:
	${MKDIR} ${WRKSRC}/bin/${LOWER_OPSYS}

do-build:
	${CC} ${CFLAGS} -lutil -o ${WRKSRC}/jbin/${LOWER_OPSYS}_run 	\
		${WRKSRC}/src/linux_run.c
	${CC} ${CFLAGS} -I${X11BASE}/include				\
		-L${X11BASE}/lib ${COMPILER_RPATH_FLAG}${X11BASE}/lib -lX11 \
		-o ${WRKSRC}/bin/${LOWER_OPSYS}/jgrasp 			\
		${WRKSRC}/src/linux_exec.c

do-install:
	${INSTALL_PROGRAM_DIR} ${PREFIX}/${PKGNAME}
	${INSTALL_PROGRAM_DIR} ${PREFIX}/${PKGNAME}/bin
	${INSTALL_PROGRAM_DIR} ${PREFIX}/${PKGNAME}/bin/${LOWER_OPSYS}
	${INSTALL_PROGRAM_DIR} ${PREFIX}/${PKGNAME}/jbin
	cd ${WRKSRC} && ${PAX} -s ,^./.*bin/.*,, 			\
		-rw . ${PREFIX}/${PKGNAME}/
	${INSTALL_DATA} ${WRKSRC}/jbin/JGRASP__829J_6h.class		\
		${PREFIX}/${PKGNAME}/jbin/
	${INSTALL_PROGRAM} ${WRKSRC}/jbin/${LOWER_OPSYS}_run		\
		${PREFIX}/${PKGNAME}/jbin/
	${INSTALL_PROGRAM} ${WRKSRC}/bin/${LOWER_OPSYS}/jgrasp 		\
		${PREFIX}/${PKGNAME}/bin/${LOWER_OPSYS}/
	${LN} -s ${PREFIX}/${PKGNAME}/bin/${LOWER_OPSYS}/jgrasp		\
		${PREFIX}/bin/jgrasp

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