aboutsummaryrefslogtreecommitdiffstats
path: root/comms/locator
diff options
context:
space:
mode:
authordb <db@FreeBSD.org>2011-07-01 20:30:51 +0800
committerdb <db@FreeBSD.org>2011-07-01 20:30:51 +0800
commit8994dcff1c6fd3511c262cdfa34de59b17179036 (patch)
tree5c5150f1c1ec9c2a0cf924a6e2e1a8e3cb324fb8 /comms/locator
parent5d040d8a98d3a6fcea96b7b98bbc98ad6d8d9695 (diff)
downloadfreebsd-ports-gnome-8994dcff1c6fd3511c262cdfa34de59b17179036.tar.gz
freebsd-ports-gnome-8994dcff1c6fd3511c262cdfa34de59b17179036.tar.zst
freebsd-ports-gnome-8994dcff1c6fd3511c262cdfa34de59b17179036.zip
- Unbreak clang build
- Replace hard coded g++ with ${CXX} in Makefile - main() was missing int declaration
Diffstat (limited to 'comms/locator')
-rw-r--r--comms/locator/files/patch-Makefile17
-rw-r--r--comms/locator/files/patch-locator.cc17
2 files changed, 29 insertions, 5 deletions
diff --git a/comms/locator/files/patch-Makefile b/comms/locator/files/patch-Makefile
new file mode 100644
index 000000000000..d253d43e0a25
--- /dev/null
+++ b/comms/locator/files/patch-Makefile
@@ -0,0 +1,17 @@
+--- Makefile.orig 2011-07-01 08:24:26.000000000 -0400
++++ Makefile 2011-07-01 08:24:53.000000000 -0400
+@@ -2,11 +2,11 @@
+ all: $(PROGS)
+
+ conv_fn.o: conv_fn.cc
+- g++ -c conv_fn.cc
++ ${CXX} -c conv_fn.cc
+
+ locator: locator.cc conv_fn.o
+- g++ -c locator.cc
+- g++ -o locator locator.o conv_fn.o
++ ${CXX} -c locator.cc
++ ${CXX} -o locator locator.o conv_fn.o
+
+ clean::
+ rm -f *~ *.o $(PROGS)
diff --git a/comms/locator/files/patch-locator.cc b/comms/locator/files/patch-locator.cc
index 28ea4c749e9c..d072f0259d46 100644
--- a/comms/locator/files/patch-locator.cc
+++ b/comms/locator/files/patch-locator.cc
@@ -1,8 +1,8 @@
---- locator.cc.orig Thu Jun 30 15:21:49 2005
-+++ locator.cc Thu Jun 30 17:04:24 2005
-@@ -3,9 +3,13 @@
+--- locator.cc.orig 2001-07-29 07:33:02.000000000 -0400
++++ locator.cc 2011-07-01 08:26:29.000000000 -0400
+@@ -3,15 +3,19 @@
/* Last change 29.07.2001 */
-
+
/* A few includes */
-#include <iostream.h>
-#include <string.h>
@@ -14,6 +14,13 @@
+using std::iostream;
+using std::ostream;
+using std::cout;
-
+
/* A few definitions */
#define VERSION "0.1"
+
+ /* Main program */
+-main(int argc, char *argv[]) {
++int main(int argc, char *argv[]) {
+ float c_long, c_lat;
+ char *locator;
+