diff options
author | tijl <tijl@FreeBSD.org> | 2013-12-18 05:55:24 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2013-12-18 05:55:24 +0800 |
commit | 9718d76f4bcf662873aa98dc5e6318880dee3f16 (patch) | |
tree | 4ed4a54eed2fb44b598b86ea50070df0d754c489 /biology | |
parent | c5f6549fb0dc0f186398f81595f676de613a178f (diff) | |
download | freebsd-ports-gnome-9718d76f4bcf662873aa98dc5e6318880dee3f16.tar.gz freebsd-ports-gnome-9718d76f4bcf662873aa98dc5e6318880dee3f16.tar.zst freebsd-ports-gnome-9718d76f4bcf662873aa98dc5e6318880dee3f16.zip |
Version 2013.12.12, USES=fortran, staging.
Diffstat (limited to 'biology')
-rw-r--r-- | biology/platon/Makefile | 47 |
1 files changed, 17 insertions, 30 deletions
diff --git a/biology/platon/Makefile b/biology/platon/Makefile index d93449028875..32d1d4a052d8 100644 --- a/biology/platon/Makefile +++ b/biology/platon/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= platon -PORTVERSION= 2007.01.09 -PORTREVISION= 6 +PORTVERSION= 2013.12.12 CATEGORIES= biology MASTER_SITES= http://www.cryst.chem.uu.nl/spek/xraysoft/unix/ DISTNAME= platon @@ -16,8 +15,8 @@ COMMENT= Tool for viewing molecular/crystallographic structures # There is a charge of US$ 5000 for commercial users. RESTRICTED= free for academic, US$ 5000 for commercial users +USES= fortran USE_XORG= x11 -USE_FORTRAN= yes # This port only has snapshot archive IGNOREFILES= platon.tar.gz @@ -27,13 +26,8 @@ SAMPLES= azt.dat bucky.spf c476.spf c540.cart3d check.def cubane.spf \ TESTDATADIR= ABSORB_EXAMPLE ABSTOMPA_EXAMPLE ABSTOMPA_TEST ADDSYM_EXAMPLE \ ASYM_EXAMPLE MULABS_EXAMPLE PSICOR_EXAMPLE SQUEEZE_EXAMPLE -NO_STAGE= yes .include <bsd.port.pre.mk> -.if ${ARCH} == "alpha" -BROKEN= /usr/libexec/elf/ld: platon.o: .got subsegment exceeds 64K (size 88552) -.endif - pre-patch: (cd ${WRKDIR}/${DISTNAME} ; ${GUNZIP_CMD} platon.f.gz xdrvr.c.gz) @@ -41,29 +35,22 @@ post-patch: ${CP} ${FILESDIR}/Makefile ${WRKSRC}/Makefile ${REINPLACE_CMD} -e "s+%%LOCALBASE%%+${LOCALBASE}+" ${WRKSRC}/Makefile -pre-install: - ${STRIP_CMD} ${WRKDIR}/${DISTNAME}/platon - ${RM} -f ${PREFIX}/bin/pluton - ${RM} -rf ${PREFIX}/share/doc/platon - ${MKDIR} ${PREFIX}/share/doc/platon - ${RM} -rf ${PREFIX}/share/doc/platon/TEST - ${MKDIR} ${PREFIX}/share/doc/platon/TEST - do-install: - ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/platon ${PREFIX}/bin - ${LN} -s ${PREFIX}/bin/platon ${PREFIX}/bin/pluton - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README* \ - ${PREFIX}/share/doc/platon - for file in ${SAMPLES} ; do \ - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/$${file} \ - ${PREFIX}/share/doc/platon ; \ - done + ${INSTALL_PROGRAM} ${WRKDIR}/${DISTNAME}/platon \ + ${STAGEDIR}${PREFIX}/bin + ${LN} -s platon ${STAGEDIR}${PREFIX}/bin/pluton + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README* ${STAGEDIR}${DOCSDIR} +.for f in ${SAMPLES} + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/$f ${STAGEDIR}${DOCSDIR} +.endfor ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/platon_html.tar.gz \ - ${PREFIX}/share/doc/platon - for dirs in ${TESTDATADIR} ; do \ - ${MKDIR} ${PREFIX}/share/doc/platon/TEST/$${dirs} && \ - ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/TEST/$${dirs}/* \ - ${PREFIX}/share/doc/platon/TEST/$${dirs} ; \ - done + ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR}/TEST +.for d in ${TESTDATADIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR}/TEST/$d + ${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/TEST/$d/* \ + ${STAGEDIR}${DOCSDIR}/TEST/$d +.endfor .include <bsd.port.post.mk> |