openbsd-ports/net/mtr/Makefile

56 lines
1.3 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.69 2019/08/21 15:23:42 sthen Exp $
COMMENT= network diagnostic tool, similar to ping and traceroute
1999-01-27 20:49:32 +00:00
GH_ACCOUNT= traviscross
GH_PROJECT= mtr
GH_TAGNAME= v0.93
EPOCH= 0
1999-01-27 20:49:32 +00:00
CATEGORIES= net
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
1999-01-27 20:49:32 +00:00
HOMEPAGE= https://www.bitwizard.nl/mtr/
# GPLv2+
PERMIT_PACKAGE= yes
# diff for pledge(), not yet enabled
WANTLIB += c m curses
2000-02-12 08:02:07 +00:00
FLAVORS= gtk
FLAVOR?=
CONFIGURE_STYLE= autoreconf
AUTORECONF= ${WRKSRC}/bootstrap.sh
AUTOCONF_VERSION= 2.69
AUTOMAKE_VERSION= 1.15
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
MODULES= lang/python # for tests only
MODPY_BUILDDEP= No
MODPY_RUNDEP= No
TEST_DEPENDS= ${MODPY_RUN_DEPENDS}
.if ${FLAVOR} == "gtk"
2002-07-07 10:50:52 +00:00
CONFIGURE_ARGS+= --with-gtk-prefix=${LOCALBASE}
2010-11-19 22:31:32 +00:00
LIB_DEPENDS+= x11/gtk+2
WANTLIB += X11 Xcomposite Xcursor Xdamage Xext Xfixes Xi Xinerama
WANTLIB += Xrandr Xrender atk-1.0 cairo fontconfig freetype gdk-x11-2.0
WANTLIB += gdk_pixbuf-2.0 gio-2.0 glib-2.0 gobject-2.0 gtk-x11-2.0
WANTLIB += intl pango-1.0 pangocairo-1.0 pangoft2-1.0 pthread z
.else
CONFIGURE_ARGS+= --without-glib \
--without-gtk
.endif
1999-01-27 20:49:32 +00:00
pre-test:
ln -fs ${MODPY_BIN} ${WRKDIR}/bin/python
post-extract:
printf '#!/bin/sh\necho -n ${GH_TAGNAME:S/v//}\n' > ${WRKSRC}/build-aux/git-version-gen
1999-01-27 20:49:32 +00:00
.include <bsd.port.mk>