source: trunk/dports/graphics/sane-backends/Portfile

Last change on this file was 154257, checked in by mf2k@…, 9 months ago

libpiano pianobar sane-backends sane-frontends txt2tags: Ports abandoned (#52241)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 154257 2016-10-25 13:31:50Z ryandesign@macports.org $
3
4PortSystem                  1.0
5
6name                        sane-backends
7version                     1.0.24
8set download_id             3958
9categories                  graphics
10platforms                   darwin
11# Some content is LGPL-2+ or public-domain, but the package as a whole is GPL-2+
12license                     GPL-2+
13maintainers                 nomaintainer
14homepage                    http://www.sane-project.org/
15
16description                 Backends for scanner access
17
18long_description            These are the backends for the Scanner Access Now \
19                            Easy project. They allow you to access various \
20                            scanners either locally or remote using saned.
21
22master_sites                https://alioth.debian.org/frs/download.php/file/${download_id}/
23
24checksums                   rmd160  7a05c5b3d4fc4a88564cb862d4a1b46843026105 \
25                            sha256  27c7085a54f1505d8b551e6f1e69d30e1ee57328b18429bb2225dabf4c45462d
26
27depends_lib                 port:jpeg \
28                            port:libusb-compat \
29                            port:net-snmp \
30                            port:tiff \
31                            port:zlib
32
33patchfiles                  patch-configure.diff
34
35configure.cppflags-append   -no-cpp-precomp \
36                            -fno-common
37
38configure.args              --mandir=${prefix}/share/man \
39                            --with-docdir=${prefix}/share/doc/${name} \
40                            --enable-local-backends \
41                            --enable-libusb \
42                            --disable-latex \
43                            --without-gphoto2
44
45post-configure {
46    reinplace -E {s|-arch [a-z0-9_]+||g} \
47        ${worksrcpath}/tools/sane-config \
48        ${worksrcpath}/tools/sane-backends.pc
49}
50
51build.env-append LC_CTYPE="C"
52
53use_parallel_build          no
54
55pre-destroot {
56    xinstall -d -o root -g admin -m 775 ${destroot}${prefix}/var/lock
57}
58
59destroot.keepdirs ${destroot}${prefix}/var/lock
60
61variant disable_localbackends conflicts enable_pnmbackend with_gphoto2 description "turn off compilation of all backends but net" {
62    depends_lib-delete      port:libusb-compat
63    configure.args-delete   --enable-local-backends --enable-libusb
64    configure.args-append   --disable-local-backends --disable-libusb
65}
66
67variant enable_pnmbackend conflicts disable_localbackends description "enable the pnm backend for testing frontends (possible security risk, see PROBLEMS file)" {
68    configure.args-append   --enable-pnm-backend
69}
70
71variant with_gphoto2 conflicts disable_localbackends description "include the gphoto2 backend" {
72    depends_lib-append      port:libexif \
73                            port:libgphoto2 \
74                            port:pkgconfig
75    configure.args-delete   --without-gphoto2
76    configure.args-append   --with-gphoto2
77}
78
79# This project uses u_long *everywhere* and doesn't bother including sys/types.h
80configure.cppflags-append   -include sys/types.h
81
82livecheck.type              regex
83livecheck.url               https://alioth.debian.org/frs/?group_id=30186
84livecheck.regex             "${name}-(\\d+(?:\\.\\d+)*)"
85
86notes "\
87    Edit ${prefix}/etc/sane.d/dll.conf to enable only\
88    specific backends for a noticeable performance gain."
Note: See TracBrowser for help on using the repository browser.