1999-05-07 06:57:52 +00:00
|
|
|
# New ports collection makefile for: molden
|
|
|
|
# Date created: 1998-11-14
|
|
|
|
# Whom: rmiya
|
|
|
|
#
|
1999-08-25 04:58:03 +00:00
|
|
|
# $FreeBSD$
|
1999-05-07 06:57:52 +00:00
|
|
|
#
|
|
|
|
|
2000-04-08 22:04:57 +00:00
|
|
|
PORTNAME= molden
|
2000-06-07 16:59:47 +00:00
|
|
|
PORTVERSION= 3.6
|
1999-05-07 06:57:52 +00:00
|
|
|
CATEGORIES= biology
|
|
|
|
MASTER_SITES= ftp://ftp.caos.kun.nl/pub/molgraph/molden/
|
2000-06-07 16:59:47 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION}
|
|
|
|
EXTRACT_SUFX= .tar.Z
|
|
|
|
EXTRACT_ONLY= ${PORTNAME}${PORTVERSION}.tar.Z
|
|
|
|
|
|
|
|
PATCH_SITES= ftp://ftp.caos.kun.nl/pub/molgraph/molden/bin/
|
|
|
|
PATCHFILES= ${PORTNAME}${PORTVERSION}-freebsd
|
1999-05-07 06:57:52 +00:00
|
|
|
|
|
|
|
MAINTAINER= rmiya@cc.hirosaki-u.ac.jp
|
|
|
|
|
2000-06-07 16:59:47 +00:00
|
|
|
RESTRICTED= "free for academic, non profit usage;"
|
|
|
|
NO_CDROM= "Do not re-distribute source and executable."
|
|
|
|
NO_PACKAGE= "Though the source codes is accessible, the author is hoping for distribution in an original binary form."
|
|
|
|
MAKEFILE= ${WRKSRC}/makefile
|
1999-05-07 06:57:52 +00:00
|
|
|
|
2000-06-07 16:59:47 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2000-05-28 04:03:36 +00:00
|
|
|
|
2000-06-07 16:59:47 +00:00
|
|
|
post-configure:
|
|
|
|
@${ECHO_MSG} "********************"
|
|
|
|
@${ECHO_MSG} "** If you want to use a larger MOLDEN,"
|
|
|
|
@${ECHO_MSG} "** edit change_parameter, change_parameter.sh"
|
|
|
|
@${ECHO_MSG} "** or utils/*, and run them before building it."
|
|
|
|
@${ECHO_MSG} "********************"
|
1999-05-24 02:06:46 +00:00
|
|
|
|
1999-05-07 06:57:52 +00:00
|
|
|
pre-build:
|
2000-06-07 16:59:47 +00:00
|
|
|
.if defined(ORIGINALBINARY)
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "********************"
|
2000-06-07 16:59:47 +00:00
|
|
|
@${ECHO_MSG} "** using original binary"
|
|
|
|
@${ECHO_MSG} "********************"
|
|
|
|
.elif defined(MYBINARY)
|
|
|
|
@${ECHO_MSG} "********************"
|
|
|
|
@${ECHO_MSG} "** re-build your own MOLDEN"
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "********************"
|
1999-05-07 06:57:52 +00:00
|
|
|
.else
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "********************"
|
2000-06-07 16:59:47 +00:00
|
|
|
@${ECHO_MSG} "** set ORIGINALBINARY=yes or MYBINARY=yes"
|
1999-08-27 21:14:04 +00:00
|
|
|
@${ECHO_MSG} "********************"
|
1999-05-07 06:57:52 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
do-build:
|
2000-06-07 16:59:47 +00:00
|
|
|
.if defined(ORIGINALBINARY)
|
|
|
|
${CP} ${DISTDIR}/${PORTNAME}${PORTVERSION}-freebsd ${WRKSRC}/molden
|
|
|
|
.elif defined(MYBINARY)
|
|
|
|
(cd ${WRKSRC} && ${MAKE})
|
1999-05-07 06:57:52 +00:00
|
|
|
.else
|
2000-06-07 16:59:47 +00:00
|
|
|
@${ECHO_MSG} "********************"
|
|
|
|
@${ECHO_MSG} "** set ORIGINALBINARY=yes or MYBINARY=yes"
|
|
|
|
@${ECHO_MSG} "********************"
|
1999-05-07 06:57:52 +00:00
|
|
|
.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)
|
2000-06-07 16:59:47 +00:00
|
|
|
${MKDIR} ${PREFIX}/share/doc/molden
|
|
|
|
${MKDIR} ${PREFIX}/share/molden/test
|
|
|
|
${MKDIR} ${PREFIX}/share/molden/utils
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${PREFIX}/share/doc/molden
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/test/* ${PREFIX}/share/molden/test
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/utils/* ${PREFIX}/share/molden/utils
|
1999-05-07 06:57:52 +00:00
|
|
|
.endif
|
|
|
|
|
2000-06-07 16:59:47 +00:00
|
|
|
.include <bsd.port.post.mk>
|