4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2019, Michal Nowak
23 # Copyright (c) 2023, Klaus Ziegler
26 include ..
/..
/..
/make-rules
/shared-macros.mk
28 COMPONENT_NAME
= sane-backends
29 COMPONENT_VERSION
= 1.1.1
31 COMPONENT_SUMMARY
= SANE library and backends
32 COMPONENT_PROJECT_URL
= http
://www.sane-project.org
/
33 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
35 COMPONENT_ARCHIVE_HASH
= sha256
:dd4b04c37a42f14c4619e8eea6a957f4c7c617fe59e32ae2872b373940a8b603
36 COMPONENT_ARCHIVE_URL
= https
://gitlab.com
/sane-project
/backends
/uploads
/7d30fab4e115029d91027b6a58d64b43
/$(COMPONENT_ARCHIVE
)
37 COMPONENT_FMRI
= image
/scanner
/xsane
/sane-backends
38 COMPONENT_CLASSIFICATION
=System
/Libraries
39 COMPONENT_LICENSE
= GPLv2
+ and GPLv2
+ with exceptions and Public Domain and IJG and LGPLv2
+ and MIT
40 COMPONENT_LICENSE_FILE
= LICENSE
42 include $(WS_MAKE_RULES
)/common.mk
44 # gcc-14 complains about these
45 CFLAGS
+= -Wno-error
=implicit-function-declaration
46 CFLAGS
+= -Wno-error
=int-conversion
48 LDFLAGS
+= -lnsl
-lsocket
50 CONFIGURE_OPTIONS
+= --disable-locking
51 CONFIGURE_OPTIONS
+= --enable-pthread
52 CONFIGURE_OPTIONS
+= --with-gphoto2
53 CONFIGURE_OPTIONS
+= --with-usb
54 CONFIGURE_OPTIONS
+= --without-systemd
56 COMPONENT_TEST_ENV
+= PATH
="$(PATH.gnu)"
58 # Auto-generated dependencies
59 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
60 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
61 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
62 REQUIRED_PACKAGES
+= image
/library
/libpng16
63 REQUIRED_PACKAGES
+= image
/library
/libtiff
64 REQUIRED_PACKAGES
+= library
/desktop
/cairo
65 REQUIRED_PACKAGES
+= library
/glib2
66 REQUIRED_PACKAGES
+= library
/libgphoto2-2
67 REQUIRED_PACKAGES
+= library
/libpoppler
68 REQUIRED_PACKAGES
+= library
/libusb-1
69 REQUIRED_PACKAGES
+= library
/libxml2
70 REQUIRED_PACKAGES
+= shell/ksh93
71 REQUIRED_PACKAGES
+= system
/library
72 REQUIRED_PACKAGES
+= system
/library
/math
73 REQUIRED_PACKAGES
+= system
/management
/snmp
/net-snmp
74 REQUIRED_PACKAGES
+= system
/network
/avahi
75 REQUIRED_PACKAGES
+= web
/curl