mirror of
https://git.freebsd.org/ports.git
synced 2025-05-31 10:26:28 -04:00
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
38 lines
837 B
Makefile
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
|
|
|
|
#########################################################
|