summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2015-02-24 09:46:15 +0000
committermarino <marino@FreeBSD.org>2015-02-24 09:46:15 +0000
commitb8a9e9760977cac62d505497d694056124e49a03 (patch)
tree4e79acb1b6e2d85135682a71b59fe7e723a2733f
parent908d2968413970bb49be8fdf40e4e35a630b0917 (diff)
downloadFreeBSD-ports-b8a9e9760977cac62d505497d694056124e49a03.zip
FreeBSD-ports-b8a9e9760977cac62d505497d694056124e49a03.tar.gz
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
-rw-r--r--science/vmd/Makefile25
1 files changed, 25 insertions, 0 deletions
diff --git a/science/vmd/Makefile b/science/vmd/Makefile
index 0f68b37..e9ee460 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 \
OpenPOWER on IntegriCloud