[vlc-devel] [PATCH 1/3] extra/tools: added Ragel
Naohiro KORIYAMA
nkoriyama at gmail.com
Sun Aug 12 06:34:24 CEST 2012
HarfBuzz requires Ragel when executing autogen.sh.
---
extras/tools/bootstrap | 1 +
extras/tools/packages.mak | 3 +++
extras/tools/tools.mak | 16 ++++++++++++++++
3 files changed, 20 insertions(+)
diff --git a/extras/tools/bootstrap b/extras/tools/bootstrap
index 1b3190b..ef25050 100755
--- a/extras/tools/bootstrap
+++ b/extras/tools/bootstrap
@@ -61,6 +61,7 @@ check pkg-config
check cmake
check yasm
check_tar
+check ragel
[ -n "$NEEDED" ] && mkdir -p build/
diff --git a/extras/tools/packages.mak b/extras/tools/packages.mak
index fb1751e..b943887 100644
--- a/extras/tools/packages.mak
+++ b/extras/tools/packages.mak
@@ -31,3 +31,6 @@ OPENSSL_URL=http://www.openssl.org/source/openssl-$(OPENSSL_VERSION).tar.gz
GAS_URL=https://github.com/mansr/gas-preprocessor/tarball/master
GAS_VERSION=4ef872b
+
+RAGEL_VERSION=6.7
+RAGEL_URL=http://www.complang.org/ragel/ragel-$(RAGEL_VERSION).tar.gz
diff --git a/extras/tools/tools.mak b/extras/tools/tools.mak
index 5a408cd..49d7572 100644
--- a/extras/tools/tools.mak
+++ b/extras/tools/tools.mak
@@ -213,6 +213,22 @@ CLEAN_FILE += .gas
CLEAN_PKG += gas
DISTCLEAN_PKG += yuvi-gas-preprocessor-$(GAS_VERSION).tar.gz
+# Ragel State Machine Compiler
+ragel-$(RAGEL_VERSION).tar.gz:
+ $(call download,$(RAGEL_URL))
+
+ragel: ragel-$(RAGEL_VERSION).tar.gz
+ $(UNPACK)
+ $(MOVE)
+
+.ragel: ragel
+ (cd ragel; ./configure --prefix=$(PREFIX) --disable-shared --enable-static && make && make install)
+ touch $@
+
+CLEAN_FILE += .ragel
+CLEAN_PKG += ragel
+DISTCLEAN_PKG += ragel-$(RAGEL_VERSION).tar.gz
+
#
#
#
--
1.7.11.3
More information about the vlc-devel
mailing list