ffmpeg: fix dependencies
[oi-userland.git] / components / encumbered / x264 / Makefile
blob24b658e2c4c172dfdc83f1e2707709eaaf4cb0b9
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
5 # 1.0 of the CDDL.
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 2015 Alexander Pyhalov
14 # Copyright 2023 Niklas Poslovski
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= x264
20 COMPONENT_LIB_VERSION= 164
21 COMPONENT_SNAPSHOT_DATE= 20230128
22 X264_COMMIT=eaa68fad9e5d201d42fde51665f2d137ae96baf0
23 COMPONENT_SRC= $(COMPONENT_NAME)-$(X264_COMMIT)
24 COMPONENT_VERSION= 0.$(COMPONENT_LIB_VERSION).0.$(COMPONENT_SNAPSHOT_DATE)
25 COMPONENT_FMRI= library/video/x264
26 COMPONENT_CLASSIFICATION=System/Multimedia Libraries
27 COMPONENT_SUMMARY= H.264 encoder library
28 COMPONENT_ARCHIVE= $(COMPONENT_NAME)-snapshot-$(COMPONENT_SNAPSHOT_DATE).tar.gz
29 COMPONENT_ARCHIVE_HASH= \
30 sha256:580f07f08af23768074e5346bdf32c77b68b4d4e614f4998ea869b02fc29714d
31 COMPONENT_ARCHIVE_URL= \
32 https://code.videolan.org/videolan/x264/-/archive/$(X264_COMMIT)/x264-$(X264_COMMIT).tar.gz
33 COMPONENT_PROJECT_URL= https://www.videolan.org/developers/x264.html
34 COMPONENT_LICENSE= GPLv2.0
35 COMPONENT_LICENSE_FILE= COPYING
37 PKG_MACROS += COMPONENT_LIB_VERSION=$(COMPONENT_LIB_VERSION)
39 include $(WS_MAKE_RULES)/encumbered.mk
40 include $(WS_MAKE_RULES)/common.mk
42 TEST_TARGET=$(NO_TESTS)
44 PATH = $(PATH.gnu)
46 CONFIGURE_OPTIONS = --prefix=/usr
47 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_BINDIR.$(BITS))
48 CONFIGURE_OPTIONS += --libdir=$(CONFIGURE_LIBDIR.$(BITS))
49 CONFIGURE_OPTIONS += --enable-pic
50 CONFIGURE_OPTIONS += --extra-cflags="$(CFLAGS)"
51 CONFIGURE_OPTIONS += --extra-ldflags="$(LDFLAGS)"
52 CONFIGURE_OPTIONS += --disable-cli
53 CONFIGURE_OPTIONS += --enable-shared
55 CONFIGURE_ENV += host="amd64-pc-solaris2.11"
57 # Auto-generated dependencies
58 REQUIRED_PACKAGES += system/library
59 REQUIRED_PACKAGES += system/library/math