Ticket #32168: wireshark-Portfile.patch
File wireshark-Portfile.patch, 9.1 KB (added by jpo@…, 13 years ago) |
---|
-
Portfile
old new 1 # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 1 2 # $Id: Portfile 87401 2011-11-19 20:58:36Z ricci@macports.org $ 2 3 3 4 PortSystem 1.0 4 name 5 version 6 revision 07 categories 8 maintainers 9 description 10 homepage 11 platforms 5 name wireshark 6 version 1.6.4 7 revision 1 8 categories net 9 maintainers darkart.com:opendarwin.org 10 description Graphical network analyzer and capture tool 11 homepage http://wireshark.org/ 12 platforms darwin 12 13 13 14 long_description A network analyzer that lets you capture and \ 14 15 16 15 interactively browse Ethernet frames. \ 16 Packet data can be read from a file, or live from a local \ 17 network interface. 17 18 18 master_sites http://www.wireshark.org/download/src/\19 19 master_sites http://www.wireshark.org/download/src/ \ 20 http://www.wireshark.org/download/src/all-versions/ 20 21 21 22 checksums md5 a348521c514fcdd890d974f2a0b59db3 \ 22 23 sha1 8abd7681e8c05841b7cf31d5dc83c1092c54e79f \ 23 24 rmd160 9437c416a5963aee1c049c0275bdfd3edd7488e8 24 25 25 use_bzip2 26 use_bzip2 yes 26 27 27 conflicts 28 conflicts wireshark-devel 28 29 29 depends_build 30 31 depends_lib 32 33 34 35 36 37 38 39 40 configure.args 41 42 43 44 45 46 47 48 49 50 51 52 53 54 --without-gnutls\55 30 depends_build \ 31 port:pkgconfig 32 depends_lib \ 33 port:bzip2 \ 34 port:c-ares \ 35 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 36 port:gtk2 \ 37 port:openssl \ 38 port:libpcap \ 39 port:zlib 40 41 configure.args \ 42 --without-libsmi \ 43 --disable-usr-local \ 44 --without-adns \ 45 --with-c-ares=${prefix} \ 46 --without-pcre \ 47 --disable-ipv6 \ 48 --with-pcap=${prefix} \ 49 --with-ssl=${prefix} \ 50 --with-zlib=${prefix} \ 51 --mandir=\\\${prefix}/share/man \ 52 --infodir=\\\${prefix}/share/info \ 53 --without-portaudio \ 54 --disable-warnings-as-errors \ 55 --without-gnutls \ 56 --without-python 56 57 57 58 configure.ldflags-append "-Wl,-search_paths_first" 58 59 59 60 pre-destroot { 60 61 62 63 64 65 66 67 68 69 70 71 61 xinstall -d ${destroot}${prefix}/include/wireshark/epan/crypt/ 62 xinstall -d ${destroot}${prefix}/include/wireshark/epan/dfilter/ 63 xinstall -d ${destroot}${prefix}/include/wireshark/epan/dissectors/ 64 xinstall -d ${destroot}${prefix}/include/wireshark/epan/ftypes/ 65 xinstall -d ${destroot}${prefix}/include/wireshark/wiretap/ 66 xinstall -m 644 -W ${worksrcpath}/ color.h config.h register.h ${destroot}${prefix}/include/wireshark/ 67 eval xinstall -m 644 [glob ${worksrcpath}/epan/*.h] ${destroot}${prefix}/include/wireshark/epan/ 68 eval xinstall -m 644 [glob ${worksrcpath}/epan/crypt/*.h] ${destroot}${prefix}/include/wireshark/epan/crypt/ 69 eval xinstall -m 644 [glob ${worksrcpath}/epan/dfilter/*.h] ${destroot}${prefix}/include/wireshark/epan/dfilter/ 70 eval xinstall -m 644 [glob ${worksrcpath}/epan/dissectors/*.h] ${destroot}${prefix}/include/wireshark/epan/dissectors/ 71 eval xinstall -m 644 [glob ${worksrcpath}/epan/ftypes/*.h] ${destroot}${prefix}/include/wireshark/epan/ftypes/ 72 eval xinstall -m 644 [glob ${worksrcpath}/wiretap/*.h] ${destroot}${prefix}/include/wireshark/wiretap/ 72 73 } 73 74 74 75 if {${configure.compiler} == "clang"} { 75 76 configure.compiler llvm-gcc-4.2 76 77 } 77 78 78 79 variant adns description {use adns library for async. dns resolution instead of the default c-ares library} { 79 configure.args-append--with-adns=${prefix} \80 81 configure.args-delete--without-adns \82 83 depends_lib-appendport:adns80 configure.args-append --with-adns=${prefix} \ 81 --without-c-ares 82 configure.args-delete --without-adns \ 83 --with-c-ares=${prefix} 84 depends_lib-append port:adns 84 85 } 85 86 86 87 variant gnutls { 87 configure.args-append--with-gnutls=yes88 depends_lib-appendport:gnutls88 configure.args-append --with-gnutls=yes 89 depends_lib-append port:gnutls 89 90 } 90 91 91 92 variant libgcrypt { 92 configure.args-append--with-libgcrypt-prefix=${prefix}93 depends_lib-appendport:libgcrypt93 configure.args-append --with-libgcrypt-prefix=${prefix} 94 depends_lib-append port:libgcrypt 94 95 } 95 96 96 97 variant ipv6 { 97 configure.args-append--enable-ipv698 configure.args-delete--disable-ipv698 configure.args-append --enable-ipv6 99 configure.args-delete --disable-ipv6 99 100 } 100 101 101 variant lua { 102 configure.args-append --with-lua=${prefix} 103 depends_lib-append port:lua 102 variant libsmi { 103 configure.args-append --with-libsmi=${prefix} 104 configure.args-delete --without-libsmi 105 depends_lib-append port:libsmi 104 106 } 105 107 106 variant libsmi { 107 configure.args-append --with-libsmi=${prefix} 108 configure.args-delete --without-libsmi 109 depends_lib-append port:libsmi 108 variant lua { 109 configure.args-append --with-lua=${prefix} 110 depends_lib-append port:lua 110 111 } 111 112 112 113 variant pcre { 113 configure.args-append--with-pcre=${prefix}114 configure.args-delete--without-pcre115 depends_lib-appendport:pcre114 configure.args-append --with-pcre=${prefix} 115 configure.args-delete --without-pcre 116 depends_lib-append port:pcre 116 117 } 117 118 118 119 variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 { 119 configure.args-append--with-python=${prefix}120 configure.args-delete--without-python121 depends_lib-appendport:python25120 configure.args-append --with-python=${prefix} 121 configure.args-delete --without-python 122 depends_lib-append port:python25 122 123 } 123 124 124 125 variant python26 description {use python26 for the experimental python interface} conflicts python25 python27 { 125 configure.args-append--with-python=${prefix}126 configure.args-delete--without-python127 depends_lib-appendport:python26126 configure.args-append --with-python=${prefix} 127 configure.args-delete --without-python 128 depends_lib-append port:python26 128 129 } 129 130 130 131 variant python27 description {use python27 for the experimental python interface} conflicts python25 python26 { 131 configure.args-append--with-python=${prefix}132 configure.args-delete--without-python133 depends_lib-appendport:python27132 configure.args-append --with-python=${prefix} 133 configure.args-delete --without-python 134 depends_lib-append port:python27 134 135 } 135 136 136 137 variant rtp description {add rtp support with portaudio} { 137 138 139 138 configure.args-append --with-portaudio=${prefix} 139 configure.args-delete --without-portaudio 140 depends_lib-append port:portaudio 140 141 } 141 142 142 143 variant no_ssl { 143 144 depends_lib-deleteport:openssl144 configure.args-append --without-ssl 145 depends_lib-delete port:openssl 145 146 } 146 147 147 variant no_x11 148 depends_lib-deleteport:gtk2149 configure.args-delete--disable-gtk2150 configure.args-append--disable-wireshark148 variant no_x11 { 149 depends_lib-delete port:gtk2 150 configure.args-delete --disable-gtk2 151 configure.args-append --disable-wireshark 151 152 } 152 153 154 default_variants +ipv6 +libgcrypt +libsmi 155 153 156 # 154 157 ##EOF