summaryrefslogtreecommitdiffstats
path: root/libmad
diff options
context:
space:
mode:
authorFrantišek Dvořák <valtri@civ.zcu.cz>2014-07-06 19:29:07 +0200
committerFrantišek Dvořák <valtri@civ.zcu.cz>2014-07-06 19:29:07 +0200
commitd4ebba1493ec429bc2256f50ed4c2bb247f37f7c (patch)
treef0912fcfaf285e66583e375875c8bc4a8e58b5e6 /libmad
parent332c5e4672c28dd97e9512e47ca2bdf383a1bf3b (diff)
downloadcodecs-testing-mingw-d4ebba1493ec429bc2256f50ed4c2bb247f37f7c.tar.gz
codecs-testing-mingw-d4ebba1493ec429bc2256f50ed4c2bb247f37f7c.tar.xz
codecs-testing-mingw-d4ebba1493ec429bc2256f50ed4c2bb247f37f7c.zip
Testing libmad.
Diffstat (limited to 'libmad')
-rw-r--r--libmad/Makefile45
-rw-r--r--libmad/README28
2 files changed, 73 insertions, 0 deletions
diff --git a/libmad/Makefile b/libmad/Makefile
new file mode 100644
index 0000000..b6288d9
--- /dev/null
+++ b/libmad/Makefile
@@ -0,0 +1,45 @@
+VERSION=0.15.2b
+NAME=madplay
+SRCDIR=$(NAME)-$(VERSION)
+TARBALL=$(NAME)-$(VERSION).tar.gz
+URL=http://download.sourceforge.net/mad/$(TARBALL)
+
+all build: build_win32 build_win64
+
+fetch: $(TARBALL)
+
+prep: $(SRCDIR)
+
+clean:
+ rm -rf $(SRCDIR) build_win32 build_win64
+
+distclean: clean
+ rm -f $(TARBALL)
+
+$(TARBALL):
+ wget -nv -N $(URL)
+
+$(SRCDIR): $(TARBALL)
+ tar xzf $(TARBALL)
+ (cd $(NAME)-$(VERSION); \
+ touch AUTHORS ChangeLog NEWS; \
+ autoreconf -sfi; \
+ )
+
+build_win32: $(SRCDIR)
+ rm -rf $@
+ mkdir $@
+ (cd $@; \
+ ../$(SRCDIR)/configure --host=i686-w64-mingw32 --build=x86_64-redhat-linux; \
+ make -j2; \
+ )
+
+build_win64: $(SRCDIR)
+ rm -rf $@
+ mkdir $@
+ (cd $@; \
+ ../$(SRCDIR)/configure --host=x86_64-w64-mingw32 --build=x86_64-redhat-linux; \
+ make -j2; \
+ )
+
+.PHONY: all build fetch prep clean
diff --git a/libmad/README b/libmad/README
new file mode 100644
index 0000000..b2c42ad
--- /dev/null
+++ b/libmad/README
@@ -0,0 +1,28 @@
+==== Packages ====
+
+yum install automake autoconf libtool make mingw32-gcc mingw32-libid3tag mingw64-gcc mingw64-libid3tag
+yum install --enablerepo=rpmfusion-free-updates-testing mingw32-libmad mingw64-libmad
+yum install madplay
+
+# or 32-bit testing - install 32-bit native madplay manually
+#yum install libid3tag.i686
+#rpm -ivh ...
+
+==== Info ====
+
+Output of the decoder is different on 32-bit and 64-bit architecture ==> use libmad.sh or libmad32.sh according to architecture. Then only MinGW or MinGW64 build will be tested. You can also test MinGW32 version on 64-bit system when you install 32-bit madplay package manually.
+
+
+==== Steps ====
+
+0) Environment has been set up and make has been called (see init.sh in the project root).
+
+1) Copy or link the mp3 file for using in tests locally, named as 1.mp3.
+
+2) build madplay using MinGW
+ make
+
+3) launch tests
+
+ ./libmad.sh
+ #./libmad32.sh