diff options
| author | František Dvořák <valtri@civ.zcu.cz> | 2014-07-06 19:29:07 +0200 |
|---|---|---|
| committer | František Dvořák <valtri@civ.zcu.cz> | 2014-07-06 19:29:07 +0200 |
| commit | d4ebba1493ec429bc2256f50ed4c2bb247f37f7c (patch) | |
| tree | f0912fcfaf285e66583e375875c8bc4a8e58b5e6 /libmad/Makefile | |
| parent | 332c5e4672c28dd97e9512e47ca2bdf383a1bf3b (diff) | |
| download | codecs-testing-mingw-d4ebba1493ec429bc2256f50ed4c2bb247f37f7c.tar.gz codecs-testing-mingw-d4ebba1493ec429bc2256f50ed4c2bb247f37f7c.tar.xz codecs-testing-mingw-d4ebba1493ec429bc2256f50ed4c2bb247f37f7c.zip | |
Testing libmad.
Diffstat (limited to 'libmad/Makefile')
| -rw-r--r-- | libmad/Makefile | 45 |
1 files changed, 45 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 |
