mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
Version 2013.12.12, USES=fortran, staging.
This commit is contained in:
parent
4b4e59bc6b
commit
9eba83c71f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=336776
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user