1999-05-07 02:56:52 -04:00
|
|
|
# New ports collection makefile for: platon
|
|
|
|
# Date created: 1999-04-22
|
|
|
|
# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
|
|
|
#
|
1999-08-25 00:58:03 -04:00
|
|
|
# $FreeBSD$
|
1999-05-07 02:56:52 -04:00
|
|
|
#
|
|
|
|
|
2000-04-08 18:04:57 -04:00
|
|
|
PORTNAME= platon
|
2001-03-12 09:31:53 -05:00
|
|
|
PORTVERSION= 2001.03.09
|
1999-05-07 02:56:52 -04:00
|
|
|
CATEGORIES= biology
|
2000-08-01 19:31:19 -04:00
|
|
|
MASTER_SITES= ftp://xraysoft.chem.uu.nl/pub/unix/
|
2000-04-08 18:04:57 -04:00
|
|
|
DISTNAME= platon
|
1999-05-07 02:56:52 -04:00
|
|
|
|
|
|
|
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
|
|
|
|
|
|
|
# PLATON may be used free of charge by the academic community under
|
|
|
|
# the condition that it is not redistributed for a current & fresh copy.
|
|
|
|
# There is a charge of US$ 5000 for commercial users.
|
|
|
|
RESTRICTED= "free for academic, US$ 5000 for commercial users"
|
|
|
|
|
2001-07-30 17:05:54 -04:00
|
|
|
USE_XLIB= yes
|
|
|
|
|
2001-04-13 14:50:23 -04:00
|
|
|
# This port only has snapshot archive
|
|
|
|
IGNOREFILES= platon.tar.gz
|
|
|
|
|
1999-05-07 02:56:52 -04:00
|
|
|
SAMPLES= azt.dat bucky.spf c476.spf c540.cart3d check.def cubane.spf \
|
|
|
|
cyto.spf ml.pdb s810c.cif s913a.res sucrose.spf
|
|
|
|
TESTDATADIR= ABSORB_EXAMPLE ABSTOMPA_EXAMPLE ABSTOMPA_TEST ADDSYM_EXAMPLE \
|
|
|
|
ASYM_EXAMPLE DELABS_EXAMPLE MULABS_EXAMPLE PSICOR_EXAMPLE \
|
|
|
|
SQUEEZE_EXAMPLE
|
|
|
|
|
1999-05-23 22:12:36 -04:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
BROKEN= "/usr/libexec/elf/ld: platon.o: .got subsegment exceeds 64K (size 88552)"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OSVERSION} >= 400004
|
|
|
|
MAKE_ENV+= HAVE_G2C=yes
|
|
|
|
.endif
|
|
|
|
|
1999-05-07 02:56:52 -04:00
|
|
|
pre-patch:
|
|
|
|
(cd ${WRKDIR}/${DISTNAME} && ${GUNZIP_CMD} platon.f.Z)
|
2000-06-08 04:51:03 -04:00
|
|
|
${SED} 's,%%X11BASE%%,${X11BASE},g' ${FILESDIR}/Makefile > ${WRKDIR}/${DISTNAME}/Makefile
|
2001-03-12 09:31:53 -05:00
|
|
|
(cd ${WRKDIR}/${DISTNAME} && ${GUNZIP_CMD} xdrvr.c.gz)
|
1999-05-07 02:56:52 -04:00
|
|
|
|
|
|
|
pre-install:
|
|
|
|
strip ${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
|
1999-08-27 21:58:05 -04:00
|
|
|
${LN} -s ${PREFIX}/bin/platon ${PREFIX}/bin/pluton
|
1999-05-07 02:56:52 -04:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/README* \
|
|
|
|
${PREFIX}/share/doc/platon
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/VALIDATION.DOC \
|
|
|
|
${PREFIX}/share/doc/platon
|
|
|
|
for file in ${SAMPLES} ; do \
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/${DISTNAME}/$${file} \
|
|
|
|
${PREFIX}/share/doc/platon ; \
|
|
|
|
done
|
|
|
|
${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
|
|
|
|
|
1999-05-23 22:12:36 -04:00
|
|
|
.include <bsd.port.post.mk>
|