diff options
author | gdt <gdt@pkgsrc.org> | 2009-02-22 22:07:52 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2009-02-22 22:07:52 +0000 |
commit | 40f437ad91f58eacc511ad07f816db40a20269c2 (patch) | |
tree | f77731fd1fb25ec7ffbf97f785bd6402e28b51fa /geography/garmin-utils/Makefile | |
parent | 7969d824d8bc712a449f494d4957855c338449de (diff) | |
download | pkgsrc-40f437ad91f58eacc511ad07f816db40a20269c2.tar.gz |
On Linux, define NEEDS_STRLCPY in MAKE_ENV.
In the patched Makefile, switch on NEEDS_STRLCPY instead of OPSYS,
because OPSYS isn't defined in my world (vanilla netbsd-5 on i386),
and I can't find any reason it should be.
Add a comment to the patch explaining why the install: target was
removed, and about NEEDS_STRLCPY.
Diffstat (limited to 'geography/garmin-utils/Makefile')
-rw-r--r-- | geography/garmin-utils/Makefile | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/geography/garmin-utils/Makefile b/geography/garmin-utils/Makefile index a6e0a44a8d3..435b292afb1 100644 --- a/geography/garmin-utils/Makefile +++ b/geography/garmin-utils/Makefile @@ -1,35 +1,40 @@ -# $NetBSD: Makefile,v 1.11 2009/02/22 20:57:25 gdt Exp $ +# $NetBSD: Makefile,v 1.12 2009/02/22 22:07:52 gdt Exp $ # DISTNAME= garmin-utils-2.5 +PKGREVISION= 1 CATEGORIES= geography MASTER_SITES= ftp://ftp.snafu.org/pub/ MAINTAINER= gson@NetBSD.org +# also gdt@NetBSD.org is helping HOMEPAGE= http://www.snafu.org/ COMMENT= Utilities for Garmin GPS receivers PKG_DESTDIR_SUPPORT= user-destdir +# This seems excessive; on other ones it can be made to work. ONLY_FOR_PLATFORM= NetBSD-*-* Linux-*-* INSTALLATION_DIRS= bin lib ${PKGMANDIR}/cat1 ${PKGMANDIR}/man1 USE_BSD_MAKEFILE= yes +MAKE_JOBS_SAFE= no + # No actual serial port will be right for any significant number of users, # so make everyone use a symlink. MAKE_FLAGS+= GPS_SERIAL_PORT=/dev/gps -MAKE_JOBS_SAFE= no - .include "../../mk/bsd.prefs.mk" CPPFLAGS.Linux= -DLINUX .if ${OPSYS} == "Linux" -MAKE_FLAGS+= SIO_TYPE=-DSIO_TYPE=Linux \ - NEEDS_STRLCPY=1 +MAKE_FLAGS+= SIO_TYPE=-DSIO_TYPE=Linux + +# On Linux, libc apparently does not have strlcpy. +MAKE_FLAGS+= NEEDS_STRLCPY=1 .endif .include "../../mk/bsd.pkg.mk" |