mxe/src/x264.mk

38 lines
1.2 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 :=
2013-05-29 09:21:10 +01:00
$(PKG)_CHECKSUM := 768008db411c03afbd74ea808da5a1f57a77fed4
$(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)
$(PKG)_DEPS := gcc yasm
define $(PKG)_UPDATE
$(DATE) -d yesterday +%Y%m%d-2245
endef
define $(PKG)_BUILD
# native build of yasm
mkdir '$(1).native'
cd '$(1).native' && $(call UNPACK_PKG_ARCHIVE,yasm)
cd '$(1).native/$(yasm_SUBDIR)' && './configure' \
--disable-nls \
--disable-python
$(MAKE) -C '$(1).native/$(yasm_SUBDIR)' -j '$(JOBS)' yasm
# cross build with newly compiled yasm
$(SED) -i 's,yasm,$(1).native/$(yasm_SUBDIR)/yasm,g' '$(1)/configure'
cd '$(1)' && ./configure \
--cross-prefix='$(TARGET)'- \
--host='$(TARGET)' \
--prefix='$(PREFIX)/$(TARGET)' \
--disable-shared \
--enable-static \
2011-03-01 14:01:57 +00:00
--enable-win32thread
$(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