summaryrefslogtreecommitdiff
path: root/print
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
commit6739acbbc4d5893d1a9e61fe9ba6fc21c566098b (patch)
tree8dd284d0884e5a0cb2440e8732f656cd0bfb05df /print
parent00f5c1e4495a9706a1992694ebc0628b455db029 (diff)
downloadpkgsrc-6739acbbc4d5893d1a9e61fe9ba6fc21c566098b.tar.gz
use libnbcompat for missing getopt. Fixes compilation on solaris.
Diffstat (limited to 'print')
-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"