mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-14 07:43:06 +00:00
f4959ed7bb
PR: ports/76941 Submitted by: Sangwoo Shim <ssw@neo.redjade.org> (maintainer)
91 lines
3.2 KiB
Makefile
91 lines
3.2 KiB
Makefile
# New ports collection makefile for: vmd
|
|
# Date created: 12 August 2004
|
|
# Whom: Stephen Montgomery-Smith <stephen@math.missouri.edu>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= vmd
|
|
PORTVERSION= 1.8.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= science graphics python tcl84 tk84
|
|
MASTER_SITES= http://jedi.ks.uiuc.edu/~johns/raytracer/files/0.96/ \
|
|
ftp://ftp.ebi.ac.uk/pub/software/unix/stride/src/
|
|
DISTFILES= ${VMD_DIST} ${TACHYON_DIST} ${STRIDE_DIST}
|
|
|
|
MAINTAINER= ssw@neo.redjade.org
|
|
COMMENT= A molecular visualization program
|
|
|
|
BUILD_DEPENDS= ${PYNUMERIC}
|
|
LIB_DEPENDS= tcl84:${PORTSDIR}/lang/tcl84 \
|
|
tk84:${PORTSDIR}/x11-toolkits/tk84 \
|
|
fltk:${PORTSDIR}/x11-toolkits/fltk
|
|
RUN_DEPENDS= ${PYNUMERIC}
|
|
|
|
USE_PERL5_BUILD= yes
|
|
USE_GMAKE= yes
|
|
USE_GL= yes
|
|
USE_PYTHON= yes
|
|
USE_REINPLACE= yes
|
|
|
|
NO_PACKAGE= "License has restrictions"
|
|
NO_CDROM= "License has restrictions"
|
|
RESTRICTED= "License has restrictions"
|
|
|
|
VMD_DIST= ${PORTNAME}-${PORTVERSION}.src.tar.gz
|
|
TACHYON_DIST= tachyon-0.96.tar.gz
|
|
STRIDE_DIST= stride.tar.gz
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${ARCH} == "amd64"
|
|
VMD_ARCH= FREEBSDAMD64
|
|
VMD_TARGET= freebsd.amd64.opengl
|
|
.else
|
|
VMD_ARCH= FREEBSD
|
|
VMD_TARGET= freebsd.opengl
|
|
.endif
|
|
|
|
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\
|
|
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
|
|
|
|
do-extract:
|
|
${MKDIR} ${WRKDIR}
|
|
cd ${WRKDIR} && ${TAR} xfz ${DISTDIR}/${VMD_DIST}
|
|
cd ${WRKSRC}/lib/surf && ${TAR} xfz surf.tar.Z
|
|
cd ${WRKSRC}/lib && ${TAR} xfz ${DISTDIR}/${TACHYON_DIST}
|
|
cd ${WRKSRC}/lib/stride && ${TAR} xfz ${DISTDIR}/${STRIDE_DIST}
|
|
|
|
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%\$$python_dir/lib_\$$config_arch%${PREFIX}%" ${WRKSRC}/configure
|
|
${REINPLACE_CMD} "s/python2.2/${PYTHON_VERSION}/" ${WRKSRC}/configure
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/lib/tachyon/unix && ${SETENV} ${MAKE_ENV} ${GMAKE} bsd && ${MV} ../compile/bsd/tachyon ../tachyon_${VMD_ARCH}
|
|
cd ${WRKDIR}/plugins && ${SETENV} ${MAKE_ENV} PLUGINDIR=${WRKSRC}/plugins ${GMAKE} ${VMD_ARCH} distrib
|
|
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} TCL_INCLUDE_DIR=${PREFIX}/include/tcl8.4 TK_INCLUDE_DIR=${PREFIX}/include/tk8.4 ${GMAKE} ${VMD_TARGET}
|
|
cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} all
|
|
cd ${WRKSRC}/lib/surf && ${SETENV} ${MAKE_ENV} ${GMAKE} depend && ${SETENV} ${MAKE_ENV} ${GMAKE} surf && ${MV} surf surf_${VMD_ARCH}
|
|
cd ${WRKSRC}/lib/stride && ${SETENV} ${MAKE_ENV} ${GMAKE} && ${MV} stride stride_${VMD_ARCH}
|
|
|
|
do-install:
|
|
cd ${WRKSRC}/src && ${SETENV} ${MAKE_ENV} ${GMAKE} install
|
|
# cd ${WRKSRC}/lib/surf && ${INSTALL_PROGRAM} surf_${VMD_ARCH} ${PREFIX}/lib/vmd
|
|
|
|
.include <bsd.port.post.mk>
|