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 2015 Alexander Pyhalov
13 # Copyright 2016 Jim Klimov
14 # Copyright 2019 Michal Nowak
18 USE_DEFAULT_TEST_TRANSFORMS
= yes
19 include ..
/..
/..
/make-rules
/shared-macros.mk
21 COMPONENT_NAME
= libpng
22 COMPONENT_VERSION_SUP
= 1
23 COMPONENT_VERSION_MAJ
= 6
24 COMPONENT_VERSION_MIN
= 44
25 COMPONENT_VERSION_PAT
= 0
26 COMPONENT_VERSION
= $(COMPONENT_VERSION_SUP
).
$(COMPONENT_VERSION_MAJ
).
$(COMPONENT_VERSION_MIN
)
27 # The XY in "libpngXY" file and directory names
28 COMPONENT_VERSION_TAG
=$(COMPONENT_VERSION_SUP
)$(COMPONENT_VERSION_MAJ
)
29 # Suffix of shared libs:
30 COMPONENT_VERSION_SONAME
=$(COMPONENT_VERSION_TAG
).
$(COMPONENT_VERSION_MIN
).
$(COMPONENT_VERSION_PAT
)
31 COMPONENT_PROJECT_URL
= http
://www.libpng.org
/pub
/png
/
32 COMPONENT_SUMMARY
= Portable Network Graphics library version
$(COMPONENT_VERSION
)
33 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
34 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
35 COMPONENT_ARCHIVE_HASH
= sha256
:60c4da1d5b7f0aa8d158da48e8f8afa9773c1c8baa5d21974df61f1886b8ce8e
36 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/libpng
/files
/libpng16
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
37 COMPONENT_FMRI
= image
/library
/libpng16
38 COMPONENT_CLASSIFICATION
=System
/Multimedia Libraries
39 COMPONENT_LICENSE
= zlib
40 COMPONENT_LICENSE_FILE
= LICENSE
42 include $(WS_MAKE_RULES
)/common.mk
46 PKG_OPTIONS
+= -D COMPONENT_VERSION_SONAME
="$(COMPONENT_VERSION_SONAME)"
47 PKG_OPTIONS
+= -D COMPONENT_VERSION_TAG
="$(COMPONENT_VERSION_TAG)"
49 CONFIGURE_OPTIONS
+= --sysconfdir
=$(ETCDIR
)
51 # Auto-generated dependencies
52 REQUIRED_PACKAGES
+= library
/zlib
53 REQUIRED_PACKAGES
+= shell/ksh93
54 REQUIRED_PACKAGES
+= system
/library
55 REQUIRED_PACKAGES
+= system
/library
/math