summaryrefslogtreecommitdiff
path: root/science/vmd
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2015-02-24 09:46:15 +0000
committerJohn Marino <marino@FreeBSD.org>2015-02-24 09:46:15 +0000
commitbc8c34bf9a531492a33aea34f2a4dbbb37558f62 (patch)
tree4e79acb1b6e2d85135682a71b59fe7e723a2733f /science/vmd
parent1: add LICENSE. (diff)
science/vmd: Unbreak on F10+
This patch removes the hardcoded "gcc" so that it works with USE_GCC variable. There is a slightly newer version of vmd available, so a version upgrade may soon follow. PR: 197103 Submitted by: Sakaue Mamoru
Notes
Notes: svn path=/head/; revision=379777
Diffstat (limited to 'science/vmd')
-rw-r--r--science/vmd/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/science/vmd/Makefile b/science/vmd/Makefile
index 0f68b379f073..e9ee460d8932 100644
--- a/science/vmd/Makefile
+++ b/science/vmd/Makefile
@@ -26,6 +26,7 @@ RUN_DEPENDS= ${PYNUMERIC}
USES= gmake perl5 python
USE_PERL5= build
USE_GL= glu
+USE_GCC= any
ONLY_FOR_ARCHS= i386 amd64
@@ -74,6 +75,30 @@ post-patch:
${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
+ ${REINPLACE_CMD} "s/\"gcc\"/\"${CC}\"/;s/\"g++\"/\"${CXX}\"/" ${WRKSRC}/configure
+ ${REINPLACE_CMD} -E "s/(SHLD[[:space:]]*=[[:space:]]*)gcc/\1${CC}/" \
+ ${WRKDIR}/plugins/Make-arch
+ ${REINPLACE_CMD} -E "s/(CC[[:space:]]*=[[:space:]]*)cc/\1${CC}/" \
+ ${WRKSRC}/lib/stride/Makefile \
+ ${WRKSRC}/lib/surf/Makefile \
+ ${WRKSRC}/lib/tachyon/unix/Make-arch \
+ ${WRKDIR}/plugins/cionize/mcudahacks/Makefile.specialbuilds \
+ ${WRKDIR}/plugins/cionize/Makefile.specialbuilds \
+ ${WRKDIR}/plugins/cionize/Makefile.mine \
+ ${WRKDIR}/plugins/cionize/Makefile.testing \
+ ${WRKDIR}/plugins/Make-arch
+ ${REINPLACE_CMD} -E "s/(CC[[:space:]]*=[[:space:]]*)gcc/\1${CC}/" \
+ ${WRKDIR}/plugins/Make-arch \
+ ${WRKDIR}/plugins/cionize/Makefile.mine \
+ ${WRKDIR}/plugins/cionize/Makefile.specialbuilds \
+ ${WRKDIR}/plugins/molfile_plugin/f77/Makefile \
+ ${WRKSRC}/lib/tachyon/unix/Make-arch
+ ${REINPLACE_CMD} -E "s/(CXX[[:space:]]*=[[:space:]]*)g\+\+/\1${CXX}/" \
+ ${WRKDIR}/plugins/cionize/Makefile.specialbuilds \
+ ${WRKDIR}/plugins/fmtool/Makefile.specialbuilds \
+ ${WRKDIR}/plugins/hesstrans/src/foo/Makefile \
+ ${WRKDIR}/plugins/hesstrans/src/foo/nm_gnu.mak \
+ ${WRKDIR}/plugins/Make-arch
do-build:
${SETENV} ${MAKE_ENV} ${MAKE_CMD} bsd -C ${WRKSRC}/lib/tachyon/unix \