summaryrefslogtreecommitdiff
path: root/net/mrtg/Makefile
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-03-03 13:56:48 +0000
committeragc <agc@pkgsrc.org>2000-03-03 13:56:48 +0000
commit9f991c45c802f449e5ffbfc306732fd51eff51ac (patch)
tree4fe45cd01e2d09cb715c00ae0889fbd48f0eeea3 /net/mrtg/Makefile
parentc9ad400872356fedc4551c83aec7f2d8692c942a (diff)
downloadpkgsrc-9f991c45c802f449e5ffbfc306732fd51eff51ac.tar.gz
Make this package work on Solaris.
Diffstat (limited to 'net/mrtg/Makefile')
-rw-r--r--net/mrtg/Makefile11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/mrtg/Makefile b/net/mrtg/Makefile
index cdaeb0bd554..de6150b28b5 100644
--- a/net/mrtg/Makefile
+++ b/net/mrtg/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2000/02/07 16:44:13 tron Exp $
+# $NetBSD: Makefile,v 1.13 2000/03/03 13:56:48 agc Exp $
# FreeBSD Id: Makefile,v 1.7 1997/12/16 19:42:17 vanilla Exp
#
@@ -24,6 +24,15 @@ GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-gd-inc=${LOCALBASE}/include \
--with-gd-lib=${LOCALBASE}/lib
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "SunOS"
+CONFIGURE_ARGS+= --with-z-lib=${LOCALBASE}/lib
+CONFIGURE_ARGS+= --with-z-inc=${LOCALBASE}/include
+CONFIGURE_ARGS+= --with-png-lib=${LOCALBASE}/lib
+CONFIGURE_ARGS+= --with-png-inc=${LOCALBASE}/include
+.endif
+
post-build:
${SED} s#@PREFIX@#${PREFIX}#g <${FILESDIR}/mrtg.conf.example \
>${WRKDIR}/mrtg.conf.example