summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2013-07-13 10:22:45 (GMT)
committerTony Theodore <tonyt@logyst.com>2013-07-13 10:22:45 (GMT)
commit7f5a1115b78dca22f3b2bf904debf7a3654bd68c (patch)
tree2ae50489987912c9d5e4eb4bdc9df5af51ac25cc /src
parent634bdb4a4fcd225d9f358f401559c2a4d2858da5 (diff)
downloadmxe-7f5a1115b78dca22f3b2bf904debf7a3654bd68c.zip
mxe-7f5a1115b78dca22f3b2bf904debf7a3654bd68c.tar.gz
mxe-7f5a1115b78dca22f3b2bf904debf7a3654bd68c.tar.bz2
package x264: build native version of yasm assembler
Diffstat (limited to 'src')
-rw-r--r--src/x264.mk12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/x264.mk b/src/x264.mk
index 4302541..7fb64ed 100644
--- a/src/x264.mk
+++ b/src/x264.mk
@@ -7,13 +7,23 @@ $(PKG)_CHECKSUM := 768008db411c03afbd74ea808da5a1f57a77fed4
$(PKG)_SUBDIR := $(PKG)-snapshot-$($(PKG)_VERSION)
$(PKG)_FILE := $(PKG)-snapshot-$($(PKG)_VERSION).tar.bz2
$(PKG)_URL := http://download.videolan.org/pub/videolan/$(PKG)/snapshots/$($(PKG)_FILE)
-$(PKG)_DEPS := gcc
+$(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)' \