pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/dog Fix build on Solaris. From Jonathan Perki...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fe2d78eee487
branches:  trunk
changeset: 461900:fe2d78eee487
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Tue Sep 23 13:34:44 2003 +0000

description:
Fix build on Solaris. From Jonathan Perkin in PR 22907.

diffstat:

 sysutils/dog/Makefile         |   9 ++++++++-
 sysutils/dog/distinfo         |   4 ++--
 sysutils/dog/patches/patch-aa |  23 ++++++++++++++---------
 3 files changed, 24 insertions(+), 12 deletions(-)

diffs (75 lines):

diff -r c7738e0a8fe9 -r fe2d78eee487 sysutils/dog/Makefile
--- a/sysutils/dog/Makefile     Tue Sep 23 13:29:25 2003 +0000
+++ b/sysutils/dog/Makefile     Tue Sep 23 13:34:44 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2003/07/17 22:53:28 grant Exp $
+# $NetBSD: Makefile,v 1.6 2003/09/23 13:34:44 wiz Exp $
 # FreeBSD Id: ports/misc/dog/Makefile,v 1.1 2000/06/10 05:45:34 will Exp
 
 DISTNAME=      dog-1.7
@@ -12,4 +12,11 @@
 USE_GMAKE=     yes
 ALL_TARGET=    dog
 
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+LDFLAGS+=      -lsocket -lnsl
+MAKE_ENV+=     OBJS="getopt.o getopt1.o"
+.endif
+
 .include "../../mk/bsd.pkg.mk"
diff -r c7738e0a8fe9 -r fe2d78eee487 sysutils/dog/distinfo
--- a/sysutils/dog/distinfo     Tue Sep 23 13:29:25 2003 +0000
+++ b/sysutils/dog/distinfo     Tue Sep 23 13:34:44 2003 +0000
@@ -1,5 +1,5 @@
-$NetBSD: distinfo,v 1.2 2001/04/19 11:29:01 agc Exp $
+$NetBSD: distinfo,v 1.3 2003/09/23 13:34:45 wiz Exp $
 
 SHA1 (dog-1.7.tar.gz) = a1af9c76daa0c9768cdf0c31839b3004e6ccc417
 Size (dog-1.7.tar.gz) = 30433 bytes
-SHA1 (patch-aa) = c0dc5315d16950f3cc927074ea7b7536adac880c
+SHA1 (patch-aa) = d7fdbe2bfa5c6c69493f8b68802a45841869899f
diff -r c7738e0a8fe9 -r fe2d78eee487 sysutils/dog/patches/patch-aa
--- a/sysutils/dog/patches/patch-aa     Tue Sep 23 13:29:25 2003 +0000
+++ b/sysutils/dog/patches/patch-aa     Tue Sep 23 13:34:44 2003 +0000
@@ -1,17 +1,16 @@
-$NetBSD: patch-aa,v 1.1.1.1 2001/01/19 01:35:05 hubertf Exp $
+$NetBSD: patch-aa,v 1.2 2003/09/23 13:34:45 wiz Exp $
 
---- Makefile.orig      Tue Jul 13 20:32:24 1999
-+++ Makefile
-@@ -12,18 +12,20 @@
+--- Makefile.orig      Wed Jun 21 17:00:57 2000
++++ Makefile   Tue Sep 23 10:15:48 2003
+@@ -18,22 +18,23 @@
  #  dogboy%photodex.com@localhost!
  
  INSTALL = /usr/bin/install -c
 -OBJS = dog.o getopt.o getopt1.o
 -CFLAGS = -O3 -Wall
 +#HF#OBJS = dog.o getopt.o getopt1.o
-+OBJS = dog.o # NetBSD (and about any other Unix) has getopt in libc :-)
-+CC ?= cc
-+CFLAGS ?= -O -pipe
++OBJS += dog.o # NetBSD (and about any other Unix) has getopt in libc :-)
++#CFLAGS = -O3 -Wall
  
 -prefix = /usr/local
 +prefix = ${PREFIX}
@@ -24,7 +23,13 @@
  
  dog:  ${OBJS}
 -      gcc ${CFLAGS} -o dog ${OBJS}
-+      $(CC) ${CFLAGS} -o dog ${OBJS}
++      $(CC) ${CFLAGS} -o dog ${OBJS} ${LDFLAGS}
  
  install:      dog
-       $(INSTALL) -m 644 dog.1 ${mandir}/man1
+-      $(INSTALL) -m 644 dog.1 ${mandir}/man1
+-      $(INSTALL) -m 755 dog ${bindir}
++      $(BSD_INSTALL_MAN) dog.1 ${mandir}/man1/dog.1
++      $(BSD_INSTALL_PROGRAM) dog ${bindir}/dog
+ 
+ clean:
+       rm -f dog *.o *~



Home | Main Index | Thread Index | Old Index