aboutsummaryrefslogtreecommitdiffstats
path: root/comms/bluegps
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2014-02-16 20:22:52 +0800
committerehaupt <ehaupt@FreeBSD.org>2014-02-16 20:22:52 +0800
commitdfee1c9403d9a3bf2ff5aa2c20be910a8ce750fe (patch)
tree7329285bf22aa6a2715550c9358b72b9abf45ce8 /comms/bluegps
parent22c0c70006c91b62b75a2b90455df022a56667b9 (diff)
downloadfreebsd-ports-gnome-dfee1c9403d9a3bf2ff5aa2c20be910a8ce750fe.tar.gz
freebsd-ports-gnome-dfee1c9403d9a3bf2ff5aa2c20be910a8ce750fe.tar.zst
freebsd-ports-gnome-dfee1c9403d9a3bf2ff5aa2c20be910a8ce750fe.zip
Support staging
Diffstat (limited to 'comms/bluegps')
-rw-r--r--comms/bluegps/Makefile7
-rw-r--r--comms/bluegps/files/patch-Makefile22
2 files changed, 23 insertions, 6 deletions
diff --git a/comms/bluegps/Makefile b/comms/bluegps/Makefile
index 553c82635918..9b9394a3597b 100644
--- a/comms/bluegps/Makefile
+++ b/comms/bluegps/Makefile
@@ -10,11 +10,6 @@ EXTRACT_SUFX= .tgz
MAINTAINER= dirkx@webweaving.org
COMMENT= Command line tool to download datalogs from the Royaltek RBT-3000 bluetooth GPS receiver
-MAN1= bluegps.1
-PLIST_FILES= bin/bluegps
-
-NO_STAGE= yes
-post-patch:
- @${REINPLACE_CMD} -e '/^CC=/d' ${WRKSRC}/Makefile
+PLIST_FILES= bin/bluegps man/man1/bluegps.1.gz
.include <bsd.port.mk>
diff --git a/comms/bluegps/files/patch-Makefile b/comms/bluegps/files/patch-Makefile
new file mode 100644
index 000000000000..8d19e1b3c880
--- /dev/null
+++ b/comms/bluegps/files/patch-Makefile
@@ -0,0 +1,22 @@
+--- ./Makefile.orig 2006-06-04 04:21:10.000000000 +0200
++++ ./Makefile 2014-02-16 13:19:18.792524225 +0100
+@@ -1,6 +1,5 @@
+ VERSION=2.0
+ PROJECT=bluegps
+-CC=gcc
+
+ all: $(PROJECT)
+
+@@ -13,6 +12,9 @@
+ dist:
+ cd ..; tar cvfz $(PROJECT)-linux-$(VERSION).tgz $(PROJECT)-linux/Makefile $(PROJECT)-linux/$(PROJECT).c $(PROJECT)-linux/rbt3000.h $(PROJECT)-linux/$(PROJECT).1
+
+-install: $(PROJECT) $(PROJECT).1
+- install $(PROJECT) /usr/local/bin
+- install $(PROJECT).1 /usr/local/man/man1
++strip:
++ strip $(PROJECT)
++
++install: $(PROJECT) $(PROJECT).1 strip
++ install $(PROJECT) $(DESTDIR)$(PREFIX)/bin
++ install $(PROJECT).1 $(DESTDIR)$(MANPREFIX)/man/man1