1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/science/jmol/Makefile
Yuri Victorovich f975223255 science/jmol: Update 14.32.24 -> 14.32.25
Reported by:	portscout
2022-02-25 10:30:50 -08:00

66 lines
1.7 KiB
Makefile

# Created by: Wen heping <wenheping@gmail.com>
PORTNAME= Jmol
DISTVERSION= 14.32.25
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 Jvxl.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}
${RM} ${STAGEDIR}${WWWDIR}/debug.log
do-install-DOCS-on:
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>