aboutsummaryrefslogtreecommitdiffstats
path: root/comms/garmin-utils/Makefile
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2007-06-26 16:04:02 +0800
committertobez <tobez@FreeBSD.org>2007-06-26 16:04:02 +0800
commit3d758f617d7c381bb40683d0f27e7d610ef4832b (patch)
tree431ec182005647bf308c6e9ca6fc9fbecd8b89f7 /comms/garmin-utils/Makefile
parente1d1ac9ff20fd2b8e776c408f0d85b82e3b02e37 (diff)
downloadfreebsd-ports-gnome-3d758f617d7c381bb40683d0f27e7d610ef4832b.tar.gz
freebsd-ports-gnome-3d758f617d7c381bb40683d0f27e7d610ef4832b.tar.zst
freebsd-ports-gnome-3d758f617d7c381bb40683d0f27e7d610ef4832b.zip
Teach comms/garmin-utils about cuadX when compiling on FreeBSD 6+.
Bump PORTREVISION. PR: 113914 Approved by: maintainer
Diffstat (limited to 'comms/garmin-utils/Makefile')
-rw-r--r--comms/garmin-utils/Makefile14
1 files changed, 11 insertions, 3 deletions
diff --git a/comms/garmin-utils/Makefile b/comms/garmin-utils/Makefile
index b910598ecd2b..efbd7f072938 100644
--- a/comms/garmin-utils/Makefile
+++ b/comms/garmin-utils/Makefile
@@ -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 @@ COMMENT= Utilities for Garmin GPS receivers
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>