diff options
-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> |