540a727d61
Jmol: an open-source Java viewer for chemical structures in 3D
43 lines
1.2 KiB
Makefile
43 lines
1.2 KiB
Makefile
# $NetBSD: Makefile,v 1.1.1.1 2011/01/17 22:05:28 jihbed Exp $
|
|
#
|
|
|
|
DISTNAME= Jmol-12.0.12-binary
|
|
PKGNAME= ${DISTNAME:S/J/j/S/-binary//}
|
|
CATEGORIES= biology java
|
|
MASTER_SITES= http://garr.dl.sourceforge.net/project/jmol/Jmol/Version%2012.0/Version%2012.0.12/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= jihbed.research@gmail.com
|
|
HOMEPAGE= http://jmol.sourceforge.net/
|
|
COMMENT= Jmol: an open-source Java viewer for chemical structures in 3D
|
|
LICENSE= gnu-lgpl-v2.1
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
WRKSRC= ${WRKDIR}/jmol-12.0.12
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 Linux-*-*
|
|
|
|
USE_JAVA2= yes
|
|
PKG_JVMS_ACCEPTED= sun-jdk6 sun-jdk15 sun-jdk14
|
|
|
|
JMOL_HOME= ${PREFIX}/share/jmol
|
|
JMOL_FILES= Jmol.jar JmolApplet.jar \
|
|
JmolApplet0.jar \
|
|
JmolApplet0_*.jar \
|
|
JmolAppletSigned0_*.jar \
|
|
JmolData.jar Jmol.js
|
|
|
|
INSTALLATION_DIRS= bin ${JMOL_HOME}
|
|
|
|
do-build:
|
|
printf "#! ${SH}\\nexec ${PKG_JAVA_HOME}/bin/java -Djmol.home=${JMOL_HOME} -jar ${JMOL_HOME}/Jmol.jar \"\$$@\"\\n" > ${WRKSRC}/jmol.sh
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/jmol.sh ${DESTDIR}${PREFIX}/bin/jmol
|
|
.for j in ${JMOL_FILES}
|
|
${INSTALL_DATA} ${WRKSRC}/${j} ${DESTDIR}${JMOL_HOME}
|
|
.endfor
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|