View | Details | Raw Unified | Return to bug 197879
Collapse All | Expand All

(-)astro/gpsbabel/Makefile (-1 / +1 lines)
Lines 2-8 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	gpsbabel
4
PORTNAME=	gpsbabel
5
PORTVERSION=	1.5.1
5
PORTVERSION=	1.5.2
6
CATEGORIES=	astro geography
6
CATEGORIES=	astro geography
7
MASTER_SITES=	https://secure.ohos.nl/downloads/ \
7
MASTER_SITES=	https://secure.ohos.nl/downloads/ \
8
		LOCAL/glebius
8
		LOCAL/glebius
(-)astro/gpsbabel/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (gpsbabel-1.5.1.tar.gz) = 3feec7d43ca6cb5393645fe0df893d9f7bf5334849fa8abd4c5c3ee775c8cac3
1
SHA256 (gpsbabel-1.5.2.tar.gz) = c1a2f07d014d69dcce80e2ef8f23fe2fe3154324957b04d488da1b32458fad7b
2
SIZE (gpsbabel-1.5.1.tar.gz) = 8402088
2
SIZE (gpsbabel-1.5.2.tar.gz) = 8392465
(-)astro/gpsbabel/files/patch-libusb (-31 lines)
Lines 1-31 Link Here
1
--- configure.in.orig	2008-10-31 15:43:21.000000000 +0300
2
+++ configure.in	2009-03-07 01:08:46.000000000 +0300
3
@@ -170,6 +169,28 @@
4
       AC_DEFINE(HAVE_LIBUSB, 1)
5
       CFLAGS="$CFLAGS -Imac/libusb/"
6
       ;;
7
+    *-*-freebsd*)
8
+	GBSER=gbser_posix.o
9
+	AC_MSG_CHECKING(for libusb)
10
+	if test "$with_libusb" = no ; then
11
+		AC_MSG_RESULT(check not done)
12
+		OSJEEPS=jeeps/gpsusbstub.o
13
+	else
14
+		OLDFLAGS=$LDFLAGS
15
+		OCFLAGS=$CFLAGS
16
+		LDFLAGS="$LDFLAGS -lusb"
17
+		CFLAGS="$OCFLAGS"
18
+
19
+		AC_CHECK_LIB([usb], [usb_interrupt_read],
20
+			AC_DEFINE(HAVE_LIBUSB, 1, [Defined if you have libusb])
21
+			[USB_CFLAGS=""]
22
+			[USB_LIBS="-lusb"]
23
+#			,[AC_MSG_ERROR([libusb is needed])]
24
+			)
25
+		OSJEEPS=jeeps/gpslibusb.o
26
+		CFLAGS="$OCFLAGS"
27
+	fi
28
+	;;
29
     *)
30
 	GBSER=gbser_posix.o
31
 	AC_MSG_CHECKING(for libusb)
(-)astro/gpsbabel/files/patch-mkstyle (-21 lines)
Lines 1-21 Link Here
1
--- ./mkstyle.sh.orig	2013-09-01 16:29:29.000000000 +0200
2
+++ ./mkstyle.sh	2014-06-10 13:47:27.000000000 +0200
3
@@ -9,17 +9,7 @@
4
 LC_COLLATE=C
5
 export LC_COLLATE
6
 
7
-# require gnu sed even though we aren't using gnu extensions.
8
-# this avoids portability issues with other seds.
9
-if gsed v /dev/null 1>/dev/null 2>&1; then
10
-    SED=gsed
11
-elif sed v /dev/null 1>/dev/null 2>&1; then
12
-	# sed is gnu sed
13
-    SED=sed
14
-else
15
-	echo "Error: can't find gnu sed" 1>&2
16
-	exit 1
17
-fi
18
+SED=sed
19
 
20
 echo "#include \"defs.h\""
21
 echo "#if CSVFMTS_ENABLED"

Return to bug 197879