mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
75 lines
2.3 KiB
Makefile
75 lines
2.3 KiB
Makefile
# New ports collection makefile for: platon
|
|
# Date created: 1999-04-22
|
|
# Whom: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= platon
|
|
PORTVERSION= 2001.03.09
|
|
CATEGORIES= biology
|
|
MASTER_SITES= ftp://xraysoft.chem.uu.nl/pub/unix/
|
|
DISTNAME= platon
|
|
|
|
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
|
COMMENT= Tool for viewing molecular/crystallographic structures
|
|
|
|
# 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"
|
|
|
|
USE_XLIB= yes
|
|
|
|
# This port only has snapshot archive
|
|
IGNOREFILES= platon.tar.gz
|
|
|
|
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
|
|
|
|
.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
|
|
|
|
pre-patch:
|
|
(cd ${WRKDIR}/${DISTNAME} && ${GUNZIP_CMD} platon.f.Z)
|
|
${SED} 's,%%X11BASE%%,${X11BASE},g' ${FILESDIR}/Makefile > ${WRKDIR}/${DISTNAME}/Makefile
|
|
(cd ${WRKDIR}/${DISTNAME} && ${GUNZIP_CMD} xdrvr.c.gz)
|
|
|
|
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
|
|
${LN} -s ${PREFIX}/bin/platon ${PREFIX}/bin/pluton
|
|
${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
|
|
|
|
.include <bsd.port.post.mk>
|