From 5e1933cc0b1744104231d8fd007716b27d98c17c Mon Sep 17 00:00:00 2001 From: wiz Date: Mon, 23 Jul 2001 22:31:08 +0000 Subject: Make this package work under Solaris 8. Patches provided by Stoned Elipot in private mail. Addresses pkg/13017. --- devel/libgetopt/Makefile | 21 +++++++++++++++++++-- devel/libgetopt/pkg/PLIST | 6 +++--- 2 files changed, 22 insertions(+), 5 deletions(-) (limited to 'devel/libgetopt') 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 -- cgit v1.2.3