]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/videolan
Updated ipfireseeder for core37.
[people/pmueller/ipfire-2.x.git] / lfs / videolan
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 VER = 0.8.6i
28 THISAPP = vlc-$(VER)
29 DL_FILE = $(THISAPP).tar.bz2
30 DL_FILE1 = $(THISAPP)-bugfix-080903.patch.bz2
31
32 DL_FROM = $(URL_IPFIRE)
33 DIR_APP = $(DIR_SRC)/$(THISAPP)
34 TARGET = $(DIR_INFO)/$(THISAPP)
35 PROG = videolan
36 PAK_VER = 5
37
38 DEPS = "libshout libmpeg2 libmad libdvbpsi directfb ffmpeg faad2"
39
40 ###############################################################################
41 # Top-level Rules
42 ###############################################################################
43
44 objects = $(DL_FILE) $(DL_FILE1)
45
46 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
47 $(DL_FILE1) = $(DL_FROM)/$(DL_FILE1)
48
49 $(DL_FILE)_MD5 = 3c90520c9f22a68d287458d5a8af989e
50 $(DL_FILE1)_MD5 = 36ea293b5ebb604778b321b5e3e3cdc4
51
52 install : $(TARGET)
53
54 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
55
56 download :$(patsubst %,$(DIR_DL)/%,$(objects))
57
58 md5 : $(subst %,%_MD5,$(objects))
59
60 dist:
61 @$(PAK)
62
63 ###############################################################################
64 # Downloading, checking, md5sum
65 ###############################################################################
66
67 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
68 @$(CHECK)
69
70 $(patsubst %,$(DIR_DL)/%,$(objects)) :
71 @$(LOAD)
72
73 $(subst %,%_MD5,$(objects)) :
74 @$(MD5)
75
76 ###############################################################################
77 # Installation Details
78 ###############################################################################
79
80 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
81 @$(PREBUILD)
82 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
83 #Apply some patched from videolan 8.6-bugfix branch,
84 #ignore the error because one patch is already applied
85 -cd $(DIR_APP) && bzip2 -d -c $(DIR_DL)/$(DL_FILE1) | patch -p1
86 cd $(DIR_APP) && ./configure --prefix=/usr --enable-shared --with-ffmpeg-tree=/usr/src/ffmpeg \
87 --with-ffmpeg-config=/usr/src/ffmpeg \
88 --disable-wxwidgets --disable-skins2 \
89 --enable-httpd --enable-pth --enable-shout \
90 --enable-smb --enable-cddax --enable-ncurses \
91 --enable-a52 --enable-dts --enable-alsa \
92 --enable-unicode-utf8 --enable-v4l --enable-vcd \
93 --enable-ogg --enable-vorbis --enable-theora \
94 --enable-mad --enable-v4l --enable-dvb \
95 --with-dvb=/usr/src/v4l-dvb \
96 --with-v4l=/usr/src/v4l-dvb \
97 --enable-libdvbpsi --enable-faac --enable-mkv \
98 --enable-x264 --enable-release --enable-sout \
99 --disable-nls --enable-faad \
100 --enable-directfb --with-directfb=/usr/src/directfb
101 cd $(DIR_APP) && make $(MAKETUNING)
102 cd $(DIR_APP) && make install
103 @rm -rf $(DIR_APP)
104 @$(POSTBUILD)