From b181bc8d045ff4e5bb5ecbf53d36c73e1902f9e8 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Tue, 31 Oct 2017 19:34:30 +1100 Subject: [PATCH 1/3] add package nasm Based on: https://github.com/mxe/mxe/pull/1900#issue-258213692 --- src/nasm.mk | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/nasm.mk diff --git a/src/nasm.mk b/src/nasm.mk new file mode 100644 index 00000000..e441bb30 --- /dev/null +++ b/src/nasm.mk @@ -0,0 +1,28 @@ +# This file is part of MXE. See LICENSE.md for licensing information. + +PKG := nasm +$(PKG)_WEBSITE := http://www.nasm.us/ +$(PKG)_DESCR := NASM - The Netwide Assembler +$(PKG)_IGNORE := +$(PKG)_VERSION := 2.13.01 +$(PKG)_CHECKSUM := aa0213008f0433ecbe07bb628506a5c4be8079be20fc3532a5031fd639db9a5e +$(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) +$(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.xz +$(PKG)_URL := http://www.nasm.us/pub/$(PKG)/releasebuilds/$($(PKG)_VERSION)/$($(PKG)_FILE) +# add cross targets for explicit deps even though nothing is built +$(PKG)_TARGETS := $(BUILD) $(MXE_TARGETS) +$(PKG)_DEPS := + +define $(PKG)_UPDATE + $(WGET) -q -O- 'http://www.nasm.us/pub/nasm/releasebuilds/?C=M;O=D' | \ + $(SED) -n 's,.*href="\([0-9\.]*[^a-z]\)/".*,\1,p' | \ + head -1 +endef + +define $(PKG)_BUILD_$(BUILD) + # build nasm compiler + cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \ + $(MXE_CONFIGURE_OPTS) + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' + $(MAKE) -C '$(BUILD_DIR)' -j 1 install +endef From 1e068f799eadb3f527f558d69b0e86ef53d3f452 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Tue, 31 Oct 2017 19:36:15 +1100 Subject: [PATCH 2/3] x264: update 20161130 --> 20170626 and use nasm Based on #1900, repo has been removed --- src/x264.mk | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/x264.mk b/src/x264.mk index e223220e..1b903748 100644 --- a/src/x264.mk +++ b/src/x264.mk @@ -3,12 +3,12 @@ PKG := x264 $(PKG)_WEBSITE := https://www.videolan.org/developers/x264.html $(PKG)_IGNORE := -$(PKG)_VERSION := 20161130-2245 -$(PKG)_CHECKSUM := 0825e14945bc373107f9a00e66d45d5389bb86368efd834b92c52cddb2ded1d8 +$(PKG)_VERSION := 20170626-2245 +$(PKG)_CHECKSUM := 28cf90f63964e24e65b05084c75d114a997004c8d3f72feae7229da3a098988e $(PKG)_SUBDIR := $(PKG)-snapshot-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-snapshot-$($(PKG)_VERSION).tar.bz2 $(PKG)_URL := https://download.videolan.org/pub/videolan/$(PKG)/snapshots/$($(PKG)_FILE) -$(PKG)_DEPS := gcc liblsmash yasm +$(PKG)_DEPS := gcc liblsmash nasm define $(PKG)_UPDATE $(WGET) -q -O- 'https://git.videolan.org/?p=x264.git;a=shortlog' | \ @@ -18,14 +18,13 @@ define $(PKG)_UPDATE endef define $(PKG)_BUILD - $(SED) -i 's,yasm,$(TARGET)-yasm,g' '$(1)/configure' - cd '$(1)' && ./configure \ + cd '$(BUILD_DIR)' && AS='$(PREFIX)/$(BUILD)/bin/nasm' '$(SOURCE_DIR)/configure'\ $(MXE_CONFIGURE_OPTS) \ --cross-prefix='$(TARGET)'- \ --enable-win32thread \ --disable-lavf \ --disable-swscale # Avoid circular dependency with ffmpeg. Remove if undesired. - $(MAKE) -C '$(1)' -j 1 uninstall - $(MAKE) -C '$(1)' -j '$(JOBS)' - $(MAKE) -C '$(1)' -j 1 install + $(MAKE) -C '$(BUILD_DIR)' -j 1 uninstall + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' + $(MAKE) -C '$(BUILD_DIR)' -j 1 install endef From 63ec63966972328b29d2985678364e008859a6a7 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Tue, 31 Oct 2017 19:38:42 +1100 Subject: [PATCH 3/3] yasm: use new-style variables --- src/yasm.mk | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/yasm.mk b/src/yasm.mk index 6b67de80..f61b5ce9 100644 --- a/src/yasm.mk +++ b/src/yasm.mk @@ -5,6 +5,7 @@ $(PKG)_WEBSITE := http://yasm.tortall.net/ $(PKG)_DESCR := Yasm $(PKG)_VERSION := 1.3.0 $(PKG)_CHECKSUM := 3dce6601b495f5b3d45b59f7d2492a340ee7e84b5beca17e48f862502bd5603f +$(PKG)_GH_CONF := yasm/yasm, v $(PKG)_SUBDIR := $(PKG)-$($(PKG)_VERSION) $(PKG)_FILE := $(PKG)-$($(PKG)_VERSION).tar.gz $(PKG)_URL := https://www.tortall.net/projects/$(PKG)/releases/$($(PKG)_FILE) @@ -13,21 +14,18 @@ $(PKG)_DEPS := gcc $(PKG)_DEPS_$(BUILD) := -define $(PKG)_UPDATE - $(WGET) -q -O- 'https://github.com/yasm/yasm/tags' | \ - $(SED) -n 's,.*href="/yasm/yasm/archive/v\([0-9][^"]*\)\.tar.*,\1,p' | \ - head -1 -endef - define $(PKG)_BUILD - # link to native yasm compiler on cross builds + # link to native yasm compiler on cross builds - it isn't + # target-specific but makes it easier to detect our version $(if $(BUILD_CROSS), ln -sf '$(PREFIX)/$(BUILD)/bin/yasm' '$(PREFIX)/bin/$(TARGET)-yasm') # yasm is always static - cd '$(1)' && '$(1)/configure' \ + # build libyasm and tools + cd '$(BUILD_DIR)' && '$(SOURCE_DIR)/configure' \ $(MXE_CONFIGURE_OPTS) \ --disable-nls \ --disable-python - $(MAKE) -C '$(1)' -j '$(JOBS)' install + $(MAKE) -C '$(BUILD_DIR)' -j '$(JOBS)' + $(MAKE) -C '$(BUILD_DIR)' -j 1 install endef