summaryrefslogtreecommitdiff
path: root/print/gv
diff options
context:
space:
mode:
authordmcmahill <dmcmahill>2005-03-01 22:59:16 +0000
committerdmcmahill <dmcmahill>2005-03-01 22:59:16 +0000
commitd8dd748e4b3509555858746849ab29ca099d1f4b (patch)
tree8dd284d0884e5a0cb2440e8732f656cd0bfb05df /print/gv
parent6849b0f7fdbeef53b4910f996afcf8c2f6ebbb40 (diff)
downloadpkgsrc-d8dd748e4b3509555858746849ab29ca099d1f4b.tar.gz
use libnbcompat for missing getopt. Fixes compilation on solaris.
Diffstat (limited to 'print/gv')
-rw-r--r--print/gv/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/print/gv/Makefile b/print/gv/Makefile
index 3ebe648a94d..87f9195ffbf 100644
--- a/print/gv/Makefile
+++ b/print/gv/Makefile
@@ -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 @@ INFO_FILES= gv.info
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"