- Respect CC

- Fully respect CFLAGS
- Remove optimization flags
- Don't build with debug symbols
- Bump PORTREVISION

Submitted by:	ehaupt@
This commit is contained in:
Martin Wilke 2007-06-10 10:28:27 +00:00
parent bffa6b9c4f
commit 6fe12ee091
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=193161
4 changed files with 80 additions and 12 deletions

View file

@ -7,6 +7,7 @@
PORTNAME= dumb
PORTVERSION= 0.9.3
PORTREVISION= 1
CATEGORIES= devel audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dumb
@ -27,8 +28,7 @@ PLIST_SUB+= ALLEGRO="@comment "
MAKE_ARGS= _PORT_ALLEGRO_CFLAGS=
.endif
post-patch:
@${REINPLACE_CMD} -e "s,-O2,${CFLAGS}," ${WRKSRC}/Makefile
MAKE_ENV+= CC="${CC}"
pre-configure:
@${CP} ${FILESDIR}/config.txt ${WRKSRC}/make

View file

@ -1,5 +1,5 @@
--- Makefile.orig Mon Aug 8 02:18:41 2005
+++ Makefile Tue Aug 23 02:21:13 2005
--- ./Makefile.orig Mon Aug 8 02:18:41 2005
+++ ./Makefile Sun Jun 10 12:13:59 2007
@@ -22,7 +22,7 @@
# (Note that this is unable to delete the dumbask
# executable if the configuration is absent.)
@ -9,7 +9,42 @@
.PHONY: all install uninstall clean veryclean distclean config config-if-necessary make-outdirs
@@ -231,10 +231,10 @@
@@ -36,12 +36,12 @@
COMMA := ,
ifdef USE_ICC
-CC := icc
+CC ?= icc
else
ifdef USE_SGICC
-CC := cc
+CC ?= cc
else
-CC := gcc
+CC ?= gcc
endif
endif
AR := ar
@@ -215,24 +215,21 @@
ifdef USE_ICC
WFLAGS := -Wall -DDUMB_DECLARE_DEPRECATED
WFLAGS_ALLEGRO :=
-OFLAGS := -O2
-DBGFLAGS := -DDEBUGMODE=1
+OFLAGS=$(CFLAGS)
else
ifdef USE_SGICC
WFLAGS := -fullwarn -DDUMB_DECLARE_DEPRECATED
WFLAGS_ALLEGRO :=
-OFLAGS := -n32 -O2 -use_readonly_const
-DBGFLAGS := -n32 -g3 -DDEBUGMODE=1
+OFLAGS=$(CFLAGS)
else
WFLAGS := -Wall -W -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -DDUMB_DECLARE_DEPRECATED
WFLAGS_ALLEGRO := -Wno-missing-declarations
-OFLAGS := -O2 -ffast-math -fomit-frame-pointer
-DBGFLAGS := -DDEBUGMODE=1 -g3
+OFLAGS=$(CFLAGS)
endif
endif
@ -20,4 +55,3 @@
LDFLAGS := -s

View file

@ -7,6 +7,7 @@
PORTNAME= dumb
PORTVERSION= 0.9.3
PORTREVISION= 1
CATEGORIES= devel audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= dumb
@ -27,8 +28,7 @@ PLIST_SUB+= ALLEGRO="@comment "
MAKE_ARGS= _PORT_ALLEGRO_CFLAGS=
.endif
post-patch:
@${REINPLACE_CMD} -e "s,-O2,${CFLAGS}," ${WRKSRC}/Makefile
MAKE_ENV+= CC="${CC}"
pre-configure:
@${CP} ${FILESDIR}/config.txt ${WRKSRC}/make

View file

@ -1,5 +1,5 @@
--- Makefile.orig Mon Aug 8 02:18:41 2005
+++ Makefile Tue Aug 23 02:21:13 2005
--- ./Makefile.orig Mon Aug 8 02:18:41 2005
+++ ./Makefile Sun Jun 10 12:13:59 2007
@@ -22,7 +22,7 @@
# (Note that this is unable to delete the dumbask
# executable if the configuration is absent.)
@ -9,7 +9,42 @@
.PHONY: all install uninstall clean veryclean distclean config config-if-necessary make-outdirs
@@ -231,10 +231,10 @@
@@ -36,12 +36,12 @@
COMMA := ,
ifdef USE_ICC
-CC := icc
+CC ?= icc
else
ifdef USE_SGICC
-CC := cc
+CC ?= cc
else
-CC := gcc
+CC ?= gcc
endif
endif
AR := ar
@@ -215,24 +215,21 @@
ifdef USE_ICC
WFLAGS := -Wall -DDUMB_DECLARE_DEPRECATED
WFLAGS_ALLEGRO :=
-OFLAGS := -O2
-DBGFLAGS := -DDEBUGMODE=1
+OFLAGS=$(CFLAGS)
else
ifdef USE_SGICC
WFLAGS := -fullwarn -DDUMB_DECLARE_DEPRECATED
WFLAGS_ALLEGRO :=
-OFLAGS := -n32 -O2 -use_readonly_const
-DBGFLAGS := -n32 -g3 -DDEBUGMODE=1
+OFLAGS=$(CFLAGS)
else
WFLAGS := -Wall -W -Wwrite-strings -Wstrict-prototypes -Wmissing-declarations -DDUMB_DECLARE_DEPRECATED
WFLAGS_ALLEGRO := -Wno-missing-declarations
-OFLAGS := -O2 -ffast-math -fomit-frame-pointer
-DBGFLAGS := -DDEBUGMODE=1 -g3
+OFLAGS=$(CFLAGS)
endif
endif
@ -20,4 +55,3 @@
LDFLAGS := -s