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
= 39
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
)
32 COMPONENT_PROJECT_URL
= http
://www.libpng.org
/pub
/png
/
33 COMPONENT_SUMMARY
= Portable Network Graphics library version
$(COMPONENT_VERSION
)
34 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
35 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
36 COMPONENT_ARCHIVE_HASH
= sha256
:1f4696ce70b4ee5f85f1e1623dc1229b210029fa4b7aee573df3e2ba7b036937
37 COMPONENT_ARCHIVE_URL
= https
://sourceforge.net
/projects
/libpng
/files
/libpng16
/$(COMPONENT_VERSION
)/$(COMPONENT_ARCHIVE
)/download
38 COMPONENT_FMRI
= image
/library
/libpng16
39 COMPONENT_CLASSIFICATION
=System
/Multimedia Libraries
40 COMPONENT_LICENSE
= zlib
41 COMPONENT_LICENSE_FILE
= LICENSE
43 include $(WS_MAKE_RULES
)/common.mk
47 PKG_OPTIONS
+= -D COMPONENT_VERSION_SONAME
="$(COMPONENT_VERSION_SONAME)"
48 PKG_OPTIONS
+= -D COMPONENT_VERSION_TAG
="$(COMPONENT_VERSION_TAG)"
50 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
55 # Auto-generated dependencies
56 REQUIRED_PACKAGES
+= library
/zlib
57 REQUIRED_PACKAGES
+= shell/ksh93
58 REQUIRED_PACKAGES
+= system
/library
59 REQUIRED_PACKAGES
+= system
/library
/math