]> git.sesse.net Git - vlc/commitdiff
Contribs: add regex (necessary for Win32 libcddb)
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 6 Aug 2011 22:20:55 +0000 (00:20 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sat, 6 Aug 2011 22:24:49 +0000 (00:24 +0200)
contrib/src/regex/SHA512SUMS [new file with mode: 0644]
contrib/src/regex/rules.mak [new file with mode: 0644]

diff --git a/contrib/src/regex/SHA512SUMS b/contrib/src/regex/SHA512SUMS
new file mode 100644 (file)
index 0000000..5f0a093
--- /dev/null
@@ -0,0 +1 @@
+85a4f5161759646b3cf5484539cebe92e51ee1896f7853084d4aba2b5399164922103dc2b49971eca9821bec56195fef999f100f61b6d734955ccd7c81ca3ca7  regex-0.12.tar.gz
diff --git a/contrib/src/regex/rules.mak b/contrib/src/regex/rules.mak
new file mode 100644 (file)
index 0000000..79ce6e3
--- /dev/null
@@ -0,0 +1,20 @@
+# REGEX
+REGEX_VERSION := 0.12
+REGEX_URL := http://ftp.gnu.org/old-gnu/regex/regex-$(REGEX_VERSION).tar.gz
+
+PKGS_FOUND += regex
+
+$(TARBALLS)/regex-$(REGEX_VERSION).tar.gz:
+       $(call download,$(REGEX_URL))
+
+.sum-regex: regex-$(REGEX_VERSION).tar.gz
+
+regex: regex-$(REGEX_VERSION).tar.gz .sum-regex
+       $(UNPACK)
+       $(MOVE)
+
+.regex: regex
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF)
+       cd $< && make subirs=
+       cd $< && $(AR) rcvu libregex.a regex.o && $(RANLIB) libregex.a && cp -v regex.h $(PREFIX)/include && cp -v libregex.a $(PREFIX)/lib
+       touch $@