pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/gv use libnbcompat for missing getopt. Fixes co...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/609d8028f2df
branches:  trunk
changeset: 489993:609d8028f2df
user:      dmcmahill <dmcmahill%pkgsrc.org@localhost>
date:      Tue Mar 01 22:59:16 2005 +0000

description:
use libnbcompat for missing getopt.  Fixes compilation on solaris.

diffstat:

 print/gv/Makefile |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (23 lines):

diff -r 3c34c00d0bad -r 609d8028f2df print/gv/Makefile
--- a/print/gv/Makefile Tue Mar 01 22:55:26 2005 +0000
+++ b/print/gv/Makefile Tue Mar 01 22:59:16 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.48 2005/02/12 23:01:59 snj Exp $
+# $NetBSD: Makefile,v 1.49 2005/03/01 22:59:16 dmcmahill Exp $
 # FreeBSD Id: Makefile,v 1.16 1997/07/13 18:49:29 max Exp
 
 DISTNAME=      gv-3.6.1
@@ -20,6 +20,13 @@
 
 XAW_TYPE=              3d
 
+.if !exists(/usr/include/getopt.h)
+.  include "../../pkgtools/libnbcompat/buildlink3.mk"
+post-extract:
+       cd ${WRKSRC}/src && ${LN} -s ${PREFIX}/include/nbcompat.h getopt.h
+
+.endif
+
 .include "../../mk/xaw.buildlink3.mk"
 .include "../../mk/ghostscript.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index