aboutsummaryrefslogtreecommitdiffstats
path: root/math/linalg
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>2000-05-28 12:05:30 +0800
committersteve <steve@FreeBSD.org>2000-05-28 12:05:30 +0800
commit1b16346c828d76e20a10b3c36f03aad088894653 (patch)
tree4808db10ecfb04316b06404765dbd728daa8e60e /math/linalg
parenta2b8ea6229e5ded8f2ed92b68bac07be00ef2433 (diff)
downloadfreebsd-ports-graphics-1b16346c828d76e20a10b3c36f03aad088894653.tar.gz
freebsd-ports-graphics-1b16346c828d76e20a10b3c36f03aad088894653.tar.zst
freebsd-ports-graphics-1b16346c828d76e20a10b3c36f03aad088894653.zip
Don't try to use eg++ as the C++ compiler and honor CXXFLAGS.
Diffstat (limited to 'math/linalg')
-rw-r--r--math/linalg/Makefile4
-rw-r--r--math/linalg/files/patch-aa11
2 files changed, 14 insertions, 1 deletions
diff --git a/math/linalg/Makefile b/math/linalg/Makefile
index 2f5534e0b24..5e89a5c0742 100644
--- a/math/linalg/Makefile
+++ b/math/linalg/Makefile
@@ -17,7 +17,9 @@ ALL_TARGET= lib
INSTALL_TARGET= lib
USE_GMAKE= yes
-BROKEN= "Tries to run eg++"
+post-patch:
+ @( cd ${WRKSRC}; ${SED} -e 's/%%CXXFLAGS%%/${CXXFLAGS}/g' \
+ -e 's/%%CXX%%/${CXX}/g' c++ > c++.sed; mv c++.sed c++; ${CHMOD} +x c++ )
post-install:
$(INSTALL_DATA) ${WRKSRC}/libla.a ${PREFIX}/lib
diff --git a/math/linalg/files/patch-aa b/math/linalg/files/patch-aa
new file mode 100644
index 00000000000..fc592fc24c6
--- /dev/null
+++ b/math/linalg/files/patch-aa
@@ -0,0 +1,11 @@
+--- c++.orig Sat May 27 17:48:43 2000
++++ c++ Sat May 27 17:50:10 2000
+@@ -1,7 +1,7 @@
+ #!/bin/sh
+ # GNU C++ compilation
+ # Note, ${foo:+bar} is just a weird way of commenting out bar
+-eg++ -c -O2 -fkeep-inline-functions -pipe -W -Wall -Wpointer-arith -ffor-scope -Woverloaded-virtual \
++%%CXX%% -c %%CXXFLAGS%% -fkeep-inline-functions -pipe -W -Wall -Wpointer-arith -ffor-scope -Woverloaded-virtual \
+ -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations \
+ ${foo:+'-Wold-style-cast'} -Wbad-function-cast -Wwrite-strings \
+ ${foo:+'-Winline -Wredundant-decls'} -fno-rtti ${fpp:+'-fno-exceptions'} \