1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/biology/molden/Makefile

63 lines
1.6 KiB
Makefile
Raw Normal View History

# 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$
#
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"
.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>