openbsd-ports/net/mrtg/Makefile

58 lines
1.7 KiB
Makefile
Raw Normal View History

2006-12-29 08:37:24 -05:00
# $OpenBSD: Makefile,v 1.52 2006/12/29 13:37:24 jakob Exp $
COMMENT= "multi-router traffic grapher"
1999-02-23 16:59:39 -05:00
DISTNAME= mrtg-2.12.2
2006-12-29 08:37:24 -05:00
PKGNAME= ${DISTNAME}p3
1999-02-23 16:59:39 -05:00
CATEGORIES= net
2002-10-27 20:38:44 -05:00
MASTER_SITES= ${HOMEPAGE}pub/
1999-02-23 16:59:39 -05:00
HOMEPAGE= http://people.ee.ethz.ch/~oetiker/webtools/mrtg/
2000-03-04 19:34:26 -05:00
2006-08-03 19:15:57 -04:00
LIB_DEPENDS= gd.>=18::graphics/gd
1999-03-31 18:25:50 -05:00
RUN_DEPENDS= ::net/p5-SNMP_Session \
::textproc/p5-Pod-Simple
2005-10-22 10:11:23 -04:00
MODULES= converters/libiconv
# GPL
2000-03-04 19:34:26 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2005-10-24 01:12:31 -04:00
WANTLIB= c m png jpeg z
2000-02-12 03:02:07 -05:00
CONFIGURE_STYLE= autoconf
AUTOCONF_VERSION= 2.57
CONFIGURE_ARGS= --with-gd-inc="${LOCALBASE}/include" \
--with-gd-lib="${LOCALBASE}/lib" \
--with-png-inc="${LOCALBASE}/include" \
--with-png-lib="${LOCALBASE}/lib"
2005-10-22 10:11:23 -04:00
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include" \
2005-10-24 01:12:31 -04:00
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib"
1999-02-23 16:59:39 -05:00
2002-10-27 20:38:44 -05:00
NO_REGRESS= Yes
1999-02-23 16:59:39 -05:00
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/mrtg
2001-01-08 14:09:15 -05:00
${INSTALL_DATA_DIR} ${PREFIX}/libdata/perl5/site_perl/Pod
${INSTALL_DATA_DIR} ${PREFIX}/share/mrtg
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/mrtg
${INSTALL_DATA} ${WRKSRC}/images/* ${PREFIX}/share/mrtg
2001-01-08 14:09:15 -05:00
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${PREFIX}/man/man1
${INSTALL_PROGRAM} ${WRKSRC}/bin/rateup ${PREFIX}/bin
cd ${WRKSRC}/doc; ${INSTALL_DATA} *.html *.pod *.txt *.png *.wml \
2000-03-04 19:34:26 -05:00
${PREFIX}/share/doc/mrtg
2001-01-08 14:09:15 -05:00
cd ${WRKSRC}/bin; ${INSTALL_SCRIPT} cfgmaker indexmaker mrtg \
${PREFIX}/bin
cd ${WRKSRC}/lib/mrtg2; ${INSTALL_DATA} MRTG_lib.pm locales_mrtg.pm \
${PREFIX}/libdata/perl5/site_perl/
2001-01-08 14:09:15 -05:00
cd ${WRKSRC}/lib/mrtg2/Pod; ${INSTALL_DATA} *.pm \
${PREFIX}/libdata/perl5/site_perl/Pod
${INSTALL_DATA} ${WRKSRC}/contrib/mrtgmk/cfg/mrtg.cfg \
${PREFIX}/share/examples/mrtg
1999-02-23 16:59:39 -05:00
.include <bsd.port.mk>