1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/math/lapack++/files/patch-makefile.def
Maho Nakata 789b5c5923 1. fix build on 5-CURRENT.
2. change e-mail address of maho.
3. honor CXX and CXXFLAGS.
4. modernize patch file names.
5. satisfy portlint.

Reviewed by: knu (mentor)
Reported by: bento
2002-11-19 13:52:23 +00:00

46 lines
1.0 KiB
Modula-2

--- makefile.def.orig Wed Mar 1 02:42:58 2000
+++ makefile.def Tue Nov 19 13:16:28 2002
@@ -12,11 +12,11 @@
# g++ 2.7.0) Some other choices for ARCH are "SGI" and "RIOS" (RS-6000)
#
-ARCH = Linux
-CPP = g++
-CPPFLAGS = -I$(LAPACKPP_INC) -D$(ARCH) -Wall
-CPPLIBS = -lm
-CFLAGS = -I$(LAPACKPP_INC)
+ARCH = FreeBSD
+CPP = $(CXX)
+CPPFLAGS+= $(CXXFLAGS) -I$(LAPACKPP_INC) -D$(ARCH)
+CPPLIBS+= -lm
+CFLAGS+= -I$(LAPACKPP_INC)
#
#
@@ -35,8 +35,14 @@
#
# Linux
#
-BLAS_LIB = $(HOME)/lib/Linux/libblas.a
-LAPACK_LIB = $(HOME)/lib/Linux/liblapack.a
+#BLAS_LIB = $(HOME)/lib/Linux/libblas.a
+#LAPACK_LIB = $(HOME)/lib/Linux/liblapack.a
+#FLIBS = -lm -lg2c
+#
+# FreeBSD
+#
+BLAS_LIB = -lf77blas -latlas
+LAPACK_LIB = -lalapack -lcblas
FLIBS = -lm -lg2c
#
# Sun
@@ -60,7 +66,7 @@
LAPACKPP_LIB = $(LAPACKPP_LIB_DIR)/liblapack++.a
BLASPP_LIB = $(LAPACKPP_LIB_DIR)/libblas++.a
-ALL_LAPACKPP_LIB = \
+ALL_LAPACKPP_LIB = -L${PREFIX}/lib \
$(LAMATRIXPP_LIB) \
$(LAPACKPP_LIB) \
$(TMGLIB) \