summaryrefslogtreecommitdiff
path: root/devel/libgetopt
diff options
context:
space:
mode:
authorrecht <recht>2004-12-12 17:16:27 +0000
committerrecht <recht>2004-12-12 17:16:27 +0000
commitd8c7eb06ba64938d146003db87a1188776e92001 (patch)
tree6bf3ad7878cf489e8b4d75380f1e0946472f4e7b /devel/libgetopt
parentd07786440a24813144b00af888640016e02f5b4b (diff)
downloadpkgsrc-d8c7eb06ba64938d146003db87a1188776e92001.tar.gz
Fix build on IRIX 5 whichhas a nonstandard /usr/include/getopt.h.
patch by Georg Schwarz in PR 28597
Diffstat (limited to 'devel/libgetopt')
-rw-r--r--devel/libgetopt/Makefile8
1 files changed, 4 insertions, 4 deletions
diff --git a/devel/libgetopt/Makefile b/devel/libgetopt/Makefile
index c9194e1dcc5..d34e5ff3060 100644
--- a/devel/libgetopt/Makefile
+++ b/devel/libgetopt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2004/01/20 12:13:28 agc Exp $
+# $NetBSD: Makefile,v 1.15 2004/12/12 17:16:27 recht Exp $
#
DISTNAME= libgetopt-${VERS}
@@ -15,7 +15,9 @@ NO_SRC_ON_FTP= Already in MASTER_SITE_LOCAL
WRKSRC= ${WRKDIR}/libgetopt
-.if exists(/usr/include/getopt.h)
+.include "../../mk/bsd.prefs.mk"
+
+.if exists(/usr/include/getopt.h) && empty(LOWER_OPSYS:Mirix5*)
PKG_SKIP_REASON= "${PKGNAME} is part of your ${OPSYS} distribution"
.endif
@@ -26,8 +28,6 @@ MANCOMPRESSED_IF_MANZ= yes
MAKE_FLAGS+= LIBDIR=${PREFIX}/lib MANDIR=${PREFIX}/man
MAKE_FLAGS+= MKLINT=no
-.include "../../mk/bsd.prefs.mk"
-
.if ${OPSYS} == "SunOS"
MAKEFLAGS+= NETBSD_COMPATIBLE=YES
CFLAGS+= -DREPLACE_GETOPT