ports/math/taucs/files/patch-config+FreeBSD.mk
Thomas Zander 09b025405d Modernise port to allow for new features in future (e.g. CilkPlus support)
Details:
- Use standard HAS_CONFIGURE instead of rolling our own
- Use blaslapack
- Regenerate patches with "make makepatch".
- Add LICENSE
- Fortran is used as linker but all the code is in C so use CFLAGS
  instead of FFLAGS.

PR:		214963
Submitted by:	pfg
2017-09-17 15:26:09 +00:00

38 lines
837 B
Makefile

--- config/FreeBSD.mk.orig 2003-08-28 15:13:38 UTC
+++ config/FreeBSD.mk
@@ -9,30 +9,24 @@ PATHSEP=/
DEFFLG=-D
FC ?= f77
-FFLAGS += -Os -fno-second-underscore
+FFLAGS += $(PICFLAG)
FOUTFLG =-o
#CC = cc
-CFLAGS += -Os -D_POSIX_C_SOURCE=199506L -fPIC
+CFLAGS += $(PICFLAG)
COUTFLG = -o
-LD = $(CC)
-LDFLAGS = $(CFLAGS) -static
+LD = $(FC)
+LDFLAGS := -L$(DIRLIB) -L./ $(LDFLAGS)
LOUTFLG = $(COUTFLG)
-AR = ar cr
+AR += cr
#AOUTFLG =
-RANLIB = ranlib
RM = rm -rf
-LIBBLAS = -L/usr/local/lib -lf77blas -lcblas -latlas -lg2c
-LIBLAPACK = -L/usr/local/lib -llapack
-LIBMETIS = -L/usr/local/lib -lmetis
-LIBF77 = -lg2c
#compat is required for ftime()
-LIBC = -lm -lcompat
#########################################################