Ticket #31392: sane-backends.diff
File sane-backends.diff, 3.5 KB (added by aguynamedryan+macports@…, 13 years ago) |
---|
-
Portfile
old new 4 4 5 5 name sane-backends 6 6 version 1.0.22 7 revision 17 revision 2 8 8 set download_id 3503 9 9 categories graphics 10 10 platforms darwin … … 26 26 rmd160 524713474a819331d0179fa642fef710d073f1d1 27 27 28 28 depends_lib port:jpeg \ 29 port:libusb-compat \30 29 port:net-snmp \ 31 30 port:tiff \ 32 31 port:zlib … … 38 37 39 38 configure.args --mandir=${prefix}/share/man \ 40 39 --with-docdir=${prefix}/share/doc/${name} \ 41 -- enable-local-backends \42 -- enable-libusb \40 --disable-local-backends \ 41 --disable-libusb \ 43 42 --disable-latex \ 44 43 --without-gphoto2 45 44 46 45 use_parallel_build yes 47 46 47 default_variants +localbackends 48 48 49 pre-destroot { 49 50 xinstall -d -o root -g admin -m 775 ${destroot}${prefix}/var/lock 50 51 } 51 52 52 53 destroot.keepdirs ${destroot}${prefix}/var/lock 53 54 54 variant disable_localbackends conflicts enable_pnmbackend with_gphoto2 description "turn off compilation of all backends but net" { 55 depends_lib-delete port:libusb-compat 56 configure.args-delete --enable-local-backends --enable-libusb 57 configure.args-append --disable-local-backends --disable-libusb 55 variant disable_localbackends conflicts localbackends description { Legacy compatibility variant } {} 56 if {[variant_isset disable_localbackends]} { 57 default_variants -localbackends 58 } else { 59 default_variants +localbackends 60 } 61 62 variant localbackends conflicts enable_pnmbackend with_gphoto2 description "turn off compilation of all backends but net" { 63 depends_lib-append port:libusb-compat 64 configure.args-delete --disable-local-backends --disable-libusb 65 configure.args-append --enable-local-backends --enable-libusb 58 66 } 59 67 60 variant enable_pnmbackend conflicts disable_localbackendsdescription "enable the pnm backend for testing frontends (possible security risk, see PROBLEMS file)" {68 variant pnm requires localbackends conflicts enable_pnmbackend with_gphoto2 description "enable the pnm backend for testing frontends (possible security risk, see PROBLEMS file)" { 61 69 configure.args-append --enable-pnm-backend 62 70 } 71 variant enable_pnmbackend requires pnm description { Legacy compatibility variant } {} 63 72 64 variant with_gphoto2 conflicts disable_localbackendsdescription "include the gphoto2 backend" {73 variant gphoto2 requires localbackends conflicts enable_pnmbackend with_gphoto2 description "include the gphoto2 backend" { 65 74 depends_lib-append port:libexif \ 66 75 port:libgphoto2 \ 67 76 port:pkgconfig 68 77 configure.args-delete --without-gphoto2 69 78 configure.args-append --with-gphoto2 70 79 } 80 variant with_gphoto2 requires gphoto2 description { Legacy compatibility variant } {} 71 81 72 82 # This project uses u_long *everywhere* and doesn't bother including sys/types.h 73 83 configure.cppflags-append -include sys/types.h … … 79 89 notes "\ 80 90 Edit ${prefix}/etc/sane.d/dll.conf to enable only\ 81 91 specific backends for a noticeable performance gain." 92