Ticket #40782: Portfile_wireshark-devel.diff
File Portfile_wireshark-devel.diff, 7.9 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 conflicts qt5 { 54 configure.args-append -DBUILD_qtshark=ON \ 55 -DENABLE_QT5=OFF 56 depends_lib-append port:qt4-mac 57 } 58 variant qt5 conflicts qt4 { 59 configure.args-append -DBUILD_qtshark=ON \ 60 -DENABLE_QT5=ON 61 #waiting for qt5 integration into macports ... 62 # depends_lib-append port:qt5-mac 71 63 } 72 64 73 variant gnutls { 74 configure.args-append --with-gnutls=yes 75 depends_lib-append port:gnutls 65 if {![variant_isset qt4] && ![variant_isset qt5]} { 66 configure.args-append -DBUILD_qtshark=OFF 76 67 } 77 68 78 variant libgcrypt { 79 configure.args-append --with-libgcrypt-prefix=${prefix} 80 depends_lib-append port:libgcrypt 69 variant gtk2 conflicts gtk3 { 70 configure.args-append -DBUILD_wireshark=ON \ 71 -DENABLE_GTK3=OFF 72 depends_lib-append port:gtk2 73 } 74 variant gtk3 conflicts gtk2 { 75 configure.args-append -DBUILD_wireshark=ON \ 76 -DENABLE_GTK3=ON 77 depends_lib-append port:gtk3 78 } 79 if {![variant_isset gtk2] && ![variant_isset gtk3]} { 80 configure.args-append -DBUILD_wireshark=OFF 81 } 82 83 variant adns description {use adns library for async. dns resolution} { 84 configure.args-append -DENABLE_ADNS=ON 85 depends_lib-append port:adns 86 } 87 if {![variant_isset adns]} { 88 configure.args-append -DENABLE_ADNS=OFF 89 } 90 91 variant portaudio { 92 configure.args-append -DENABLE_PORTAUDIO=ON 93 depends_lib-append port:portaudio 94 } 95 if {![variant_isset portaudio]} { 96 configure.args-append -DENABLE_PORTAUDIO=OFF 81 97 } 82 98 83 variant ipv6 { 84 configure.args-append --enable-ipv6 85 configure.args-delete --disable-ipv6 99 variant zlib { 100 configure.args-append -DENABLE_ZLIB=ON 101 depends_lib-append port:zlib 102 } 103 if {![variant_isset zlib]} { 104 configure.args-append -DENABLE_ZLIB=OFF 86 105 } 87 106 88 107 variant lua { 89 configure.args-append - -with-lua=${prefix}108 configure.args-append -DENABLE_LUA=ON 90 109 depends_lib-append port:lua 91 110 } 111 if {![variant_isset lua]} { 112 configure.args-append -DENABLE_LUA=OFF 113 } 92 114 93 variant pcre { 94 configure.args-append --with-pcre=${prefix} 95 configure.args-delete --without-pcre 96 depends_lib-append port:pcre 115 variant libsmi { 116 configure.args-append -DENABLE_SMI=ON 117 depends_lib-append port:libsmi 118 } 119 if {![variant_isset libsmi]} { 120 configure.args-append -DENABLE_SMI=OFF 97 121 } 98 122 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 123 variant gnutls { 124 configure.args-append -DENABLE_GNUTLS=ON 125 depends_lib-append port:gnutls 126 } 127 if {![variant_isset gnutls]} { 128 configure.args-append -DENABLE_GNUTLS=OFF 103 129 } 104 130 105 variant no_ssl { 106 configure.args-append --without-ssl 107 depends_lib-delete port:openssl 131 variant libgcrypt { 132 configure.args-append -DENABLE_GCRYPT=ON 133 depends_lib-append port:libgcrypt 134 } 135 if {![variant_isset libgcrypt]} { 136 configure.args-append -DENABLE_GCRYPT=OFF 108 137 } 109 138 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 139 variant cares description { 140 configure.args-append -DENABLE_CARES=ON 141 depends_lib-append port:c-ares 142 } 143 if {![variant_isset cares]} { 144 configure.args-append -DENABLE_CARES=OFF 114 145 } 115 146 116 variant libsmi { 117 depends_lib-append port:libsmi 118 configure.args-append --with-libsmi 147 variant kerberos5 { 148 configure.args-append -DENABLE_KERBEROS=ON 149 depends_lib-append port:kerberos5 150 } 151 if {![variant_isset kerberos5]} { 152 configure.args-append -DENABLE_KERBEROS=OFF 119 153 } 120 154 121 155 variant python25 description {use python25 for the experimental python interface} conflicts python26 python27 { … … 135 169 136 170 pre-configure { 137 171 if {[variant_isset python25] || [variant_isset python26] || [variant_isset python27]} { 138 configure.args-append --with-python 139 configure.args-delete --without-python 172 configure.args-append -DENABLE_PYTHON=ON 140 173 } 174 141 175 if {[variant_isset python25]} { 142 176 reinplace "s|python-config|python2.5-config|g" ${worksrcpath}/configure 143 177 }