aboutsummaryrefslogtreecommitdiffstats
path: root/devel/cflow
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-09-06 00:49:41 +0800
committerantoine <antoine@FreeBSD.org>2014-09-06 00:49:41 +0800
commitc074139f224a765788b40b5ea9cfe9fb01b08753 (patch)
treea288d742fb82227ce6058f0544c4222848f654f9 /devel/cflow
parent9c64cc7f3eac07c4a0d9043874713c39bf7f5763 (diff)
downloadfreebsd-ports-gnome-c074139f224a765788b40b5ea9cfe9fb01b08753.tar.gz
freebsd-ports-gnome-c074139f224a765788b40b5ea9cfe9fb01b08753.tar.zst
freebsd-ports-gnome-c074139f224a765788b40b5ea9cfe9fb01b08753.zip
Allow staging as a regular user
Diffstat (limited to 'devel/cflow')
-rw-r--r--devel/cflow/files/patch-Makefile17
1 files changed, 8 insertions, 9 deletions
diff --git a/devel/cflow/files/patch-Makefile b/devel/cflow/files/patch-Makefile
index 9d605dfe3a15..f9a5cff27a1e 100644
--- a/devel/cflow/files/patch-Makefile
+++ b/devel/cflow/files/patch-Makefile
@@ -1,6 +1,6 @@
---- Makefile.orig 1995-03-06 22:00:20.000000000 +0800
-+++ Makefile 2014-05-24 22:09:47.087270512 +0800
-@@ -5,19 +5,20 @@ CC=gcc
+--- Makefile.orig 1995-03-06 14:00:20 UTC
++++ Makefile
+@@ -5,19 +5,19 @@
endif
# use cp backup option if you have gnu cp
@@ -8,7 +8,6 @@
-CP=cp -b
+#CP=cp
+#CP=cp -b
-+INSTALL_CMD= install -c -o bin -g bin
# where you want to install
ifndef PREFIX
@@ -25,7 +24,7 @@
endif
# actual location of prcc
-@@ -39,12 +40,13 @@ ifdef MALLOC_DEBUG
+@@ -39,12 +39,13 @@
LOADLIBES=-L$(HOME)/lib -ldmalloc
endif
@@ -43,7 +42,7 @@
SRCS=cflow.sh prcc.c prcg.c
-@@ -64,17 +66,23 @@ PROTOTYPES= prcc.prototypes.h prcg.proto
+@@ -64,17 +65,23 @@
prototypes: $(PROTOTYPES)
@@ -58,14 +57,14 @@
+
$(BINDIR)/prcc $(BINDIR)/prcg: $(BINDIR)/%: %
- $(CP) $^ $@
-+ $(INSTALL_CMD) $^ $@
++ $(BSD_INSTALL_PROGRAM) $^ $@
$(BINDIR)/cflow: cflow
- $(CP) $^ $@
-+ $(INSTALL_CMD) -m0755 $^ $@
++ $(BSD_INSTALL_SCRIPT) $^ $@
+
+$(MANDIR)/cflow.1.gz: cflow.1
-+ $(INSTALL_CMD) -m 0644 $^ $(MANDIR)
++ $(BSD_INSTALL_MAN) $^ $(MANDIR)
+ gzip -9nf $(MANDIR)/cflow.1
cflow: cflow.sh