summaryrefslogtreecommitdiffstats
path: root/extra
diff options
context:
space:
mode:
Diffstat (limited to 'extra')
-rw-r--r--extra/gpsbabel/.footprint12
-rw-r--r--extra/gpsbabel/.md5sum2
-rw-r--r--extra/gpsbabel/Pkgfile28
-rw-r--r--extra/gpsbabel/exeext.patch11
-rw-r--r--extra/gpsbabel/struct.patch11
5 files changed, 64 insertions, 0 deletions
diff --git a/extra/gpsbabel/.footprint b/extra/gpsbabel/.footprint
new file mode 100644
index 000000000..e18e60122
--- /dev/null
+++ b/extra/gpsbabel/.footprint
@@ -0,0 +1,12 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/gpsbabel
+drwxr-xr-x root/root usr/include/
+drwxr-xr-x root/root usr/include/gpsbabel/
+-rw-r--r-- root/root usr/include/gpsbabel/cet.h
+-rw-r--r-- root/root usr/include/gpsbabel/cet_util.h
+-rw-r--r-- root/root usr/include/gpsbabel/defs.h
+-rw-r--r-- root/root usr/include/gpsbabel/filterdefs.h
+-rw-r--r-- root/root usr/include/gpsbabel/garmin_tables.h
+-rw-r--r-- root/root usr/include/gpsbabel/gbtypes.h
+-rw-r--r-- root/root usr/include/gpsbabel/queue.h
diff --git a/extra/gpsbabel/.md5sum b/extra/gpsbabel/.md5sum
new file mode 100644
index 000000000..cd56392bd
--- /dev/null
+++ b/extra/gpsbabel/.md5sum
@@ -0,0 +1,2 @@
+c1fa9755523f6ffdf55cb2d573ea5b09 exeext.patch
+1571b31f8f06f722995449dbff01ca49 plan9.php?dl=gpsbabel-1.3.6.tar.gz
diff --git a/extra/gpsbabel/Pkgfile b/extra/gpsbabel/Pkgfile
new file mode 100644
index 000000000..194f2d792
--- /dev/null
+++ b/extra/gpsbabel/Pkgfile
@@ -0,0 +1,28 @@
+# Description: Reads, writes, and manipulates GPS waypoints in a variety of formats
+# URL: http://www.gpsbabel.org
+# Maintainer: NuTyX core team
+# Packager: lesibel at free dot fr
+# Depends on: libusb, expat
+
+name=gpsbabel
+version=1.3.6
+release=1
+source=(http://www.gpsbabel.org/plan9.php?dl=gpsbabel-$version.tar.gz \
+ exeext.patch)
+
+build() {
+ cd gpsbabel-$version
+ mkdir -p $PKG/usr/bin
+ ./configure --prefix=/usr
+ patch -Np0 -i ../exeext.patch
+ #sed -i 's|/usr/local|/usr|g' Makefile
+ #sed -i 's|$(INSTALL_TARGETDIR)/bin|$(DESTDIR)$(INSTALL_TARGETDIR)/bin|g' Makefile
+
+ make
+ make DESTDIR=$PKG install
+
+ # Header install
+ mkdir -p $PKG/usr/include/gpsbabel
+ cp {defs.h,queue.h,gbtypes.h,filterdefs.h,cet.h,cet_util.h,garmin_tables.h} \
+ $PKG/usr/include/gpsbabel
+}
diff --git a/extra/gpsbabel/exeext.patch b/extra/gpsbabel/exeext.patch
new file mode 100644
index 000000000..fbc808ab8
--- /dev/null
+++ b/extra/gpsbabel/exeext.patch
@@ -0,0 +1,11 @@
+--- configure.in 2009-02-07 18:18:10.000000000 -0800
++++ configure.in 2009-02-07 18:18:10.000000000 -0800
+@@ -36,7 +36,7 @@
+ AC_PROG_INSTALL
+ AC_PROG_MAKE_SET
+ AC_EXEEXT
+-AC_SUBST(AC_EXEEXT)
++#AC_SUBST(AC_EXEEXT)
+ AC_C_BIGENDIAN
+
+ # Checks for libraries.
diff --git a/extra/gpsbabel/struct.patch b/extra/gpsbabel/struct.patch
new file mode 100644
index 000000000..41d6695a5
--- /dev/null
+++ b/extra/gpsbabel/struct.patch
@@ -0,0 +1,11 @@
+--- gpsbabel-1.2.8-beta20060219/defs.h 2006-01-24 07:30:53.000000000 -0800
++++ gpsbabel-1.2.8-beta20060219-new/defs.h 2006-03-17 21:31:18.000000000 -0800
+@@ -407,7 +407,7 @@
+ * All shortname functions take a shortname handle as the first arg.
+ * This is an opaque pointer. Callers must not fondle the contents of it.
+ */
+-typedef struct short_handle * short_handle;
++typedef struct short_handle_ * short_handle;
+ #ifndef DEBUG_MEM
+ char *mkshort (short_handle, const char *);
+ void *mkshort_new_handle(void);