summaryrefslogtreecommitdiff
path: root/devel/libgetopt
diff options
context:
space:
mode:
authorwiz <wiz>2001-07-23 22:31:08 +0000
committerwiz <wiz>2001-07-23 22:31:08 +0000
commit71dc9c45b90df1a3d722e1ed0de0f56126ef7194 (patch)
tree97195a0574d72db964a33903f386e7233d03fe6d /devel/libgetopt
parent70740918d9201ad27ec81f07818a8cba5a69dfb7 (diff)
downloadpkgsrc-71dc9c45b90df1a3d722e1ed0de0f56126ef7194.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')
-rw-r--r--devel/libgetopt/Makefile21
-rw-r--r--devel/libgetopt/pkg/PLIST6
2 files changed, 22 insertions, 5 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}
diff --git a/devel/libgetopt/pkg/PLIST b/devel/libgetopt/pkg/PLIST
index 09a635c7b52..1ed51af914c 100644
--- a/devel/libgetopt/pkg/PLIST
+++ b/devel/libgetopt/pkg/PLIST
@@ -1,9 +1,9 @@
-@comment $NetBSD: PLIST,v 1.3 2001/01/04 15:10:29 agc Exp $
+@comment $NetBSD: PLIST,v 1.4 2001/07/23 22:31:09 wiz Exp $
lib/libgetopt.a
lib/libgetopt_pic.a
lib/libgetopt.so
lib/libgetopt.so.1
lib/libgetopt.so.1.1
-man/man3/getopt_long.3
-man/cat3/getopt_long.0
+${MAN_INCLUDED}man/man3/getopt_long.3
+${MAN_INCLUDED}man/cat3/getopt_long.0
include/getopt.h