1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00
freebsd-ports/biology/molden/Makefile
Gerald Pfeifer 15945f8122 Update the default version of GCC in the Ports Collection from GCC 4.7.4
to GCC 4.8.3.

Part II, Bump PORTREVISIONs.

PR:		192025
Tested by:	antoine (-exp runs)
Approved by:	portmgr (implicit)
2014-09-10 20:50:31 +00:00

67 lines
1.8 KiB
Makefile

# Created by: Ryo MIYAMOTO <rmiya@cc.hirosaki-u.ac.jp>
# $FreeBSD$
PORTNAME= molden
PORTVERSION= 5.0.7
PORTREVISION= 2
PORTEPOCH= 1
CATEGORIES= biology
MASTER_SITES= ftp://ftp.cmbi.ru.nl/pub/molgraph/molden/
DISTNAME= ${PORTNAME}${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Display molecular orbitals and electron densities in 2D and 3D
RESTRICTED= free for academic, non profit usage; do not re-distribute source and executable.
WRKSRC= ${WRKDIR}/${PORTNAME}${PORTVERSION:R}
USES= fortran gmake
USE_XORG= x11
USE_GL= glu
MAKEFILE= makefile
MAKE_JOBS_UNSAFE=yes
CFLAGS+= -D${OPSYS:tu} -DDOBACK -DHASTIMER -DCOLOR_OFFSET=0.0 \
-I${LOCALBASE}/include -Wno-return-type
PORTDOCS= *
PORTDATA= *
PLIST_FILES= bin/ambfor bin/gmolden bin/molden bin/surf
PORTSCOUT= limit:^5\.0\.
OPTIONS_DEFINE= DATA DOCS
OPTIONS_DEFAULT= DATA
post-patch:
@${REINPLACE_CMD} -e \
's|^CC |#CC | ; \
s|^FC |#FC | ; \
s|/usr/X11R6|${LOCALBASE}| ; \
s|-lXmu|| ; \
/depend/s|^|#|' ${WRKSRC}/makefile
post-configure:
@${ECHO_MSG} "********************"
@${ECHO_MSG} "** If you want to use a larger MOLDEN,"
@${ECHO_MSG} "** edit change_parameter.sh and run it,"
@${ECHO_MSG} "** before \'make build\'."
@${ECHO_MSG} "********************"
do-install:
.for i in molden gmolden
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}${PREFIX}/bin)
.endfor
.for i in ambfor surf
(cd ${WRKSRC}/${i} && ${INSTALL_PROGRAM} ${i} ${STAGEDIR}/${PREFIX}/bin)
.endfor
@${MKDIR} ${STAGEDIR}${DATADIR}/test
(cd ${WRKSRC}/test && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/test)
@${MKDIR} ${STAGEDIR}${DATADIR}/utils
(cd ${WRKSRC}/utils && ${INSTALL_DATA} * ${STAGEDIR}${DATADIR}/utils)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC}/doc && ${INSTALL_DATA} * ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>