diff options
author | wiz <wiz@pkgsrc.org> | 2003-09-22 13:43:04 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-09-22 13:43:04 +0000 |
commit | 525c4e8ef577f8aa0a83f228d72b35fba95165aa (patch) | |
tree | 87c434f0f01efb878ae044d7fece02123d259a84 /misc/dgpsip | |
parent | f3143d6f554a322ecaf01dd89de50ce3cf8293e0 (diff) | |
download | pkgsrc-525c4e8ef577f8aa0a83f228d72b35fba95165aa.tar.gz |
Fix build on Solaris and FreeBSD-2.1.5. From Jonathan Perkin in PR 22890.
Diffstat (limited to 'misc/dgpsip')
-rw-r--r-- | misc/dgpsip/Makefile | 8 | ||||
-rw-r--r-- | misc/dgpsip/distinfo | 3 | ||||
-rw-r--r-- | misc/dgpsip/patches/patch-aa | 19 |
3 files changed, 28 insertions, 2 deletions
diff --git a/misc/dgpsip/Makefile b/misc/dgpsip/Makefile index 4cad92c3276..ef6cdb99527 100644 --- a/misc/dgpsip/Makefile +++ b/misc/dgpsip/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.2 2001/02/17 18:08:57 wiz Exp $ +# $NetBSD: Makefile,v 1.3 2003/09/22 13:43:04 wiz Exp $ DISTNAME= dgpsip-1.28 CATEGORIES= misc @@ -10,4 +10,10 @@ COMMENT= Differential GPS over IP communication device GNU_CONFIGURE= YES +.include "../../mk/bsd.prefs.mk" + +.if ${OPSYS} == "SunOS" +LDFLAGS+= -lsocket -lnsl -lresolv +.endif + .include "../../mk/bsd.pkg.mk" diff --git a/misc/dgpsip/distinfo b/misc/dgpsip/distinfo index 90d424dfb68..3c126737aa8 100644 --- a/misc/dgpsip/distinfo +++ b/misc/dgpsip/distinfo @@ -1,4 +1,5 @@ -$NetBSD: distinfo,v 1.2 2001/04/20 13:52:10 agc Exp $ +$NetBSD: distinfo,v 1.3 2003/09/22 13:43:05 wiz Exp $ SHA1 (dgpsip-1.28.tar.gz) = e646fa8dfcb93a33cf374de00ba222c7499dde6a Size (dgpsip-1.28.tar.gz) = 63830 bytes +SHA1 (patch-aa) = 21a3f1b076fd5bca27edec47322c2321ae378250 diff --git a/misc/dgpsip/patches/patch-aa b/misc/dgpsip/patches/patch-aa new file mode 100644 index 00000000000..18c1b835987 --- /dev/null +++ b/misc/dgpsip/patches/patch-aa @@ -0,0 +1,19 @@ +$NetBSD: patch-aa,v 1.1 2003/09/22 13:43:06 wiz Exp $ + +--- dgpsip.c.orig Wed Aug 25 20:20:19 1999 ++++ dgpsip.c Mon Sep 22 14:09:26 2003 +@@ -79,6 +79,14 @@ + #define BUFSZ (4 * 1024) + #define NMEABUFSZ (4 * 1024) + ++#ifndef AF_INET6 /* for freebsd 2.1.5 */ ++#define AF_INET6 0x6666 /* IP version 6 */ ++#endif ++ ++#ifndef INADDR_NONE /* for solaris 5.7 */ ++#define INADDR_NONE 0xffffffff ++#endif ++ + int verbose = 0; + + void usage(void); |