Ticket #36672: netatalk.diff
File netatalk.diff, 1.6 KB (added by ryandesign (Ryan Carsten Schmidt), 12 years ago) |
---|
-
Portfile
4 4 5 5 name netatalk 6 6 version 2.0.5 7 revision 37 revision 4 8 8 categories net 9 9 platforms darwin 10 10 maintainers rsrc.de:ralph … … 33 33 path:bin/perl:perl5 \ 34 34 port:libiconv 35 35 36 variant noat description {Disable Appletalk support} {37 patchfiles-append patch-configure38 configure.args-append --disable-ddp39 }40 41 platform darwin 10 {42 pre-patch {43 # Only used on Mac OS X 10.6.44 puts "AppleTalk has been removed from Mac OS X 10.6+."45 puts "Building without AppleTalk support."46 patchfiles-append patch-configure47 configure.args-append --disable-ddp48 }49 }50 51 36 post-patch { 52 37 reinplace "s|__PREFIX__|${prefix}|g" \ 53 38 ${worksrcpath}/include/atalk/paths.h … … 75 60 system "touch ${destroot}${prefix}/var/run/netatalk/afpd" 76 61 destroot.keepdirs ${destroot}${prefix}/var/spool/netatalk 77 62 } 63 64 variant appletalk conflicts noat description {Enable AppleTalk support} { 65 pre-configure { 66 if {${os.platform} == "darwin" && ${os.major} >= 10} { 67 return -code error "AppleTalk support cannot be used on OS X 10.6 or later" 68 } 69 } 70 } 71 72 if {![variant_isset appletalk]} { 73 patchfiles-append patch-configure 74 configure.args-append --disable-ddp 75 } 76 77 variant noat conflicts appletalk description {Legacy compatibility variant} {} 78 79 if {${os.platform} == "darwin" && ${os.major} >= 10 || [variant_isset noat]} { 80 default_variants -appletalk 81 } else { 82 default_variants +appletalk 83 }