Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
100 lines (74 sloc) 3.68 KB
# -*- 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
PortSystem 1.0
name sane-backends
version 1.0.28
set upload_tag 9e718daff347826f4cfe21126c8d5091
categories graphics
platforms darwin
# Some content is LGPL-2+ or public-domain, but the package as a whole is GPL-2+
license GPL-2+
maintainers nomaintainer
homepage http://www.sane-project.org/
description Backends for scanner access
long_description These are the backends for the Scanner Access Now \
Easy project. They allow you to access various \
scanners either locally or remotely using saned.
master_sites https://gitlab.com/sane-project/backends/uploads/${upload_tag}/
checksums rmd160 03b8a59b0957f68ab0df8fdecb365ffc1a865e77 \
sha256 31260f3f72d82ac1661c62c5a4468410b89fb2b4a811dabbfcc0350c1346de03 \
size 6753880
depends_build port:pkgconfig
depends_lib port:jpeg \
port:libusb \
port:net-snmp \
port:tiff \
port:zlib
# magicolor backend requires libcrypto from openssl
depends_lib-append path:lib/libcrypto.dylib:openssl
patchfiles patch-configure.diff \
patch-backend-ricoh2_buffer.c.diff
# genesys backend now uses C++11
compiler.cxx_standard 2011
configure.cppflags-append -no-cpp-precomp \
-fno-common
configure.args --disable-avahi \
--without-api-spec \
--without-gphoto2
post-configure {
reinplace -E {s|-arch [a-z0-9_]+||g} \
${worksrcpath}/tools/sane-backends.pc
}
build.env-append LC_CTYPE=C
use_parallel_build no
pre-destroot {
xinstall -d -o root -g admin -m 775 ${destroot}${prefix}/var/lock
}
destroot.keepdirs ${destroot}${prefix}/var/lock
default_variants +avahi
variant disable_localbackends conflicts enable_pnmbackend with_gphoto2 description "turn off compilation of all backends but net" {
depends_lib-delete port:libusb-compat
configure.args-append --disable-local-backends --without-usb
}
variant enable_pnmbackend conflicts disable_localbackends description "enable the pnm backend for testing frontends (possible security risk, see PROBLEMS file)" {
configure.args-append --enable-pnm-backend
}
variant with_gphoto2 conflicts disable_localbackends description "include the gphoto2 backend" {
depends_lib-append port:libexif \
port:libgphoto2 \
port:pkgconfig
configure.args-delete --without-gphoto2
configure.args-append --with-gphoto2
}
variant avahi description "enable Avahi support for saned and the net backend" {
depends_lib-append port:avahi
configure.args-delete --disable-avahi
configure.args-append --enable-avahi
}
# This project uses u_long *everywhere* and doesn't bother including sys/types.h
configure.cppflags-append -include sys/types.h
livecheck.type regex
livecheck.url https://gitlab.com/sane-project/backends/-/tags
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
notes "\
Edit ${prefix}/etc/sane.d/dll.conf to enable only\
specific backends for a noticeable performance gain."
You can’t perform that action at this time.