summaryrefslogtreecommitdiff
path: root/devel/libgetopt/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2001-07-23 22:31:08 +0000
committerwiz <wiz@pkgsrc.org>2001-07-23 22:31:08 +0000
commit5e1933cc0b1744104231d8fd007716b27d98c17c (patch)
tree97195a0574d72db964a33903f386e7233d03fe6d /devel/libgetopt/Makefile
parent17e822fb3e6617617fcbe4bef92e0ba18cc07de3 (diff)
downloadpkgsrc-5e1933cc0b1744104231d8fd007716b27d98c17c.tar.gz
Make this package work under Solaris 8.
Patches provided by Stoned Elipot <Stoned.Elipot@script.jussieu.fr> in private mail. Addresses pkg/13017.
Diffstat (limited to 'devel/libgetopt/Makefile')
-rw-r--r--devel/libgetopt/Makefile21
1 files changed, 19 insertions, 2 deletions
diff --git a/devel/libgetopt/Makefile b/devel/libgetopt/Makefile
index bd4d7830c68..31cab501c9f 100644
--- a/devel/libgetopt/Makefile
+++ b/devel/libgetopt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2001/02/16 14:38:35 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2001/07/23 22:31:08 wiz Exp $
#
DISTNAME= libgetopt-${VERS}
@@ -20,7 +20,24 @@ WRKSRC= ${WRKDIR}/libgetopt
# I have NFC why the mkdir in pre-extract doesn't work, so do it here:
EXTRACT_CMD= ${MKDIR} ${WRKSRC} && ${CP} ${DOWNLOADED_DISTFILE} ${WRKSRC}
MANCOMPRESSED_IF_MANZ= yes
-INSTALL_TARGET= install NOLINT=1 LIBDIR=${PREFIX}/lib MANDIR=${PREFIX}/man
+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
+.endif
+
+.if ${OPSYS} != "NetBSD"
+MAKE_FLAGS+= MKMAN=no
+MAN_INCLUDED= '@comment '
+.else
+MAN_INCLUDED=
+.endif
+
+PLIST_SUBST+= MAN_INCLUDED=${MAN_INCLUDED}
post-extract:
${CP} ${FILESDIR}/getopt.h ${WRKSRC}