Lines 1-7
Link Here
|
1 |
# Created by: Bill Fumerola <billf@chc-chimes.com> |
1 |
# Created by: Bill Fumerola <billf@chc-chimes.com> |
2 |
# $FreeBSD: head/net/wireshark/Makefile 376887 2015-01-12 21:00:35Z marcus $ |
2 |
# $FreeBSD: head/net/wireshark/Makefile 376887 2015-01-12 21:00:35Z marcus $ |
3 |
|
3 |
|
4 |
PORTNAME?= wireshark |
4 |
PORTNAME= wireshark |
5 |
PORTVERSION= 1.12.3 |
5 |
PORTVERSION= 1.12.3 |
6 |
CATEGORIES= net ipv6 |
6 |
CATEGORIES= net ipv6 |
7 |
MASTER_SITES= http://www.wireshark.org/download/src/ \ |
7 |
MASTER_SITES= http://www.wireshark.org/download/src/ \ |
Lines 12-21
Link Here
|
12 |
http://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ |
12 |
http://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ |
13 |
ftp://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ |
13 |
ftp://ftp.yz.yamagata-u.ac.jp/pub/network/security/wireshark/src/ \ |
14 |
http://wireshark.zing.org/download/src/ |
14 |
http://wireshark.zing.org/download/src/ |
15 |
DISTNAME= ${DATADIR_NAME}-${PORTVERSION} |
|
|
16 |
|
15 |
|
17 |
MAINTAINER= marcus@FreeBSD.org |
16 |
MAINTAINER= marcus@FreeBSD.org |
18 |
COMMENT?= Powerful network analyzer/capture tool |
17 |
COMMENT= Powerful network analyzer/capture tool |
|
|
18 |
|
19 |
LICENSE= GPLv2 |
19 |
|
20 |
|
20 |
DATADIR_NAME= wireshark |
21 |
DATADIR_NAME= wireshark |
21 |
|
22 |
|
Lines 24-29
Link Here
|
24 |
python:build tar:bzip2 |
25 |
python:build tar:bzip2 |
25 |
WANT_GNOME= yes |
26 |
WANT_GNOME= yes |
26 |
USE_OPENSSL= yes |
27 |
USE_OPENSSL= yes |
|
|
28 |
CONFLICTS?= wireshark-qt5-[0-9]* |
29 |
|
27 |
CONFIGURE_ARGS+= --program-transform-name="" \ |
30 |
CONFIGURE_ARGS+= --program-transform-name="" \ |
28 |
--with-ssl=${OPENSSLBASE} \ |
31 |
--with-ssl=${OPENSSLBASE} \ |
29 |
--with-qt=no |
32 |
--with-qt=no |
Lines 51-57
Link Here
|
51 |
.if !defined(LITE) |
54 |
.if !defined(LITE) |
52 |
OPTIONS_DEFINE= RTP SNMP ADNS PCRE IPV6 GEOIP LUA CARES GSSAPI X11 \ |
55 |
OPTIONS_DEFINE= RTP SNMP ADNS PCRE IPV6 GEOIP LUA CARES GSSAPI X11 \ |
53 |
GNUTLS GCRYPT THREADS |
56 |
GNUTLS GCRYPT THREADS |
54 |
OPTIONS_DEFAULT= SNMP ADNS PCRE IPV6 GEOIP GSSAPI X11 |
57 |
|
|
|
58 |
OPTIONS_RADIO= GUI |
59 |
OPTIONS_RADIO_GUI= GTK3 QT5 |
60 |
|
61 |
OPTIONS_DEFAULT?= SNMP ADNS PCRE IPV6 GEOIP GSSAPI X11 GTK3 |
55 |
|
62 |
|
56 |
RTP_DESC= Enable support for playing back RTP streams |
63 |
RTP_DESC= Enable support for playing back RTP streams |
57 |
ADNS_DESC= Enable asynchronous DNS lookup support |
64 |
ADNS_DESC= Enable asynchronous DNS lookup support |
Lines 63-74
Link Here
|
63 |
USE_XORG= x11 |
70 |
USE_XORG= x11 |
64 |
.endif |
71 |
.endif |
65 |
|
72 |
|
66 |
.include <bsd.port.options.mk> |
|
|
67 |
|
68 |
.if ${PORT_OPTIONS:MX11} |
73 |
.if ${PORT_OPTIONS:MX11} |
69 |
PLIST_SUB+= WIRESHARK=bin/wireshark WIRESHARK_MAN="" |
74 |
PLIST_SUB+= WIRESHARK=bin/wireshark WIRESHARK_MAN="" |
70 |
USE_GNOME+= gtk30 |
|
|
71 |
CONFIGURE_ARGS+=--with-gtk3=yes |
72 |
.else |
75 |
.else |
73 |
PLIST_SUB+= WIRESHARK="@comment wireshark not built" \ |
76 |
PLIST_SUB+= WIRESHARK="@comment wireshark not built" \ |
74 |
WIRESHARK_MAN="@comment wireshark not built " |
77 |
WIRESHARK_MAN="@comment wireshark not built " |
Lines 77-82
Link Here
|
77 |
--disable-gtktest |
80 |
--disable-gtktest |
78 |
.endif |
81 |
.endif |
79 |
|
82 |
|
|
|
83 |
.if ${PORT_OPTIONS:MGTK3} |
84 |
USE_GNOME+= gtk30 |
85 |
CONFIGURE_ARGS+= --with-gtk2=no \ |
86 |
--with-gtk3=yes \ |
87 |
--with-qt=no |
88 |
.endif |
89 |
|
90 |
.if ${PORT_OPTIONS:MQT5} |
91 |
CONFIGURE_ARGS+= --with-gtk2=no \ |
92 |
--with-gtk3=no \ |
93 |
--with-qt=yes |
94 |
USE_QT5+= core widgets printsupport buildtools_build |
95 |
PKGNAMESUFFIX+= -qt5 |
96 |
MAKE_ENV+= PATH="${PATH}:${LOCALBASE}/lib/qt5/bin" |
97 |
CONFIGURE_ENV+= PATH="${PATH}:${LOCALBASE}/lib/qt5/bin" |
98 |
.endif |
99 |
|
80 |
GNU_CONFIGURE= yes |
100 |
GNU_CONFIGURE= yes |
81 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
101 |
PLIST_SUB+= PORTVERSION=${PORTVERSION} |
82 |
|
102 |
|
Lines 165-176
Link Here
|
165 |
|
185 |
|
166 |
post-patch: |
186 |
post-patch: |
167 |
@${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g ; \ |
187 |
@${REINPLACE_CMD} -e 's|llua|llua-${LUA_VER}|g ; \ |
168 |
s|-DGDK_PIXBUF_DISABLE_DEPRECATED||g ; \ |
188 |
s|-DGDK_PIXBUF_DISABLE_DEPRECATED||g ; \ |
169 |
s|-Wl,--as-needed|| ' \ |
189 |
s|-Wl,--as-needed|| ' \ |
170 |
${WRKSRC}/configure |
190 |
${WRKSRC}/configure |
171 |
|
191 |
|
172 |
post-install: |
192 |
post-install: |
173 |
${INSTALL_DATA} ${WRKSRC}/image/hi48-app-wireshark.png \ |
193 |
${INSTALL_DATA} ${WRKSRC}/image/hi48-app-wireshark.png \ |
174 |
${STAGEDIR}${DATADIR} |
194 |
${STAGEDIR}${DATADIR} |
|
|
195 |
.if ${PORT_OPTIONS:MQT5} |
196 |
${MV} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-qt ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
197 |
.endif |
175 |
|
198 |
|
176 |
.include <bsd.port.mk> |
199 |
.include <bsd.port.mk> |