Ticket #11507: sane-backends.diff
File sane-backends.diff, 2.3 KB (added by takanori@…, 18 years ago) |
---|
-
Portfile
3 3 PortSystem 1.0 4 4 name sane-backends 5 5 version 1.0.17 6 revision 1 6 7 categories graphics 7 8 maintainers hama@hamazone.de 8 9 description Backends for scanner access … … 14 15 locally or remote using saned. 15 16 16 17 master_sites ftp://ftp.sane-project.org/pub/sane/${distname}/ \ 17 http://alioth.debian.org/download.php/1347/ 18 ftp://ftp.sane-project.org/pub/sane/old-versions/${distname}/ \ 19 http://alioth.debian.org/frs/download.php/1347/ 18 20 19 21 checksums md5 b51c10da8a81a04e1bae88c9e6556df2 \ 20 21 22 sha1 a73e01575458a5fb7dc265cea50c6740555e1711 \ 23 rmd160 43e440712e9da676e235dc6148c5dda347c30e22 22 24 23 25 patchfiles patch-configure 24 26 25 depends_lib lib:libjpeg:jpeg 27 depends_lib port:jpeg \ 28 port:libusb 26 29 27 30 configure.env LDFLAGS="-L${prefix}/lib" \ 28 31 CPPFLAGS="-I${prefix}/include -no-cpp-precomp -fno-common" 29 32 30 33 configure.args --mandir=${prefix}/share/man --without-gphoto2 \ 31 -- disable-local-backends34 --enable-local-backends 32 35 33 default_variants +local-backends 36 #turn off compilation of all backends but net 37 variant disable_localbackends { 38 depends_lib-delete port:libusb 39 configure.args-delete --enable-local-backends 40 configure.args-append --disable-local-backends 41 } 34 42 35 variant local-backends { depends_lib-append lib:libusb:libusb 36 configure.args-delete --disable-local-backends } 43 #enable the pnm backend for testing frontends 44 #(possible security risk, see PROBLEMS file) 45 variant enable_pnmbackend { 46 configure.args-append --enable-pnm-backend 47 } 37 48 38 variant pnm-backend { configure.args-append --enable-pnm-backend } 49 #include the gphoto2 backend 50 variant with_gphoto2 { 51 depends_lib-append port:libexif \ 52 port:libgphoto2 \ 53 port:pkgconfig 54 configure.args-delete --without-gphoto2 55 configure.args-append --with-gphoto2 56 }