ports/math/eukleides/files/patch-build_Makefile
Ashish SHUKLA c8dc31818c - Fix building with -CURRENT
- Pass CFLAGS to the make
- While here, fix portlint warnings

Reported by:	pkg-fallout
2020-09-11 17:35:26 +00:00

18 lines
625 B
Text

--- build/Makefile.orig 2010-04-27 06:31:00 UTC
+++ build/Makefile
@@ -12,12 +12,12 @@ LFLAGS = -8
YACC = bison
YFLAGS = -d
CC = gcc
-IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR)
+IFLAGS = -I$(COMMON_DIR) -I$(MAIN_DIR) -I$(BUILD_DIR) "-I%%LOCALBASE%%/include"
ifneq ($(strip $(LOCALES)),)
MOFLAGS = -DMO_DIR=\"$(MO_DIR)\"
endif
-CFLAGS = -Wall -D__$(BINARY)__ $(IFLAGS) $(MOFLAGS)
-LDFLAGS = -lncurses -lreadline -lm
+CFLAGS = -Wall -D__$(BINARY)__ $(IFLAGS) $(MOFLAGS) %%CFLAGS%%
+LDFLAGS = -lncurses -lreadline -lm "-L%%LOCALBASE%%/lib" -lintl
VPATH = $(COMMON_DIR):$(MAIN_DIR):$(BUILD_DIR)
$(BINARY):