summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-02-23 15:18:05 +0000
committeragc <agc@pkgsrc.org>1998-02-23 15:18:05 +0000
commit41895cb5530a1b0d930a5b81b650085ca1dd3583 (patch)
tree0fed764790ae0eacb0802518c13da9c2dd30836c /net
parent7718c4f85baa804d2dc076fe467d5279c218e0d6 (diff)
downloadpkgsrc-41895cb5530a1b0d930a5b81b650085ca1dd3583.tar.gz
Don't include /etc/mk.conf explicitly. It's not necessary.
Only gzip the help files if MANZ is set.
Diffstat (limited to 'net')
-rw-r--r--net/ircII/Makefile35
1 files changed, 8 insertions, 27 deletions
diff --git a/net/ircII/Makefile b/net/ircII/Makefile
index 3b2fe22f6c9..2b490ecaf31 100644
--- a/net/ircII/Makefile
+++ b/net/ircII/Makefile
@@ -3,7 +3,7 @@
# Date created: 18 Oct 1994
# Whom: torstenb
#
-# $NetBSD: Makefile,v 1.8 1998/02/20 07:23:29 hubertf Exp $
+# $NetBSD: Makefile,v 1.9 1998/02/23 15:18:05 agc Exp $
# FreeBSD Id: Makefile,v 1.14 1997/05/14 10:35:13 torstenb Exp
#
@@ -20,36 +20,17 @@ GNU_CONFIGURE= yes
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")
-.if exists(/etc/make.conf)
-.include "/etc/make.conf"
-.endif
-.else
-.if exists(/etc/mk.conf)
-.include "/etc/mk.conf"
-.endif
-.endif
-
-.if defined(MANZ)
-DCOMPRESSUFFIX= .gz
-.else
-DCOMPRESSUFFIX=
-.endif
-
PLIST_SRC= ${WRKDIR}/PLIST.tmp
pre-install:
- sed "s,@.GZ@,${DCOMPRESSUFFIX}," ${PKGDIR}/PLIST \
- > ${PLIST_SRC}
+ @(if [ "X${MANZ}" != X"" ]; then \
+ GZSUFFIX=.gz; \
+ fi; \
+ ${SED} -e 's|@.GZ@|'$$GZSUFFIX'|g' ${PKGDIR}/PLIST > ${PLIST_SRC})
post-install:
- find ${PREFIX}/lib/irc/help -type f -exec gzip -9 {} \;
+ @if [ "X${MANZ}" != X"" ]; then \
+ find ${PREFIX}/lib/irc/help -type f -exec gzip -9 {} \;; \
+ fi
.include <bsd.port.mk>