1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

Fix build on -current (don't try and build with cc -traditional).

Respect CC and CFLAGS
This commit is contained in:
Kris Kennaway 2002-10-21 01:00:52 +00:00
parent 258e006f52
commit a735943d25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=68465
3 changed files with 24 additions and 3 deletions

View File

@ -23,9 +23,6 @@ MAKE_ARGS= GLOBALCONF=${GLOBALCONF} CFLAGS_ADDTL="${CFLAGS}"
GLOBALCONF= ${PREFIX}/share/boxes/boxes-config
do-patch:
${TOUCH} ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/boxes ${PREFIX}/bin
${MKDIR} ${PREFIX}/share/boxes

11
misc/boxes/files/patch-aa Normal file
View File

@ -0,0 +1,11 @@
--- ./src/regexp/Makefile.orig Sun Oct 20 17:56:12 2002
+++ ./src/regexp/Makefile Sun Oct 20 17:56:19 2002
@@ -32,7 +32,7 @@
#============================================================================
-CFLAGS = -traditional -O -I. $(CFLAGS_ADDTL)
+CFLAGS += -I. $(CFLAGS_ADDTL)
ALL_CL = regexp/regexp.c regexp/regsub.c
C_SRC = $(notdir $(ALL_CL))

13
misc/boxes/files/patch-ab Normal file
View File

@ -0,0 +1,13 @@
--- ./src/Makefile.orig Sun Oct 20 17:58:59 2002
+++ ./src/Makefile Sun Oct 20 17:59:05 2002
@@ -78,8 +78,8 @@
LEX = flex
YACC = bison
-CC = gcc
-CFLAGS = -ansi -I. -Iregexp -Wall -W $(CFLAGS_ADDTL)
+CC ?= cc
+CFLAGS += -ansi -I. -Iregexp -Wall -W $(CFLAGS_ADDTL)
LDFLAGS = -Lregexp
GEN_HDR = parser.h boxes.h