summaryrefslogtreecommitdiff
path: root/geography
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2009-01-13 21:24:58 +0000
committerjoerg <joerg@pkgsrc.org>2009-01-13 21:24:58 +0000
commitd258b58872cb4248eb021e522d2c554f3ac00ed2 (patch)
tree185cdb182d71922594380239078ffe51109703e2 /geography
parent83f3efe271f3db9cbed0d66235591fe54b5b92f9 (diff)
downloadpkgsrc-d258b58872cb4248eb021e522d2c554f3ac00ed2.tar.gz
Use BSD Makefiles on Linux. Set USE_BSD_MAKEFILE. Add DESTDIR support.
Tested by maintainer. Fixes PR 40390.
Diffstat (limited to 'geography')
-rw-r--r--geography/garmin-utils/Makefile22
-rw-r--r--geography/garmin-utils/PLIST4
-rw-r--r--geography/garmin-utils/patches/patch-aa14
3 files changed, 27 insertions, 13 deletions
diff --git a/geography/garmin-utils/Makefile b/geography/garmin-utils/Makefile
index d4405d036f4..91a75777cb4 100644
--- a/geography/garmin-utils/Makefile
+++ b/geography/garmin-utils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2008/11/12 13:37:36 gson Exp $
+# $NetBSD: Makefile,v 1.8 2009/01/13 21:24:58 joerg Exp $
#
DISTNAME= garmin-utils-2.4
@@ -9,23 +9,21 @@ MAINTAINER= gson@NetBSD.org
HOMEPAGE= http://www.snafu.org/
COMMENT= Utilities for Garmin GPS receivers
+PKG_DESTDIR_SUPPORT= user-destdir
+
ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-*
-MAKE_FLAGS+= MKCATPAGES=no
-INSTALLATION_DIRS= bin lib ${PKGMANDIR}/man1
+INSTALLATION_DIRS= bin lib ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1
+
+USE_BSD_MAKEFILE= yes
.include "../../mk/bsd.prefs.mk"
-.if (${OPSYS} == "Linux")
-USE_TOOLS+= gmake
-MAKE_FILE= GNUmakefile
+CPPFLAGS.Linux= -DLINUX
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/gardump/gardump ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/gardump/gardump.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_PROGRAM} ${WRKSRC}/garload/garload ${PREFIX}/bin
- ${INSTALL_MAN} ${WRKSRC}/garload/garload.1 ${PREFIX}/${PKGMANDIR}/man1
- ${INSTALL_LIB} ${WRKSRC}/lib/libgarmin.a ${PREFIX}/lib
+.if ${OPSYS} == "Linux"
+MAKE_FLAGS+= SIO_TYPE=-DSIO_TYPE=Linux GPG_SERIAL_PORT=/dev/gps \
+ NEEDS_STRLCPY=1
.endif
.include "../../mk/bsd.pkg.mk"
diff --git a/geography/garmin-utils/PLIST b/geography/garmin-utils/PLIST
index 7b936ad5b1a..fee3e345ff1 100644
--- a/geography/garmin-utils/PLIST
+++ b/geography/garmin-utils/PLIST
@@ -1,6 +1,8 @@
-@comment $NetBSD: PLIST,v 1.2 2004/09/08 20:47:54 gson Exp $
+@comment $NetBSD: PLIST,v 1.3 2009/01/13 21:24:58 joerg Exp $
bin/gardump
bin/garload
lib/libgarmin.a
+man/cat1/gardump.0
+man/cat1/garload.0
man/man1/gardump.1
man/man1/garload.1
diff --git a/geography/garmin-utils/patches/patch-aa b/geography/garmin-utils/patches/patch-aa
new file mode 100644
index 00000000000..43a58bafcee
--- /dev/null
+++ b/geography/garmin-utils/patches/patch-aa
@@ -0,0 +1,14 @@
+$NetBSD: patch-aa,v 1.4 2009/01/13 21:24:58 joerg Exp $
+
+--- lib/Makefile.orig 2009-01-13 20:50:30.000000000 +0100
++++ lib/Makefile
+@@ -11,6 +11,8 @@ NOLINT= yes
+ SRCS= gps1.c gps2.c gpsdisplay.c gpsprod.c gpscap.c gpsdump.c \
+ gpsprint.c gpsversion.c gpsformat.c gpsload.c gpsfloat.c
+
+-install:
++.if ${OPSYS} == "Linux"
++SRCS+= strlcpy.c
++.endif
+
+ .include <bsd.lib.mk>