mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
0ecf59b68a
Reported by: portscout
66 lines
1.6 KiB
Makefile
66 lines
1.6 KiB
Makefile
# Created by: Wen heping <wenheping@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Jmol
|
|
DISTVERSION= 14.31.0
|
|
CATEGORIES= science java
|
|
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME}/Version%20${DISTVERSION:R}/${PORTNAME}%20${DISTVERSION}/
|
|
DISTFILES= ${PORTNAME}-${DISTVERSION}-full${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= yuri@FreeBSD.org
|
|
COMMENT= Java 3D viewer for chemical structures
|
|
|
|
LICENSE= LGPL21
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
USE_JAVA= yes
|
|
USE_ANT= yes
|
|
|
|
NO_ARCH= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME:tl}-${DISTVERSION}
|
|
SIGN_DIR= ${WRKSRC}/selfSignedCertificate
|
|
SUB_FILES= ${EXES}
|
|
SUB_LIST= JAVA=${JAVA}
|
|
|
|
EXES= ${PORTNAME:tl} ${PORTNAME:tl}data
|
|
JARS= ${PORTNAME}.jar ${PORTNAME}Data.jar ${PORTNAME}Lib.jar
|
|
|
|
PLIST_FILES= ${EXES:S/^/bin\//} \
|
|
${JARS:S/^/${JAVAJARDIR}\//}
|
|
|
|
OPTIONS_DEFINE= DOCS JSMOL
|
|
OPTIONS_DEFAULT= JSMOL
|
|
|
|
JSMOL_DESC= Install JSmol
|
|
JSMOL_BUILD_DEPENDS= unzip>0:archivers/unzip
|
|
JSMOL_VARS= WWWDIR=${PREFIX}/www/JSmol PLIST=${.CURDIR}/pkg-plist-jsmol
|
|
|
|
PORTDOCS= *
|
|
|
|
DESKTOP_ENTRIES="${PORTNAME}" "" "" "${PORTNAME:tl}" "" false
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} 's|<input message="private property file.*||' ${WRKSRC}/build.xml
|
|
|
|
post-build-JSMOL-on:
|
|
@${MKDIR} ${WRKDIR}${PREFIX}/www
|
|
@${UNZIP_CMD} -d ${WRKDIR}${PREFIX}/www ${WRKSRC}/jsmol.zip
|
|
|
|
do-install:
|
|
.for exe in ${EXES}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${exe} ${STAGEDIR}${PREFIX}/bin
|
|
.endfor
|
|
.for jar in ${JARS}
|
|
${INSTALL_DATA} ${WRKSRC}/build/${jar} ${STAGEDIR}${JAVAJARDIR}
|
|
.endfor
|
|
|
|
do-install-JSMOL-on:
|
|
${MKDIR} ${STAGEDIR}${WWWDIR}
|
|
${CP} -r ${WRKDIR}${PREFIX}/www/jsmol/* ${STAGEDIR}${WWWDIR}
|
|
|
|
do-install-DOCS-on:
|
|
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|