aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-04-06 22:07:19 +0800
committerkrion <krion@FreeBSD.org>2004-04-06 22:07:19 +0800
commit5e6edce527e8d949f906582279e2aeae61668db6 (patch)
tree69d1a7a7efa77fad43e0e28b0735bac48bff19de /misc
parentcfc6e862cc7477f57cd4792d20128b1aea6e274f (diff)
downloadfreebsd-ports-gnome-5e6edce527e8d949f906582279e2aeae61668db6.tar.gz
freebsd-ports-gnome-5e6edce527e8d949f906582279e2aeae61668db6.tar.zst
freebsd-ports-gnome-5e6edce527e8d949f906582279e2aeae61668db6.zip
- Respect CC & CFLAGS
PR: ports/65196 Submitted by: michael johnson <ahze@ahze.net>
Diffstat (limited to 'misc')
-rw-r--r--misc/dog/Makefile5
-rw-r--r--misc/dog/files/patch-aa24
2 files changed, 5 insertions, 24 deletions
diff --git a/misc/dog/Makefile b/misc/dog/Makefile
index f0651cc6d2c2..534c010c4953 100644
--- a/misc/dog/Makefile
+++ b/misc/dog/Makefile
@@ -15,10 +15,15 @@ COMMENT= Dog writes the contents of each given file, URL, or stdin
USE_GMAKE= yes
ALL_TARGET= dog
+USE_REINPLACE= yes
MAN1= dog.1
PLIST_FILES= bin/dog
+post-patch:
+ @${REINPLACE_CMD} -e 's|-O3 -Wall|${CFLAGS}|; s|gcc|${CC}|' \
+ ${WRKSRC}/${MAKEFILE}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/dog ${PREFIX}/bin/
${INSTALL_MAN} ${WRKSRC}/dog.1 ${PREFIX}/man/man1
diff --git a/misc/dog/files/patch-aa b/misc/dog/files/patch-aa
deleted file mode 100644
index 1ad0b0056a2e..000000000000
--- a/misc/dog/files/patch-aa
+++ /dev/null
@@ -1,24 +0,0 @@
---- Makefile Tue Jul 13 14:32:24 1999
-+++ Makefile.new Sat Jun 10 01:27:09 2000
-@@ -13,17 +13,18 @@
-
- INSTALL = /usr/bin/install -c
- OBJS = dog.o getopt.o getopt1.o
--CFLAGS = -O3 -Wall
-+CC ?= cc
-+CFLAGS ?= -O -pipe
-
- prefix = /usr/local
- bindir = ${prefix}/bin
- mandir = ${prefix}/man
-
- %.o: %.c
-- gcc ${CFLAGS} -c $< -o $@
-+ $(CC) ${CFLAGS} -c $< -o $@
-
- dog: ${OBJS}
-- gcc ${CFLAGS} -o dog ${OBJS}
-+ $(CC) ${CFLAGS} -o dog ${OBJS}
-
- install: dog
- $(INSTALL) -m 644 dog.1 ${mandir}/man1