mxe/src/x264.mk

32 lines
1.1 KiB
Makefile
Raw Normal View History

2012-03-28 14:46:58 +01:00
# This file is part of MXE.
2012-03-29 11:14:15 +01:00
# See index.html for further information.
PKG := x264
$(PKG)_IGNORE :=
$(PKG)_VERSION := 20160706-2245
$(PKG)_CHECKSUM := 8f9176385c3a15706fbdd08cc32c735d926471f0d33d9cf0664e9d82c38ac10f
$(PKG)_SUBDIR := $(PKG)-snapshot-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-snapshot-$($(PKG)_VERSION).tar.bz2
2010-10-27 12:21:09 +01:00
$(PKG)_URL := http://download.videolan.org/pub/videolan/$(PKG)/snapshots/$($(PKG)_FILE)
2016-01-23 21:11:48 +00:00
$(PKG)_DEPS := gcc yasm liblsmash
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://git.videolan.org/?p=x264.git;a=shortlog' | \
$(SED) -n 's,.*\([0-9]\{4\}\)-\([0-9]\{2\}\)-\([0-9]\{2\}\).*,\1\2\3-2245,p' | \
sort | \
tail -1
endef
define $(PKG)_BUILD
$(SED) -i 's,yasm,$(TARGET)-yasm,g' '$(1)/configure'
cd '$(1)' && ./configure \
2014-02-10 05:33:26 +00:00
$(MXE_CONFIGURE_OPTS) \
--cross-prefix='$(TARGET)'- \
--enable-win32thread \
2014-02-10 05:33:26 +00:00
--disable-lavf \
--disable-swscale # Avoid circular dependency with ffmpeg. Remove if undesired.
$(MAKE) -C '$(1)' -j 1 uninstall
2010-10-05 11:43:59 +01:00
$(MAKE) -C '$(1)' -j '$(JOBS)'
$(MAKE) -C '$(1)' -j 1 install
endef