1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007 Michael Tremer & Christian Schmidt #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
29 DL_FILE = $(THISAPP).tar.bz2
30 DL_FILE1 = $(THISAPP)-bugfix-080903.patch.bz2
32 DL_FROM = $(URL_IPFIRE)
33 DIR_APP = $(DIR_SRC)/$(THISAPP)
34 TARGET = $(DIR_INFO)/$(THISAPP)
38 DEPS = "libshout libmpeg2 libmad libdvbpsi directfb ffmpeg"
40 ###############################################################################
42 ###############################################################################
44 objects = $(DL_FILE) $(DL_FILE1)
46 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
47 $(DL_FILE1) = $(DL_FROM)/$(DL_FILE1)
49 $(DL_FILE)_MD5 = 3c90520c9f22a68d287458d5a8af989e
50 $(DL_FILE1)_MD5 = 36ea293b5ebb604778b321b5e3e3cdc4
54 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
56 download :$(patsubst %,$(DIR_DL)/%,$(objects))
58 md5 : $(subst %,%_MD5,$(objects))
63 ###############################################################################
64 # Downloading, checking, md5sum
65 ###############################################################################
67 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
70 $(patsubst %,$(DIR_DL)/%,$(objects)) :
73 $(subst %,%_MD5,$(objects)) :
76 ###############################################################################
77 # Installation Details
78 ###############################################################################
80 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
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 \
100 --enable-directfb --with-directfb=/usr/src/directfb
101 cd $(DIR_APP) && make $(MAKETUNING)
102 cd $(DIR_APP) && make install