1999-05-07 06:57:52 +00:00
|
|
|
# New ports collection makefile for: molden
|
|
|
|
# Version required: 3.4
|
|
|
|
# Date created: 1998-11-14
|
|
|
|
# Whom: rmiya
|
|
|
|
#
|
1999-08-25 04:58:03 +00:00
|
|
|
# $FreeBSD$
|
1999-05-07 06:57:52 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= molden3.4
|
|
|
|
PKGNAME= molden-3.4
|
|
|
|
CATEGORIES= biology
|
|
|
|
MASTER_SITES= ftp://ftp.caos.kun.nl/pub/molgraph/molden/
|
|
|
|
MASTER_SITES+= ftp://ftp.caos.kun.nl/pub/molgraph/molden/bin/
|
|
|
|
DISTFILES= molden3.4.tar.Z molden3.4-freebsd
|
|
|
|
|
|
|
|
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
|
|
|
|
|
|
|
EXTRACT_ONLY= molden3.4.tar.Z
|
|
|
|
RESTRICTED= "free for academic, non profit usage; do not re-distribute source and executable"
|
|
|
|
|
1999-05-24 02:06:46 +00:00
|
|
|
.if ${MACHINE_ARCH} == "alpha"
|
|
|
|
DONOTUSE_ORIGINALBINARY= yes
|
|
|
|
.endif
|
|
|
|
|
1999-05-07 06:57:52 +00:00
|
|
|
pre-build:
|
|
|
|
.if defined(DONOTUSE_ORIGINALBINARY)
|
|
|
|
(cd ${WRKSRC}; ${CP} makefile Makefile)
|
|
|
|
(cd ${WRKSRC}; ./change_parameter)
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "********************"
|
|
|
|
@${ECHO_MSG} "** re-build with customizations"
|
|
|
|
@${ECHO_MSG} "** maxorb: 256 -> 1024"
|
|
|
|
@${ECHO_MSG} "** maxatm: 150 -> 300"
|
|
|
|
@${ECHO_MSG} "********************"
|
1999-05-07 06:57:52 +00:00
|
|
|
.else
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "********************"
|
|
|
|
@${ECHO_MSG} "** using original binary"
|
|
|
|
@${ECHO_MSG} "********************"
|
1999-05-07 06:57:52 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
|
|
|
.if defined(DONOTUSE_ORIGINALBINARY)
|
|
|
|
(cd ${WRKSRC};${MAKE})
|
|
|
|
.else
|
|
|
|
${CP} ${DISTDIR}/${DISTNAME}-freebsd ${WRKSRC}/molden
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
${RM} -rf ${PREFIX}/share/doc/molden
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/molden
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/molden/doc
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/molden/test
|
|
|
|
.endif
|
|
|
|
|
|
|
|
do-install:
|
2000-01-31 03:50:25 +00:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/molden ${PREFIX}/bin/
|
1999-05-07 06:57:52 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/molden/doc
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/doc/molden/test
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|