summaryrefslogtreecommitdiff
path: root/print/gv
diff options
context:
space:
mode:
authordmcmahill <dmcmahill@pkgsrc.org>2005-03-01 22:59:16 +0000
committerdmcmahill <dmcmahill@pkgsrc.org>2005-03-01 22:59:16 +0000
commitc3c5765875076bcf1bd9f14f938f0dd5089e2635 (patch)
tree8dd284d0884e5a0cb2440e8732f656cd0bfb05df /print/gv
parent97bef8397a60bf0e7308e554094ac2ad6b90f7d2 (diff)
downloadpkgsrc-c3c5765875076bcf1bd9f14f938f0dd5089e2635.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"