update Mon Jan 18 06:37:00 PST 2010
[pkgsrc.git] / net / xtraceroute / Makefile
1 # $NetBSD: Makefile,v 1.52 2010/01/18 09:59:21 wiz Exp $
2 #
3
4 DISTNAME=       xtraceroute-0.8.14
5 PKGREVISION=    10
6 CATEGORIES=     net x11
7 MASTER_SITES=   http://www.dtek.chalmers.se/~d3august/xt/dl/
8 DISTFILES=      ${DISTNAME}${EXTRACT_SUFX} \
9                 ndg_files.tar.gz
10
11 MAINTAINER=     pkgsrc-users@NetBSD.org
12 HOMEPAGE=       http://www.dtek.chalmers.se/~d3august/xt/index.html
13 COMMENT=        Graphical version of traceroute, which traces the route IP packets go
14
15 GNU_CONFIGURE=          yes
16 USE_PKGLOCALEDIR=       yes
17 USE_TOOLS+=             msgfmt
18 USE_FEATURES=           snprintf
19
20 CONFIGURE_ARGS+= --with-gtk-prefix="${BUILDLINK_PREFIX.gtk}"
21 # XXX Actually, Mesa's in X11PREFIX too, but as our tiff is in LOCALBASE
22 # and xtraceroute doesn't have a switch to tell it so (yet?), we abuse
23 # the --with-GL-prefix switch for this.
24 CONFIGURE_ARGS+= --with-GL-prefix=${LOCALBASE:Q}
25 CONFIGURE_ARGS+= --with-lib-MesaGL
26
27 .include "../../mk/bsd.prefs.mk"
28
29 .if !empty(MACHINE_PLATFORM:MIRIX-5*)
30 CONFIGURE_ARGS+=        --with-traceroute=/usr/etc/traceroute
31 .endif
32
33 post-install:
34         ${INSTALL_DATA_DIR} ${PREFIX}/share/xtraceroute
35         ${INSTALL_DATA} ${WRKDIR}/hosts.cache    ${PREFIX}/share/xtraceroute/hosts.cache
36         ${INSTALL_DATA} ${WRKDIR}/networks.cache ${PREFIX}/share/xtraceroute/networks.cache
37
38 .include "../../devel/gettext-lib/buildlink3.mk"
39 .include "../../graphics/tiff/buildlink3.mk"
40 .include "../../graphics/MesaLib/buildlink3.mk"
41 .include "../../graphics/glu/buildlink3.mk"
42 .include "../../x11/gtk/buildlink3.mk"
43 .include "../../x11/gtkglarea/buildlink3.mk"
44
45 .include "../../mk/bsd.pkg.mk"