aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/ethereal/Makefile5
-rw-r--r--net/wireshark/Makefile5
2 files changed, 10 insertions, 0 deletions
diff --git a/net/ethereal/Makefile b/net/ethereal/Makefile
index 317ad8884863..d5dab7e6cb18 100644
--- a/net/ethereal/Makefile
+++ b/net/ethereal/Makefile
@@ -27,7 +27,12 @@ CONFIGURE_ARGS= --program-transform-name=""
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.if !defined(WITHOUT_X11)
USE_X_PREFIX= yes
+.if defined(WITH_GTK2)
+LIB_DEPENDS+= gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20
+CONFIGURE_ARGS+= --enable-gtk2=yes
+.else
USE_GNOME= gtk12
+.endif
MAN1+= ethereal.1
PLIST_SUB+= ETHEREAL=bin/ethereal
.else
diff --git a/net/wireshark/Makefile b/net/wireshark/Makefile
index 317ad8884863..d5dab7e6cb18 100644
--- a/net/wireshark/Makefile
+++ b/net/wireshark/Makefile
@@ -27,7 +27,12 @@ CONFIGURE_ARGS= --program-transform-name=""
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
.if !defined(WITHOUT_X11)
USE_X_PREFIX= yes
+.if defined(WITH_GTK2)
+LIB_DEPENDS+= gtk-x11-2.0:${PORTSDIR}/x11-toolkits/gtk20
+CONFIGURE_ARGS+= --enable-gtk2=yes
+.else
USE_GNOME= gtk12
+.endif
MAN1+= ethereal.1
PLIST_SUB+= ETHEREAL=bin/ethereal
.else