x265: update to 4.1; keep library for x265 4.0; add back library for x265 3.6
[oi-userland.git] / components / encumbered / x265-4.0 / Makefile
blobab6b6c54ec141c4c0281cef82a591687c3dc900f
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 2019 Michal Nowak
15 BUILD_STYLE= cmake
16 USE_PARALLEL_BUILD = yes
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= x265
21 COMPONENT_VERSION= 4.0
22 COMPONENT_SUMMARY= Runtime library for High Efficiency Video Coding (HEVC) version $(COMPONENT_VERSION)
23 COMPONENT_PROJECT_URL= https://x265.org/
24 COMPONENT_SRC= $(COMPONENT_NAME)_$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_URL= https://bitbucket.org/multicoreware/$(COMPONENT_NAME)_git/downloads/$(COMPONENT_ARCHIVE)
27 COMPONENT_ARCHIVE_HASH= sha256:75b4d05629e365913de3100b38a459b04e2a217a8f30efaa91b572d8e6d71282
28 COMPONENT_FMRI= library/video/x265-40
29 COMPONENT_CLASSIFICATION= System/Multimedia Libraries
30 COMPONENT_LICENSE= GPLv2.0
31 COMPONENT_LICENSE_FILE= COPYING
33 include $(WS_MAKE_RULES)/encumbered.mk
34 include $(WS_MAKE_RULES)/common.mk
36 SOURCE_DIR = $(COMPONENT_DIR)/$(COMPONENT_SRC)/source/
38 CMAKE_OPTIONS += -DENABLE_PIC=ON
39 CMAKE_OPTIONS += -DENABLE_TESTS=ON
41 COMPONENT_TEST_CMD = test/TestBench
43 # Manually added build dependencies
44 REQUIRED_PACKAGES += developer/assembler/nasm
46 # Auto-generated dependencies
47 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
48 REQUIRED_PACKAGES += system/library
49 REQUIRED_PACKAGES += system/library/math