1 # ***************************************************************************
2 # Makefile : Build vlc-contrib files
3 # ***************************************************************************
4 # Copyright (C) 2003-2009 the VideoLAN team
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 # Felix Paul Kühne <fkuehne at videolan dot org>
12 # This program is free software; you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by
14 # the Free Software Foundation; either version 2 of the License, or
15 # (at your option) any later version.
17 # This program is distributed in the hope that it will be useful,
18 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 # GNU General Public License for more details.
22 # You should have received a copy of the GNU General Public License
23 # along with this program; if not, write to the Free Software
24 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
25 # ***************************************************************************
29 BUILDDIRS = bin doc etc include info lib man sbin share tmp gecko-sdk
48 contrib-macosx-$(ARCH)-$(CONTRIBREV).tar.bz2:
49 $(WGET) ftp://ftp.videolan.org/pub/videolan/testing/contrib/$@
51 using-bin: contrib-macosx-$(ARCH)-$(CONTRIBREV).tar.bz2
52 @if test -d tmp; then \
53 echo "Move away ./tmp, it's in the way" ; \
57 (cd tmp && tar jxvf ../$<)
58 ./change_prefix.sh tmp @@CONTRIB_PREFIX@@ $(PREFIX)
59 for dir in `(cd tmp && find . -type d)`; do mkdir -p -- $$dir; done
60 for i in `(cd tmp && find . -not -type d)`; do mv -f tmp/$$i $$i; done
66 $(MAKE) -C src clean-src
70 $(MAKE) -C src clean-dots
74 rm -rf config.mak distro.mak
79 @if test -d tmp; then \
80 echo "Move away ./tmp, it's in the way" ; \
84 tar cf - bin sbin include lib share/aclocal* share/autoconf* \
85 share/automake* share/gettext* share/libtool* gecko-sdk \
87 ./change_prefix.sh tmp $(PREFIX) @@CONTRIB_PREFIX@@
88 (cd tmp; tar cf - .) | bzip2 -c > contrib-macosx.tar.bz2
94 @if test -d tmp; then \
95 echo "Move away ./tmp, it's in the way" ; \
98 mkdir -p tmp/$(DISTDIR)
99 tar cf - --dereference bin sbin include lib share/aclocal*\
100 share/autoconf* share/qt4* \
101 share/automake* share/gettext* gecko-sdk\
102 | (cd tmp/$(DISTDIR); tar xpf -)
104 mkdir -p tmp/$(DISTDIR)/live.com
105 for i in groupsock liveMedia UsageEnvironment BasicUsageEnvironment; do \
106 mkdir -p tmp/$(DISTDIR)/live.com/$$i/include; \
107 cp -r src/live/$$i/include tmp/$(DISTDIR)/live.com/$$i; \
108 cp src/live/$$i/lib$${i}.a tmp/$(DISTDIR)/live.com/$$i; \
111 ./change_prefix.sh tmp $(PREFIX) $(DISTDIR)
113 (cd tmp/$(DISTDIR)/bin; mv uic.exe uic.ex; mv rcc.exe rcc.ex; mv moc.exe moc.ex)
114 # Remove unused and potentially harmful files
115 (cd tmp/$(DISTDIR)/bin; rm -rfv *.exe; chmod a+x *)
117 (cd tmp/$(DISTDIR)/bin; mv uic.ex uic.exe; mv rcc.ex rcc.exe; mv moc.ex moc.exe)
119 (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
122 .PHONY: all clean-src clean-bin clean package-macosx package-win32