Added faad2 to build, this enables mp4a playback for vlc.
[people/pmueller/ipfire-2.x.git] / lfs / videolan
CommitLineData
24fd09e4
MT
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
25include Config
26
b570406a 27VER = 0.8.6i
24fd09e4 28THISAPP = vlc-$(VER)
9232685b 29DL_FILE = $(THISAPP).tar.bz2
b570406a
AF
30DL_FILE1 = $(THISAPP)-bugfix-080903.patch.bz2
31
24fd09e4
MT
32DL_FROM = $(URL_IPFIRE)
33DIR_APP = $(DIR_SRC)/$(THISAPP)
34TARGET = $(DIR_INFO)/$(THISAPP)
32307bc6 35PROG = videolan
8b71215c 36PAK_VER = 5
24fd09e4 37
8b71215c 38DEPS = "libshout libmpeg2 libmad libdvbpsi directfb ffmpeg faad2"
24fd09e4
MT
39
40###############################################################################
41# Top-level Rules
42###############################################################################
43
b570406a 44objects = $(DL_FILE) $(DL_FILE1)
24fd09e4
MT
45
46$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
b570406a 47$(DL_FILE1) = $(DL_FROM)/$(DL_FILE1)
24fd09e4 48
b570406a
AF
49$(DL_FILE)_MD5 = 3c90520c9f22a68d287458d5a8af989e
50$(DL_FILE1)_MD5 = 36ea293b5ebb604778b321b5e3e3cdc4
24fd09e4
MT
51
52install : $(TARGET)
53
54check : $(patsubst %,$(DIR_CHK)/%,$(objects))
55
56download :$(patsubst %,$(DIR_DL)/%,$(objects))
57
58md5 : $(subst %,%_MD5,$(objects))
59
60dist:
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)
9232685b 82 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
b570406a
AF
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
3de6d1b9
AF
86 cd $(DIR_APP) && ./configure --prefix=/usr --enable-shared --with-ffmpeg-tree=/usr/src/ffmpeg \
87 --with-ffmpeg-config=/usr/src/ffmpeg \
9232685b
AF
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 \
3de6d1b9
AF
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 \
8b71215c 99 --disable-nls --enable-faad \
78c655ac 100 --enable-directfb --with-directfb=/usr/src/directfb
24fd09e4
MT
101 cd $(DIR_APP) && make $(MAKETUNING)
102 cd $(DIR_APP) && make install
103 @rm -rf $(DIR_APP)
104 @$(POSTBUILD)