- Fix runtime error by regenerating path in config.h

- Use MAKE_ARGS instead of patches
This commit is contained in:
Volker Stolz 2005-04-22 09:00:37 +00:00
parent 4d74133072
commit 3ed5971f49
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=133919
3 changed files with 4 additions and 25 deletions

View file

@ -21,12 +21,15 @@ MAN1= boxes.1
USE_GMAKE= yes
USE_BISON= yes
ALL_TARGET= boxes
MAKE_ARGS= GLOBALCONF=${GLOBALCONF} CFLAGS_ADDTL="${CFLAGS}"
MAKE_ARGS= CC="${CC}" GLOBALCONF=${GLOBALCONF} CFLAGS="${CFLAGS} -ansi -I. -Iregexp"
GLOBALCONF= ${DATADIR}/boxes-config
PLIST_FILES= bin/boxes share/boxes/boxes-config
PLIST_DIRS= share/boxes
do-configure:
${RM} ${WRKSRC}/src/boxes.h ${WRKSRC}/doc/boxes.1
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/src/boxes ${PREFIX}/bin
${MKDIR} ${DATADIR}

View file

@ -1,11 +0,0 @@
--- ./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))

View file

@ -1,13 +0,0 @@
--- ./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