diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-12-22 17:49:09 +0000 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-12-22 17:49:09 +0000 |
commit | 2885d5d8c4ac5685af70937500e5c8d70ff4a00b (patch) | |
tree | c81ae8bb1763624cfc5a25425977979fe7a78b78 /devel/ucpp | |
parent | f1c3b3f7f297948004f3e54ded4711a2f7d73441 (diff) | |
download | FreeBSD-ports-2885d5d8c4ac5685af70937500e5c8d70ff4a00b.zip FreeBSD-ports-2885d5d8c4ac5685af70937500e5c8d70ff4a00b.tar.gz |
- Support CC/CFLAGS properly
PR: 45929
Submitted by: Ports Fury
Diffstat (limited to 'devel/ucpp')
-rw-r--r-- | devel/ucpp/Makefile | 7 | ||||
-rw-r--r-- | devel/ucpp/files/patch-Makefile | 21 |
2 files changed, 19 insertions, 9 deletions
diff --git a/devel/ucpp/Makefile b/devel/ucpp/Makefile index 8b122c2..cfa964c 100644 --- a/devel/ucpp/Makefile +++ b/devel/ucpp/Makefile @@ -8,17 +8,16 @@ PORTNAME= ucpp PORTVERSION= 1.2 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= http://pornin.nerim.net/ucpp/ MAINTAINER= ports@FreeBSD.org -MAKE_ENV= FLAGS="${CFLAGS}" - MAN1= ucpp.1 do-install: - @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin - @${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 + ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1 .include <bsd.port.mk> diff --git a/devel/ucpp/files/patch-Makefile b/devel/ucpp/files/patch-Makefile index aa54a34..859fa3e 100644 --- a/devel/ucpp/files/patch-Makefile +++ b/devel/ucpp/files/patch-Makefile @@ -1,11 +1,22 @@ ---- Makefile.orig Mon Aug 19 19:40:18 2002 -+++ Makefile Mon Aug 19 19:41:25 2002 -@@ -57,7 +57,7 @@ +--- Makefile.orig Wed Feb 20 18:49:16 2002 ++++ Makefile Sun Dec 1 09:01:06 2002 +@@ -56,8 +56,8 @@ + #FLAGS = -O -m -DMEM_CHECK # for gcc - CC = gcc +-CC = gcc -FLAGS = -g -Wall -ansi -pedantic -DAUDIT -DMEM_DEBUG -+FLAGS += -DAUDIT -DMEM_DEBUG ++CC ?= gcc ++FLAGS = -ansi -pedantic -DAUDIT -DMEM_DEBUG #FLAGS = -O3 -Wall -ansi -pedantic -DMEM_CHECK # for the Compaq C compiler on Alpha/Linux +@@ -78,7 +78,7 @@ + # ----- nothing should be changed below this line ----- + + COBJ = mem.o hash.o cpp.o lexer.o assert.o macro.o eval.o +-CFLAGS = $(FLAGS) -DSTAND_ALONE ++CFLAGS += $(FLAGS) -DSTAND_ALONE + + all: ucpp + |