Ticket #40782: Portfile_wireshark-devel-2.diff
File Portfile_wireshark-devel-2.diff, 7.6 KB (added by hsivank@…, 11 years ago) |
---|
-
Portfile
old new 1 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 2 2 # $Id: Portfile 106559 2013-05-31 00:13:02Z cal@macports.org $ 3 3 4 PortSystem 1.0 4 PortSystem 1.0 5 PortGroup cmake 1.0 5 6 6 7 name wireshark-devel 7 8 epoch 2 8 version 1.9.0 9 revision 3 10 patchfiles patch-configure.diff 9 version 1.11.0 10 revision 0 11 11 categories net 12 12 license {GPL-2 GPL-3} 13 13 maintainers gmail.com:hsivank … … 17 17 distname wireshark-${version} 18 18 dist_subdir wireshark 19 19 20 fetch.type svn 21 svn.revision 52640 22 worksrcdir trunk 23 svn.url http://anonsvn.wireshark.org/wireshark/trunk 24 20 25 long_description A network analyzer that lets you capture and \ 21 26 interactively browse Ethernet frames. \ 22 27 Packet data can be read from a file, or live from a local \ … … 25 30 master_sites http://www.wireshark.org/download/src/ \ 26 31 http://www.wireshark.org/download/src/all-versions/ 27 32 28 use_bzip2 yes33 #use_bzip2 yes 29 34 30 checksums rmd160 56f62e9a1bc2dfedcbd1856dd06c42869a2cdde2\31 sha256 0a21aa84e78de2ae2f758e5f21edf2ec5c26a372fbfbb30a53a9b67a128e4538 35 #checksums rmd160 6335465a428a18a033844d72d7f3bd137aa17434 \ 36 # sha256 64085a564e91edf623570a9ed49588de457ab1e8025aceac3c0b861a8f9b1891 32 37 33 38 conflicts wireshark 34 39 35 40 depends_build port:pkgconfig 36 41 37 depends_lib port:c-ares \ 38 path:lib/pkgconfig/glib-2.0.pc:glib2 \ 39 port:gtk2 \ 42 depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ 40 43 port:openssl \ 41 port:libpcap \ 42 port:kerberos5 \ 43 port:zlib 44 45 configure.args \ 46 --disable-usr-local \ 47 --without-adns \ 48 --with-c-ares=${prefix} \ 49 --without-pcre \ 50 --disable-ipv6 \ 51 --with-pcap=${prefix} \ 52 --with-ssl=${prefix} \ 53 --with-zlib=${prefix} \ 54 --mandir=\\\${prefix}/share/man \ 55 --infodir=\\\${prefix}/share/info \ 56 --without-portaudio \ 57 --disable-warnings-as-errors \ 58 --with-krb5=${prefix} \ 59 --without-gnutls \ 60 --without-python 61 62 configure.ldflags-append "-Wl,-search_paths_first" 63 64 variant adns description {use adns library for async. dns resolution instead of the default c-ares library} { 65 configure.args-delete --without-adns \ 66 --with-c-ares=${prefix} 67 configure.args-append --with-adns=${prefix} \ 68 --without-c-ares 69 depends_lib-delete port:c-ares 70 depends_lib-append port:adns 44 port:libpcap 45 46 configure.args -DCMAKE_INSTALL_RPATH:STRING="${prefix}/lib" \ 47 -DCMAKE_INSTALL_NAME_DIR:STRING="${prefix}/lib" \ 48 -DENABLE_NETLINK=OFF \ 49 -DENABLE_GEOIP=OFF 50 51 default_variants +qt4 +adns +portaudio +zlib +lua +libsmi +gnutls +libgcrypt +cares +kerberos5 52 53 variant qt4 { 54 configure.args-append -DBUILD_qtshark=ON \ 55 -DENABLE_QT5=OFF 56 depends_lib-append port:qt4-mac 71 57 } 72 58 73 variant gnutls { 74 configure.args-append --with-gnutls=yes 75 depends_lib-append port:gnutls 59 if {![variant_isset qt4]} { 60 configure.args-append -DBUILD_qtshark=OFF 76 61 } 77 62 78 variant libgcrypt { 79 configure.args-append --with-libgcrypt-prefix=${prefix} 80 depends_lib-append port:libgcrypt 63 variant gtk2 conflicts gtk3 { 64 configure.args-append -DBUILD_wireshark=ON \ 65 -DENABLE_GTK3=OFF 66 depends_lib-append port:gtk2 67 } 68 variant gtk3 conflicts gtk2 { 69 configure.args-append -DBUILD_wireshark=ON \ 70 -DENABLE_GTK3=ON 71 depends_lib-append port:gtk3 72 } 73 if {![variant_isset gtk2] && ![variant_isset gtk3]} { 74 configure.args-append -DBUILD_wireshark=OFF 75 } 76 77 variant adns description {use adns library for async. dns resolution} { 78 configure.args-append -DENABLE_ADNS=ON 79 depends_lib-append port:adns 80 } 81 if {![variant_isset adns]} { 82 configure.args-append -DENABLE_ADNS=OFF 81 83 } 82 84 83 variant ipv6 { 84 configure.args-append --enable-ipv6 85 configure.args-delete --disable-ipv6 85 variant portaudio { 86 configure.args-append -DENABLE_PORTAUDIO=ON 87 depends_lib-append port:portaudio 88 } 89 if {![variant_isset portaudio]} { 90 configure.args-append -DENABLE_PORTAUDIO=OFF 91 } 92 93 variant zlib { 94 configure.args-append -DENABLE_ZLIB=ON 95 depends_lib-append port:zlib 96 } 97 if {![variant_isset zlib]} { 98 configure.args-append -DENABLE_ZLIB=OFF 86 99 } 87 100 88 101 variant lua { 89 configure.args-append - -with-lua=${prefix}102 configure.args-append -DENABLE_LUA=ON 90 103 depends_lib-append port:lua 91 104 } 105 if {![variant_isset lua]} { 106 configure.args-append -DENABLE_LUA=OFF 107 } 92 108 93 variant pcre { 94 configure.args-append --with-pcre=${prefix} 95 configure.args-delete --without-pcre 96 depends_lib-append port:pcre 109 variant libsmi { 110 configure.args-append -DENABLE_SMI=ON 111 depends_lib-append port:libsmi 112 } 113 if {![variant_isset libsmi]} { 114 configure.args-append -DENABLE_SMI=OFF 97 115 } 98 116 99 variant rtp description {add rtp support with portaudio} { 100 configure.args-append --with-portaudio=${prefix} 101 configure.args-delete --without-portaudio 102 depends_lib-append port:portaudio 117 variant gnutls { 118 configure.args-append -DENABLE_GNUTLS=ON 119 depends_lib-append port:gnutls 120 } 121 if {![variant_isset gnutls]} { 122 configure.args-append -DENABLE_GNUTLS=OFF 103 123 } 104 124 105 variant no_ssl { 106 configure.args-append --without-ssl 107 depends_lib-delete port:openssl 125 variant libgcrypt { 126 configure.args-append -DENABLE_GCRYPT=ON 127 depends_lib-append port:libgcrypt 128 } 129 if {![variant_isset libgcrypt]} { 130 configure.args-append -DENABLE_GCRYPT=OFF 108 131 } 109 132 110 variant no_gui description {Disable GTK GUI} { 111 depends_lib-delete port:gtk2 112 configure.args-delete --disable-gtk2 113 configure.args-append --disable-wireshark 133 variant cares description { 134 configure.args-append -DENABLE_CARES=ON 135 depends_lib-append port:c-ares 136 } 137 if {![variant_isset cares]} { 138 configure.args-append -DENABLE_CARES=OFF 114 139 } 115 140 116 variant libsmi { 117 depends_lib-append port:libsmi 118 configure.args-append --with-libsmi 141 variant kerberos5 { 142 configure.args-append -DENABLE_KERBEROS=ON 143 depends_lib-append port:kerberos5 144 } 145 if {![variant_isset kerberos5]} { 146 configure.args-append -DENABLE_KERBEROS=OFF 119 147 } 120 148 121 149 variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 { … … 135 163 136 164 pre-configure { 137 165 if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { 138 configure.args-append --with-python 139 configure.args-delete --without-python 166 configure.args-append -DENABLE_PYTHON=ON 140 167 } 168 141 169 if {[variant_isset python25]} { 142 170 reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure 143 171 }