# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.tools.libtool import LibtoolLibrary class Recipe(recipe.Recipe): version = '0.164.3108+git31e19f9' name = 'x264' stype = SourceType.TARBALL btype = BuildType.MESON # The snapshotting service is discontinued. # However, there's no pinned tag for each stable commit. # See https://download.videolan.org/pub/x264/snapshots/x264-snapshot-20191218-README.txt # Patch and tarball must match the below port (keeping it for reference) # remotes = {'origin': 'https://gitlab.freedesktop.org/gstreamer/meson-ports/%(name)s.git'} # commit = 'origin/164.3108-meson' # Source url = 'https://deb.debian.org/debian/pool/main/x/x264/x264_%(version)s.orig.tar.gz' url = 'https://gstreamer.freedesktop.org/src/mirror/%(name)s_%(version)s.orig.tar.gz' tarball_checksum = '41606cb8e788a7f8c4514290646d4ba5c7bc68d9e1ccd1a73f446a90546913eb' licenses = [License.GPLv2Plus] patches = [ f'{name}/0001-Add-Meson-build.patch', ] meson_options = {} files_libs = ['libx264'] files_bins = ['x264'] files_devel = ['%(libdir)s/pkgconfig/x264.pc', 'include/x264.h', 'include/x264_config.h'] def prepare(self): if self.config.target_platform == Platform.ANDROID: self.meson_options['cli'] = 'false' self.files_bins.remove('x264') def post_install(self): LibtoolLibrary('x264', 164, None, None, self.config.libdir, self.config.target_platform).save() super().post_install()