ports/113914: [PATCH] Teach comms/garmin-utils about cuadX
Anton Berezin
tobez at FreeBSD.org
Thu Jun 21 15:20:02 UTC 2007
>Number: 113914
>Category: ports
>Synopsis: [PATCH] Teach comms/garmin-utils about cuadX
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Thu Jun 21 15:20:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator: Anton Berezin
>Release: FreeBSD 6.2-STABLE amd64
>Organization:
>Environment:
>Description:
In FreeBSD 6.X, /dev/cuaaX became /dev/cuadX.
The port still compiles /dev/cuaa0 as the default device.
It would be advantageous to teach it the difference.
>How-To-Repeat:
>Fix:
Index: Makefile
===================================================================
RCS file: /home/ncvs/ports/comms/garmin-utils/Makefile,v
retrieving revision 1.4
diff -u -r1.4 Makefile
--- Makefile 17 May 2005 14:50:11 -0000 1.4
+++ Makefile 21 Jun 2007 15:08:16 -0000
@@ -7,6 +7,7 @@
PORTNAME= garmin-utils
PORTVERSION= 2.2
+PORTREVISION= 1
CATEGORIES= comms
MASTER_SITES= ftp://ftp.snafu.org/pub/
@@ -15,9 +16,16 @@
MAN1= gardump.1 garload.1
MANCOMPRESSED= yes
-MAKE_ARGS+= MANDIR=${MANPREFIX}/man/man \
- GPS_SERIAL_PORT=/dev/cuaa0
+MAKE_ARGS+= MANDIR=${MANPREFIX}/man/man
PLIST_FILES= bin/gardump bin/garload
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 600006
+MAKE_ARGS+= GPS_SERIAL_PORT=/dev/cuaa0
+.else
+MAKE_ARGS+= GPS_SERIAL_PORT=/dev/cuad0
+.endif
+
+.include <bsd.port.post.mk>
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list