]> git.sesse.net Git - vlc/commitdiff
Contribs: add lame
authorJean-Baptiste Kempf <jb@videolan.org>
Mon, 8 Aug 2011 20:57:46 +0000 (22:57 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Mon, 8 Aug 2011 20:58:13 +0000 (22:58 +0200)
contrib/src/ffmpeg/rules.mak
contrib/src/lame/SHA512SUMS [new file with mode: 0644]
contrib/src/lame/rules.mak [new file with mode: 0644]

index cff6f3f382c1ff7863302280937ae3535711fe00..484ed6f5f8a14d7d69cf8a0fc452f20f340b8f5a 100644 (file)
@@ -27,8 +27,8 @@ DEPS_ffmpeg = zlib gsm vpx $(DEPS_vpx)
 # Optional dependencies
 ifdef BUILD_ENCODERS
 # TODO:
-#FFMPEGCONF += --enable-libmp3lame
-#DEPS_ffmpeg += lame $(DEPS_lame)
+FFMPEGCONF += --enable-libmp3lame
+DEPS_ffmpeg += lame $(DEPS_lame)
 else
 FFMPEGCONF += --disable-encoders --disable-muxers
 # XXX: REVISIT --enable-small ?
diff --git a/contrib/src/lame/SHA512SUMS b/contrib/src/lame/SHA512SUMS
new file mode 100644 (file)
index 0000000..ed0ed88
--- /dev/null
@@ -0,0 +1 @@
+cf6cff914c06c2d65470c577eed2bfa226e9017cdfd26aa3e95c3b3b76c40568151ca223327859d6dacb982c80c06b672ba4e9f32ce1e452363c95126edb301b  lame-3.98.4.tar.gz
diff --git a/contrib/src/lame/rules.mak b/contrib/src/lame/rules.mak
new file mode 100644 (file)
index 0000000..b579db7
--- /dev/null
@@ -0,0 +1,22 @@
+# lame
+
+LAME_VERSION := 3.98.4
+LAME_URL := $(SF)/lame/lame-$(LAME_VERSION).tar.gz
+
+ifdef BUILD_ENCODERS
+PKGS += lame
+endif
+
+$(TARBALLS)/lame-$(LAME_VERSION).tar.gz:
+       $(call download,$(LAME_URL))
+
+.sum-lame: lame-$(LAME_VERSION).tar.gz
+
+lame: lame-$(LAME_VERSION).tar.gz .sum-lame
+       $(UNPACK)
+       $(MOVE)
+
+.lame: lame
+       cd $< && $(HOSTVARS) ./configure $(HOSTCONF) --disable-analyser-hooks --disable-decoder --disable-gtktest --disable-frontend
+       cd $< && $(MAKE) install
+       touch $@