2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2017 Alexander Pyhalov
17 USE_COMMON_TEST_MASTER
= yes
18 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
22 COMPONENT_VERSION
= 4.7.0
23 COMPONENT_SUMMARY
= libtiff
- library for reading and writing TIFF
24 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
25 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
26 COMPONENT_ARCHIVE_HASH
= sha256
:67160e3457365ab96c5b3286a0903aa6e78bdc44c4bc737d2e486bcecb6ba976
27 COMPONENT_ARCHIVE_URL
= https
://download.osgeo.org
/libtiff
/$(COMPONENT_ARCHIVE
)
28 COMPONENT_PROJECT_URL
= https
://www.simplesystems.org
/libtiff
/
29 COMPONENT_FMRI
= image
/library
/libtiff
30 COMPONENT_CLASSIFICATION
= System
/Multimedia Libraries
31 COMPONENT_LICENSE
= BSD-like
32 COMPONENT_LICENSE_FILE
= LICENSE.md
34 include $(WS_MAKE_RULES
)/common.mk
36 # build with the distribution preferred libjpeg implementation
37 CFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CFLAGS
)
38 CXXFLAGS
+= $(JPEG_CPPFLAGS
) $(JPEG_CXXFLAGS
)
39 LDFLAGS
+= $(JPEG_LDFLAGS
)
41 CONFIGURE_OPTIONS
+= --libexecdir
=$(CONFIGURE_LIBDIR.
$(BITS
))
42 CONFIGURE_OPTIONS
+= --disable-static
43 CONFIGURE_OPTIONS
+= --disable-cxx
44 CONFIGURE_OPTIONS
+= --disable-dependency-tracking
46 COMPONENT_POST_INSTALL_ACTION
= \
47 (cd
$(PROTOUSRDIR
) ; \
48 $(MV
) include/tiffconf.h
include/tiffconf-
$(BITS
).h
)
50 # Needed for "gmake test" to work successfully.
51 # If SHELLOPTS is exported (as it is by the userland makefiles),
52 # then all shell options get exported to child invocations of bash,
53 # which results in test failures due to nounset and xtrace being
54 # set unexpectedly, and errors such as "$1: unbound variable" and
55 # diffs failing due to script tracing in output files.
58 COMPONENT_TEST_ENV
+= PATH
=$(PATH.gnu
)
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES
+= $(JPEG_IMPLEM_PKG
)
62 REQUIRED_PACKAGES
+= compress
/xz
63 REQUIRED_PACKAGES
+= compress
/zstd
64 REQUIRED_PACKAGES
+= image
/library
/libjpeg-turbo
65 REQUIRED_PACKAGES
+= library
/libwebp
66 REQUIRED_PACKAGES
+= library
/zlib
67 REQUIRED_PACKAGES
+= system
/library
68 REQUIRED_PACKAGES
+= system
/library
/math
69 REQUIRED_PACKAGES
+= x11
/library
/freeglut