]> git.sesse.net Git - vlc/blob - extras/contrib/Makefile
Fix memleak in audio equalizer.
[vlc] / extras / contrib / Makefile
1 # ***************************************************************************
2 # Makefile : Build vlc-contrib files
3 # ***************************************************************************
4 # Copyright (C) 2003-2006 the VideoLAN team
5 # $Id$
6
7 # Authors: Christophe Massiot <massiot@via.ecp.fr>
8 #          Derk-Jan Hartman <hartman at videolan dot org>
9 #          Christophe Mutricy <xtophe at videolan dot org>
10
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2 of the License, or    
14 # (at your option) any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
24 # ***************************************************************************
25
26 include ./config.mak
27
28 BUILDDIRS = bin doc etc include info lib man sbin share vlc-lib tmp gecko-sdk
29
30 all:
31         $(MAKE) -C src
32
33 contrib-macosx.tar.bz2:
34         $(WGET) $(CONTRIB_URL)
35
36 clean-src:
37         rm -rf $(BUILDDIRS)
38         $(MAKE) -C src clean-src
39
40 clean-bin:
41         rm -rf $(BUILDDIRS)
42         $(MAKE) -C src clean-dots
43
44 clean:
45         $(MAKE) clean-src
46         rm -rf config.mak distro.mak
47
48 package-macosx:
49         @if test -d tmp; then \
50                 echo "Move away ./tmp, it's in the way" ; \
51                 exit 1 ; \
52         fi
53         mkdir tmp
54         tar cf - bin sbin include lib vlc-lib share/aclocal* share/autoconf* \
55                 share/automake* share/gettext* \
56                 | (cd tmp; tar xf -)
57         ./change_prefix.sh tmp $(PREFIX) @@CONTRIB_PREFIX@@
58         (cd tmp; tar cf - .) | bzip2 -c > contrib-macosx.tar.bz2
59         rm -rf tmp
60
61 DISTDIR = usr/win32
62
63 package-win32:
64         @if test -d tmp; then \
65                 echo "Move away ./tmp, it's in the way" ; \
66                 exit 1 ; \
67         fi
68         mkdir -p tmp/$(DISTDIR)
69         tar cf - --dereference bin sbin include lib share/aclocal*\
70                 share/autoconf* share/qt4* \
71                 share/automake* share/gettext* gecko-sdk\
72                 | (cd tmp/$(DISTDIR); tar xpf -)
73 #kludge for live.com
74         mkdir -p tmp/$(DISTDIR)/live.com
75         for i in groupsock liveMedia UsageEnvironment BasicUsageEnvironment; do \
76                 mkdir -p  tmp/$(DISTDIR)/live.com/$$i/include; \
77                 cp -r src/live/$$i/include tmp/$(DISTDIR)/live.com/$$i; \
78                 cp src/live/$$i/lib$${i}.a  tmp/$(DISTDIR)/live.com/$$i; \
79         done;
80 # Change Prefix.
81         ./change_prefix.sh tmp $(PREFIX) $(DISTDIR)
82 # Hack for qt4
83         (cd tmp/$(DISTDIR)/bin; mv uic.exe uic.ex; mv rcc.exe rcc.ex; mv moc.exe moc.ex)
84 #       Remove unused and potentially harmful files     
85         (cd tmp/$(DISTDIR)/bin; rm -rfv *.exe; chmod a+x *)
86 # Hack for qt4
87         (cd tmp/$(DISTDIR)/bin; mv uic.ex uic.exe; mv rcc.ex rcc.exe; mv moc.ex moc.exe)
88 # Tar it.
89         (cd tmp; tar cf - $(DISTDIR)) | bzip2 -c > contrib-`date +%Y%m%d`-win32-bin-gcc-`$(CC) --version|head -n 1|cut -f 3 -d ' '`-runtime-`/bin/echo -e "#include <_mingw.h>\n__MINGW32_VERSION"|$(CC) -E -|grep -v ^#|grep -v ' '`-only.tar.bz2
90         rm -rf tmp
91
92 .PHONY: all clean-src clean-bin clean package-macosx package-win32