[vlc-commits] contribs: add twolame

Rémi Denis-Courmont git at videolan.org
Wed Jun 29 18:14:02 CEST 2011


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Jun 29 12:23:29 2011 +0300| [36c27fa4f2918b76f1e927d5daa0eba34b685143] | committer: Rémi Denis-Courmont

contribs: add twolame

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

 contrib/src/twolame/SHA512SUMS |    2 ++
 contrib/src/twolame/rules.mak  |   31 +++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+), 0 deletions(-)

diff --git a/contrib/src/twolame/SHA512SUMS b/contrib/src/twolame/SHA512SUMS
new file mode 100644
index 0000000..49a5fe9
--- /dev/null
+++ b/contrib/src/twolame/SHA512SUMS
@@ -0,0 +1,2 @@
+241ae5faebf05cb919959bb0545cb89e9b71cfb07f92a7118d864499ea4f0065ddaa646ab1482ffbcbca427d52c2436764074bd67fd19a1eb9979987f23163f7  twolame-0.3.13.tar.gz
+d19263c9c8fddca7bfd306c07d45fb649e29f9c3c978b9dd2c70d122bc335a569228cc0961b1a15162b2ab9e44a1595ea107ac359ea08a8256fe780d8f173e8d  twolame-winutil.h
diff --git a/contrib/src/twolame/rules.mak b/contrib/src/twolame/rules.mak
new file mode 100644
index 0000000..dab9d44
--- /dev/null
+++ b/contrib/src/twolame/rules.mak
@@ -0,0 +1,31 @@
+# twolame
+
+TWOLAME_VERSION := 0.3.13
+TWOLAME_URL := $(SF)/twolame/twolame-$(TWOLAME_VERSION).tar.gz
+
+ifdef BUILD_ENCODERS
+PKGS += twolame
+endif
+
+$(TARBALLS)/twolame-$(TWOLAME_VERSION).tar.gz:
+	$(call download,$(TWOLAME_URL))
+
+$(TARBALLS)/twolame-winutil.h:
+	$(call download,"http://twolame.svn.sourceforge.net/viewvc/*checkout*/twolame/trunk/win32/winutil.h")
+
+.sum-twolame: twolame-$(TWOLAME_VERSION).tar.gz twolame-winutil.h
+
+twolame: twolame-$(TWOLAME_VERSION).tar.gz twolame-winutil.h .sum-twolame
+	$(UNPACK)
+ifdef HAVE_WIN32
+	cp -f $(filter %winutil.h,$^) $@-$(TWOLAME_VERSION)/win32/winutil.h
+endif
+	mv $@-$(TWOLAME_VERSION) $@
+	touch $@
+
+.twolame: twolame
+	cd $< && $(HOSTVARS) CFLAGS="${CFLAGS} -DLIBTWOLAME_STATIC" ./configure $(HOSTCONF)
+	cd $< && $(MAKE)
+	cd $</libtwolame && $(MAKE) install
+	cd $< && $(MAKE) install-data
+	touch $@



More information about the vlc-commits mailing list