freebsd-ports/biology/molden/Makefile

62 lines
1.6 KiB
Makefile

# New ports collection makefile for: molden
# Date created: 1998-11-14
# Whom: rmiya
#
# $FreeBSD$
#
PORTNAME= molden
PORTVERSION= 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= ${PORTNAME}${PORTVERSION}.tar.Z ${PORTNAME}${PORTVERSION}-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"
.if ${MACHINE_ARCH} == "alpha"
DONOTUSE_ORIGINALBINARY= yes
.endif
pre-build:
.if defined(DONOTUSE_ORIGINALBINARY)
(cd ${WRKSRC}; ${CP} makefile Makefile)
(cd ${WRKSRC}; ./change_parameter)
@${ECHO_MSG} "********************"
@${ECHO_MSG} "** re-build with customizations"
@${ECHO_MSG} "** maxorb: 256 -> 1024"
@${ECHO_MSG} "** maxatm: 150 -> 300"
@${ECHO_MSG} "********************"
.else
@${ECHO_MSG} "********************"
@${ECHO_MSG} "** using original binary"
@${ECHO_MSG} "********************"
.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:
${INSTALL_SCRIPT} ${WRKSRC}/molden ${PREFIX}/bin/
.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>