summaryrefslogtreecommitdiff
path: root/net/mtr
diff options
context:
space:
mode:
authorAde Lovett <ade@FreeBSD.org>2001-05-08 00:58:37 +0000
committerAde Lovett <ade@FreeBSD.org>2001-05-08 00:58:37 +0000
commit08655d47b774f8ed50d1b4d2d271e5372a0c8677 (patch)
tree3f86d6b2956307926172a4087c197a348d9b414a /net/mtr
parentFix broken ordering and remove sample directory. (diff)
Fix build when no GTK is present, or not requested.
Approved by: maintainer
Notes
Notes: svn path=/head/; revision=42386
Diffstat (limited to 'net/mtr')
-rw-r--r--net/mtr/Makefile2
-rw-r--r--net/mtr/files/kill-gtk12
2 files changed, 14 insertions, 0 deletions
diff --git a/net/mtr/Makefile b/net/mtr/Makefile
index 8b22b733ddb3..4ef10f5d023d 100644
--- a/net/mtr/Makefile
+++ b/net/mtr/Makefile
@@ -7,6 +7,7 @@
PORTNAME= mtr
PORTVERSION= 0.42
+PORTREVISION= 1
CATEGORIES= net ipv6
MASTER_SITES= ftp://ftp.bitwizard.nl/mtr/ \
http://www.giovannelli.it/~gmarco/files/
@@ -35,6 +36,7 @@ CONFIGURE_ARGS+=--disable-ipv6
USE_XLIB= yes
USE_GTK= yes
.else
+EXTRA_PATCHES= ${FILESDIR}/kill-gtk
CONFIGURE_ARGS+=--with-gtk-prefix=/nopath
.endif
diff --git a/net/mtr/files/kill-gtk b/net/mtr/files/kill-gtk
new file mode 100644
index 000000000000..30155f7a354a
--- /dev/null
+++ b/net/mtr/files/kill-gtk
@@ -0,0 +1,12 @@
+--- configure.in.orig Tue May 8 00:53:46 2001
++++ configure.in Tue May 8 00:54:12 2001
+@@ -41,7 +41,4 @@
+
+-AM_PATH_GTK(1.0.0, CFLAGS="$CFLAGS $GTK_CFLAGS"
+- LIBS="$LIBS $GTK_LIBS",
+- AC_MSG_WARN(Building without GTK+ display support)
+- AC_DEFINE(NO_GTK)
+- GTK_OBJ=)
++AC_DEFINE(NO_GTK)
++GTK_OBJ=
+