summaryrefslogtreecommitdiff
path: root/math/javaview/Makefile
diff options
context:
space:
mode:
authorHerve Quiroz <hq@FreeBSD.org>2005-07-11 01:58:55 +0000
committerHerve Quiroz <hq@FreeBSD.org>2005-07-11 01:58:55 +0000
commit1184fb8f1395564e50d53b0d422790781024be5c (patch)
treeee23f1ec5e80ab25d6b277ca78f1c335b5ffdef7 /math/javaview/Makefile
parentFix plist from last commit (and buy myself a brand new pointy hat...) (diff)
Add JavaView, a 3D viewer and a mathematical visualization software
This tiny version of JavaView is optimized for fast download and contains the viewer module only, without any dialogs, inspectors and geometry algorithms. The lite version is mainly used to display precomputed geometry models inside web pages. WWW: http://www.javaview.de/ PR: 83104 Submitted by: Nicola Vitale <nivit@email.it>
Notes
Notes: svn path=/head/; revision=138870
Diffstat (limited to 'math/javaview/Makefile')
-rw-r--r--math/javaview/Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/math/javaview/Makefile b/math/javaview/Makefile
new file mode 100644
index 000000000000..45688b27c614
--- /dev/null
+++ b/math/javaview/Makefile
@@ -0,0 +1,61 @@
+# New ports collection makefile for: javaview-lite
+# Date created: 07 July 2005
+# Whom: Nicola Vitale <nivit@email.it>
+#
+# $FreeBSD$
+#
+
+PORTNAME= javaview-lite
+PORTVERSION= 3.90
+CATEGORIES= math java graphics
+MASTER_SITES= http://www.javaview.de/download/data/
+DISTFILES= javaview.zip jv_models.zip jv_tutor.zip
+DIST_SUBDIR= ${PORTNAME}
+
+MAINTAINER= nivit@email.it
+COMMENT= A 3D viewer and a mathematical visualization software
+
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
+
+NO_BUILD= yes
+NO_WRKSUBDIR= yes
+
+USE_ZIP= yes
+USE_JAVA= yes
+USE_REINPLACE= yes
+
+DATADIR= ${JAVASHAREDIR}/${PORTNAME}
+
+SCRIPT= bin/javaview
+FIND_DIRS= \( -type d -not -empty \)
+FIND_DATA= -not -type d
+FIND_EXCLUDE= -not \( -name "*.bat" -or -name "*.bak" -or -name "*.orig" -or -name ".*" -or -name $$(${BASENAME} ${SCRIPT}) \)
+
+LINK_OPTS?= -sf
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/bin/bash|${LOCALBASE}/bin/bash|' \
+ -e 's|%%DATADIR%%|${DATADIR:S/\//\\\//g}|' \
+ -e 's|%%JAVA_HOME%%|${JAVA_HOME:S/\//\\\//g}|' \
+ ${WRKSRC}/${SCRIPT};
+
+do-install:
+# Script
+ @cd ${WRKSRC}; \
+ DIRS=$$(${FIND} . ${FIND_DIRS}); \
+ for DIR in $${DIRS}; do \
+ ${MKDIR} ${DATADIR}/$${DIR}; \
+ done; \
+ ${INSTALL_SCRIPT} ${SCRIPT} ${DATADIR}/${SCRIPT}; \
+ ${LN} ${LINK_OPTS} ${DATADIR}/${SCRIPT} ${PREFIX}/${SCRIPT};
+# Data
+ @cd ${WRKSRC}; \
+ DATA=$$(${FIND} . ${FIND_DATA} ${FIND_EXCLUDE}) ; \
+ for FILE in $${DATA}; do \
+ ${INSTALL_DATA} $${FILE} ${DATADIR}/$${FILE}; \
+ done;
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>