[vlc-commits] extras/tools: add yasm

Rafaël Carré git at videolan.org
Tue Nov 8 06:36:56 CET 2011


vlc | branch: master | Rafaël Carré <funman at videolan.org> | Tue Nov  8 00:36:39 2011 -0500| [7de8efc5f38cdc70095aba8f450b84969056bbf5] | committer: Rafaël Carré

extras/tools: add yasm

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7de8efc5f38cdc70095aba8f450b84969056bbf5
---

 extras/tools/bootstrap    |    1 +
 extras/tools/packages.mak |    4 ++++
 extras/tools/tools.mak    |   17 +++++++++++++++++
 3 files changed, 22 insertions(+), 0 deletions(-)

diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 28dce6e..6ad99f9 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -39,6 +39,7 @@ check libtool
 check pkg-config
 check xz
 check cmake
+check yasm
 
 [ -n "$NEEDED" ] && mkdir -p build/
 
diff --git a/extras/tools/packages.mak b/extras/tools/packages.mak
index bdf5b4b..27837de 100644
--- a/extras/tools/packages.mak
+++ b/extras/tools/packages.mak
@@ -1,5 +1,9 @@
 GNU=http://ftp.gnu.org/gnu
 
+YASM_VERSION=1.2.0
+#YASM_URL=$(CONTRIB_VIDEOLAN)/yasm-$(YASM_VERSION).tar.gz
+YASM_URL=http://www.tortall.net/projects/yasm/releases/yasm-$(YASM_VERSION).tar.gz
+
 CMAKE_VERSION=2.8.3
 CMAKE_URL=http://www.cmake.org/files/v2.8/cmake-$(CMAKE_VERSION).tar.gz
 
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index deadf11..d6b23b2 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -33,6 +33,23 @@ MOVE = mv $(UNPACK_DIR) $@ && touch $@
 # package rules
 #
 
+# yasm
+
+yasm-$(YASM_VERSION).tar.gz:
+	$(download) $(YASM_URL)
+
+yasm: yasm-$(YASM_VERSION).tar.gz
+	$(UNPACK)
+	$(MOVE)
+
+.yasm: yasm
+	(cd $<; ./configure --prefix=$(PREFIX) && make && make install)
+	touch $@
+
+CLEAN_FILE += .yasm
+CLEAN_PKG += yasm
+DISTCLEAN_PKG += yasm-$(YASM_VERSION).tar.gz
+
 # cmake
 
 cmake-$(CMAKE_VERSION).tar.gz:



More information about the vlc-commits mailing list