1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-17 18:50:33 -04:00
ports/graphics/dataplot/files/patch-Makefile
Tobias Kortkamp 86130f2a00 graphics/dataplot: Update to newest commit
This also unbreaks the build with GCC 10.

Changes:	43df775f24...2c1b27601a
PR:		246700
2020-07-04 07:16:42 +00:00

34 lines
1.1 KiB
Text

--- Makefile.orig 2020-06-19 14:55:49 UTC
+++ Makefile
@@ -1,5 +1,5 @@
-FC = gfortran
-CC = gcc
+FC = %%FC%%
+CC = %%CC%%
# FEATURES to enable during compilation
# all: READLINE NCURSES GD TIFF VPX CAIRO X11 GKS OPENGL PLOT
@@ -12,10 +12,11 @@ PREFIX = $(DESTDIR)/usr/local
BINDIR = $(PREFIX)/bin
# where to find additional dataplot files (help, menus, etc).
-DPLIBDIR=$(PREFIX)/lib/dataplot
+DPLIBDIR=$(DESTDIR)%%DATADIR%%
-FFLAGS += -O2 -DLINUX -fdefault-real-8 -fdefault-double-8 -fmax-stack-var-size=1000000 -Wall
-CFLAGS += -O2
+FFLAGS += %%FFLAGS%%
+CFLAGS += %%CFLAGS%% -I%%LOCALBASE%%/include
+LDFLAGS += -L%%LOCALBASE%%/lib
# special flags for dp1
DP1FLAGS = -DDDOUBLE -DINTEGER32 -DHAVE_ISNAN -DHAVE_EXECUTE_COMMAND_LINE -DDPLIBDIR=\'$(DPLIBDIR)\'
@@ -124,7 +125,7 @@ clean:
install: dataplot xdataplot
@echo installing binary to $(BINDIR)
-[ ! -d $(BINDIR) ] && mkdir -vp $(BINDIR) ||:
- install -pm 755 -t $(BINDIR) dataplot xdataplot
+ install -pm 755 *dataplot $(BINDIR)
@echo installing libs to $(DPLIBDIR)
-[ ! -d $(DPLIBDIR) ] && mkdir -vp $(DPLIBDIR) ||: