Skip to content

Commit

Permalink
x264: restore deleted commit while rebasing
Browse files Browse the repository at this point in the history
  • Loading branch information
th0ma7 committed Jul 24, 2020
1 parent 4957b00 commit acafbb3
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 0 deletions.
53 changes: 53 additions & 0 deletions cross/x264/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
PKG_NAME = x264
PKG_VERS = 20200702-stable
PKG_EXT = tar.gz
PKG_DOWNLOAD_METHOD = git
PKG_GIT_HASH = 4c2aafd864dd201832ec2be0fef4484925146650
PKG_DIST_SITE = https://github.com/mirror/x264.git
PKG_DIST_FILE = $(PKG_NAME)-git$(PKG_GIT_HASH).$(PKG_EXT)
PKG_DIR = $(PKG_NAME)-git$(PKG_GIT_HASH)

DEPENDS =
OPTIONAL_DEPENDS = native/nasm

HOMEPAGE = http://www.videolan.org/developers/x264.html
COMMENT = x264 is a free software library and application for encoding video streams into the H.264/MPEG-4 AVC forma
LICENSE = GPLv2

GNU_CONFIGURE = 1

# YASM_PATH = $(WORK_DIR)/../../../native/yasm/work-native/install/usr/local/bin
NASM_PATH = $(WORK_DIR)/../../../native/nasm/work-native/install/usr/local/bin

CONFIGURE_ARGS = --enable-shared --prefix=$(INSTALL_PREFIX) --enable-pic --cross-prefix=$(TC_PATH)$(TC_PREFIX)

include ../../mk/spksrc.cross-cc.mk

ifeq ($(findstring $(ARCH), $(ARM5_ARCHES) $(ARM7_ARCHES)),$(ARCH))
ENV += x264_ARCH=ARM
CONFIGURE_ARGS += --disable-asm
endif

ifeq ($(findstring $(ARCH), $(ARM8_ARCHES)),$(ARCH))
ENV += x264_ARCH=aarch64
CONFIGURE_ARGS += --disable-asm --host=arm-linux
endif

ifeq ($(findstring $(ARCH), $(PPC_ARCHES)),$(ARCH))
ENV += x264_ARCH=PPC
CONFIGURE_ARGS += --disable-asm
endif

ifeq ($(findstring $(ARCH), $(x64_ARCHES)),$(ARCH))
DEPENDS += native/nasm
ENV += AS=$(NASM_PATH)/nasm
ENV += PATH=$(NASM_PATH):$$PATH
ENV += x264_ARCH=X86_64
endif

ifeq ($(findstring $(ARCH), $(x86_ARCHES)),$(ARCH))
DEPENDS += native/nasm
ENV += AS=$(NASM_PATH)/nasm
ENV += PATH=$(NASM_PATH):$$PATH
ENV += x264_ARCH=X86
endif
3 changes: 3 additions & 0 deletions cross/x264/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
bin:bin/x264
lnk:lib/libx264.so
lib:lib/libx264.so.161
3 changes: 3 additions & 0 deletions cross/x264/digests
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
x264-git4c2aafd864dd201832ec2be0fef4484925146650.tar.gz SHA1 f175337ca760802730630aea8f2217ea91aaba2b
x264-git4c2aafd864dd201832ec2be0fef4484925146650.tar.gz SHA256 0198c07a6dd1f60830e9ef0a42db2e92957b63091aa80a6b16eb8ca6bcfc9c05
x264-git4c2aafd864dd201832ec2be0fef4484925146650.tar.gz MD5 96767339ff11dd65ed5e8dd41d649d77

0 comments on commit acafbb3

Please sign in to comment.