diff options
Diffstat (limited to 'science/vmd/Makefile')
-rw-r--r-- | science/vmd/Makefile | 48 |
1 files changed, 27 insertions, 21 deletions
diff --git a/science/vmd/Makefile b/science/vmd/Makefile index 59044b1622cc..da5687bc859d 100644 --- a/science/vmd/Makefile +++ b/science/vmd/Makefile @@ -6,23 +6,23 @@ # PORTNAME= vmd -PORTVERSION= 1.8.3 -PORTREVISION= 4 +PORTVERSION= 1.8.7 CATEGORIES= science graphics python tcl tk -MASTER_SITES= http://jedi.ks.uiuc.edu/~johns/raytracer/files/0.97/:tachyon \ - ftp://ftp.ebi.ac.uk/pub/software/unix/stride/src/:stride +MASTER_SITES= http://jedi.ks.uiuc.edu/~johns/raytracer/files/0.98.7/:tachyon \ + http://www.ks.uiuc.edu/Research/vmd/extsrcs/:stride DISTFILES= ${VMD_DIST} \ ${TACHYON_DIST}:tachyon \ ${STRIDE_DIST}:stride -MAINTAINER= ports@FreeBSD.org +MAINTAINER= kaduk-fbsd@mit.edu COMMENT= A molecular visualization program BUILD_DEPENDS= makedepend:${PORTSDIR}/devel/makedepend \ ${PYNUMERIC} -LIB_DEPENDS= tcl84:${PORTSDIR}/lang/tcl84 \ - tk84:${PORTSDIR}/x11-toolkits/tk84 \ - fltk:${PORTSDIR}/x11-toolkits/fltk +LIB_DEPENDS= tcl85:${PORTSDIR}/lang/tcl85 \ + tk85:${PORTSDIR}/x11-toolkits/tk85 \ + fltk:${PORTSDIR}/x11-toolkits/fltk \ + netcdf:${PORTSDIR}/science/netcdf RUN_DEPENDS= ${PYNUMERIC} USE_PERL5_BUILD= yes @@ -30,11 +30,15 @@ USE_GMAKE= yes USE_GL= glu USE_PYTHON= yes -RESTRICTED= "License has restrictions" +RESTRICTED= License has restrictions VMD_DIST= ${PORTNAME}-${PORTVERSION}.src.tar.gz -TACHYON_DIST= tachyon-0.97.tar.gz -STRIDE_DIST= stride.tar.gz +TACHYON_DIST= tachyon-0.98.7.tar.gz +# I get stride.tar.gz from ftp://ftp.ebi.ac.uk/pub/software/unix/stride/src/ +# but the www.ks.uiuc.edu site (that gives Stride_src.tar.Z) is closer +# to vmd upstream (and google actually knows about it). +#STRIDE_DIST= stride.tar.gz +STRIDE_DIST= Stride_src.tar.Z .include <bsd.port.pre.mk> @@ -49,17 +53,16 @@ VMD_TARGET= freebsd.opengl PLIST_SUB+= VMD_ARCH=${VMD_ARCH} # Check for VMD sources -.if !exists(${DISTDIR}/${VMD_DIST}) # && !defined(PACKAGE_BUILDING) -ECHO_MSG= ${PRINTF} -IGNORE= :\n\ -Because of licensing restrictions, you must fetch the source distribution\n\ -manually. Please access\n\ +#.if !exists(${DISTDIR}/${VMD_DIST}) # && !defined(PACKAGE_BUILDING) +#ECHO_MSG= ${PRINTF} +#IGNORE= because of licensing restrictions, you must fetch the source\n\ +distribution manually. Please access\n\ http://www.ks.uiuc.edu/Development/Download/download.cgi?PackageName=VMD\n\ with a web browser. You will be required to log in and register,\n\ but you can create an account on this page. After registration and\n\ accepting the University of Illinois agreement, download the source file,\n\ -${VMD_DIST}. Please place this file in ${DISTDIR}.\n -.endif +${VMD_DIST}. Please place this file in ${DISTDIR}. +#.endif do-extract: ${MKDIR} ${WRKDIR} @@ -70,17 +73,20 @@ do-extract: post-patch: ${REINPLACE_CMD} "s/-lpthread/${PTHREAD_LIBS}/" ${WRKSRC}/configure - ${REINPLACE_CMD} "s/-ltk8.4/-ltk84/" ${WRKSRC}/configure - ${REINPLACE_CMD} "s/-ltcl8.4/-ltcl84/" ${WRKSRC}/configure + ${REINPLACE_CMD} "s/-ltk8.5/-ltk85/" ${WRKSRC}/configure + ${REINPLACE_CMD} "s/-ltcl8.5/-ltcl85/" ${WRKSRC}/configure ${REINPLACE_CMD} "s%\$$python_dir/lib_\$$config_arch%${PREFIX}%" ${WRKSRC}/configure ${REINPLACE_CMD} "s/python2.2/${PYTHON_VERSION}/" ${WRKSRC}/configure ${REINPLACE_CMD} "s/.SILENT:/#.SILENT:/" ${WRKDIR}/plugins/Makefile ${REINPLACE_CMD} "s/.SILENT:/#.SILENT:/" ${WRKDIR}/plugins/*/Makefile + ${REINPLACE_CMD} "s%log2f(\([^ ,]*\))%logf(\1)/(float)M_LN2%g" ${WRKSRC}/src/Orbital.C + ${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" \ + -e "s|/usr/local|${LOCALBASE}|g" ${WRKSRC}/configure do-build: ${SETENV} ${MAKE_ENV} ${GMAKE} bsd -C ${WRKSRC}/lib/tachyon/unix && ${MV} ${WRKSRC}/lib/tachyon/compile/bsd/tachyon ${WRKSRC}/lib/tachyon/tachyon_${VMD_ARCH} ${SETENV} ${MAKE_ENV} PLUGINDIR=${WRKSRC}/plugins ${GMAKE} ${VMD_ARCH} distrib -C ${WRKDIR}/plugins - ${SETENV} ${MAKE_ENV} TCL_INCLUDE_DIR=${PREFIX}/include/tcl8.4 TK_INCLUDE_DIR=${PREFIX}/include/tk8.4 ${GMAKE} ${VMD_TARGET} -C ${WRKSRC} + ${SETENV} ${MAKE_ENV} TCL_INCLUDE_DIR=${PREFIX}/include/tcl8.5 TK_INCLUDE_DIR=${PREFIX}/include/tk8.5 ${GMAKE} ${VMD_TARGET} -C ${WRKSRC} ${SETENV} ${MAKE_ENV} ${GMAKE} all -C ${WRKSRC}/src ${SETENV} ${MAKE_ENV} ${GMAKE} depend -C ${WRKSRC}/lib/surf && ${SETENV} ${MAKE_ENV} ${GMAKE} surf -C ${WRKSRC}/lib/surf && ${MV} ${WRKSRC}/lib/surf/surf ${WRKSRC}/lib/surf/surf_${VMD_ARCH} ${SETENV} ${MAKE_ENV} ${GMAKE} -C ${WRKSRC}/lib/stride && ${MV} ${WRKSRC}/lib/stride/stride ${WRKSRC}/lib/stride/stride_${VMD_ARCH} |