1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00

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
This commit is contained in:
John Marino 2015-02-24 09:46:15 +00:00
parent 2e9eb3eafb
commit bc8c34bf9a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=379777

View File

@ -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 \