diff options
author | frueauf <frueauf@pkgsrc.org> | 1998-02-15 10:31:46 +0000 |
---|---|---|
committer | frueauf <frueauf@pkgsrc.org> | 1998-02-15 10:31:46 +0000 |
commit | 2c5d88e7f7e36aee7caf056dc9ccc62e8763ae74 (patch) | |
tree | 03d587a1d1598856947c35d7b330a6aa0d05bedf /net | |
parent | e75a21ecfa8d6b50a546c777b51887737e56cc64 (diff) | |
download | pkgsrc-2c5d88e7f7e36aee7caf056dc9ccc62e8763ae74.tar.gz |
Compress help files if user set MANZ=1. Closes pr 4775.
Diffstat (limited to 'net')
-rw-r--r-- | net/ircII/Makefile | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/net/ircII/Makefile b/net/ircII/Makefile index 71b6d852c90..33797a29478 100644 --- a/net/ircII/Makefile +++ b/net/ircII/Makefile @@ -3,7 +3,7 @@ # Date created: 18 Oct 1994 # Whom: torstenb # -# $NetBSD: Makefile,v 1.6 1997/12/11 09:59:04 hubertf Exp $ +# $NetBSD: Makefile,v 1.7 1998/02/15 10:31:46 frueauf Exp $ # FreeBSD Id: Makefile,v 1.14 1997/05/14 10:35:13 torstenb Exp # @@ -18,6 +18,34 @@ MAINTAINER= mrg@eterna.com.au GNU_CONFIGURE= yes #CONFIGURE_ARGS+= --with-default-server=SERVER[:PORT] -MAN1= ircII.1 ircbug.1 +MAN1= ircII.1 ircbug.1 + +# Include local make config file here. It is essential to have this +# precede any override targets (those that override defaults in +# <bsd.port.mk> that test variables that may be set here. Note that +# this inclusion is otherwise redundant, since <bsd.port.mk> includes +# <bsd.own.mk>, which includes it. + +OPSYS!= uname -s +.if (${OPSYS} == "FreeBSD") +.include "/etc/make.conf" +.else +.include "/etc/mk.conf" +.endif + +.if defined(MANZ) +DCOMPRESSUFFIX= .gz +.else +DCOMPRESSUFFIX= +.endif + +PLIST_SRC= ${WRKDIR}/PLIST.tmp + +pre-install: + sed "s,@.GZ@,${DCOMPRESSUFFIX}," ${PKGDIR}/PLIST \ + > ${PLIST_SRC} + +post-install: + find ${PREFIX}/lib/irc/help -type f -exec gzip -9 {} \; .include <bsd.port.mk> |