2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright (c) 2014 Alexander Pyhalov
16 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_VERSION
= 0.999
21 COMPONENT_SUMMARY
= Graphical scanning frontend for the SANE scanner interface
22 COMPONENT_PROJECT_URL
= http
://www.xsane.org
23 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
24 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
25 COMPONENT_ARCHIVE_HASH
= \
26 sha256
:5782d23e67dc961c81eef13a87b17eb0144cae3d1ffc5cf7e0322da751482b4b
27 COMPONENT_ARCHIVE_URL
= http
://www.xsane.org
/download
/$(COMPONENT_ARCHIVE
)
28 COMPONENT_FMRI
= image
/scanner
/xsane
29 COMPONENT_CLASSIFICATION
= Applications
/System Utilities
30 COMPONENT_LICENSE
= GPLv2
31 COMPONENT_LICENSE_FILE
= xsane.COPYING
33 TEST_TARGET
= $(NO_TESTS
)
34 include $(WS_MAKE_RULES
)/common.mk
38 # build with the distribution preferred libjpeg implementation
39 CFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CFLAGS
)
40 CXXFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CXXFLAGS
)
41 LDFLAGS
+= $(JPEG_LDFLAGS
)
44 LDFLAGS
+=-lnsl
-lsocket
46 COMPONENT_PREP_ACTION
= (chmod
-R u
+rw
$(SOURCE_DIR
))
48 # Missing files in build dir for configure without this.
49 COMPONENT_PRE_CONFIGURE_ACTION
= ( cp
-a
$(SOURCE_DIR
)/* $(@D
))
51 CONFIGURE_SCRIPT
=$(@D
)/configure
53 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
54 CONFIGURE_OPTIONS
+= --libexecdir
=/usr
/lib
55 CONFIGURE_OPTIONS
+= --localstatedir
=/var
/lib
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
59 REQUIRED_PACKAGES
+= image
/editor
/gimp
60 REQUIRED_PACKAGES
+= image
/library
/libpng16
61 REQUIRED_PACKAGES
+= image
/library
/libtiff
62 REQUIRED_PACKAGES
+= image
/scanner
/xsane
/sane-backends
63 REQUIRED_PACKAGES
+= library
/desktop
/gtk2
64 REQUIRED_PACKAGES
+= library
/glib2
65 REQUIRED_PACKAGES
+= library
/lcms2
66 REQUIRED_PACKAGES
+= library
/zlib
67 REQUIRED_PACKAGES
+= system
/library
68 REQUIRED_PACKAGES
+= system
/library
/math