]> git.ipfire.org Git - people/arne_f/ipfire-2.x.git/blame - lfs/vdr
tor: Increase PAK_VER for shipping modified CGI file.
[people/arne_f/ipfire-2.x.git] / lfs / vdr
CommitLineData
debeaeaa
AF
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
08434343 4# Copyright (C) 2007-2013 IPFire Team <info@ipfire.org> #
debeaeaa
AF
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
ece4c8cd 27VER = 2.0.5
78403883
AF
28
29# VDRPLUGVER must match with APIVERSION in config.h
30# after change this update also all vdr plugins
08434343 31VDRPLUGVER = 2.0.0
78403883 32
debeaeaa
AF
33THISAPP = vdr-$(VER)
34DL_FILE = $(THISAPP).tar.bz2
98248635 35
debeaeaa
AF
36DL_FROM = $(URL_IPFIRE)
37DIR_APP = $(DIR_SRC)/$(THISAPP)
38TARGET = $(DIR_INFO)/$(THISAPP)
39PROG = vdr
fa49910f 40PAK_VER = 9
debeaeaa 41
58ccbbd4 42DEPS = "vdr_streamdev"
debeaeaa 43
d2be7786
MT
44MAKE_OPTIONS = \
45 PREFIX=/usr \
46 BINDIR=/usr/bin \
47 CACHEDIR=/var/cache/vdr \
48 CONFDIR=/etc/vdr \
c435d7dc 49 INCDIR=/usr/include \
d2be7786
MT
50 LIBDIR=/usr/lib/vdr \
51 LOCDIR=/usr/share/locale \
52 MANDIR=/usr/share/man \
53 RESDIR=/usr/share/vdr \
54 RUNDIR=/var/run \
55 VARDIR=/var \
56 VIDEODIR=/var/video \
57 CFLAGS="$(CFLAGS)" \
58 CXXFLAGS="$(CXXFLAGS)"
59
debeaeaa
AF
60###############################################################################
61# Top-level Rules
62###############################################################################
63
d2be7786 64objects = $(DL_FILE)
debeaeaa 65
ece4c8cd 66$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
debeaeaa 67
ece4c8cd 68$(DL_FILE)_MD5 = f58b9836a60440fde84480a2e37ee91d
debeaeaa
AF
69
70install : $(TARGET)
71
72check : $(patsubst %,$(DIR_CHK)/%,$(objects))
73
98248635 74download : $(patsubst %,$(DIR_DL)/%,$(objects))
debeaeaa
AF
75
76md5 : $(subst %,%_MD5,$(objects))
77
78dist:
79 @$(PAK)
80
81###############################################################################
82# Downloading, checking, md5sum
83###############################################################################
84
85$(patsubst %,$(DIR_CHK)/%,$(objects)) :
86 @$(CHECK)
87
88$(patsubst %,$(DIR_DL)/%,$(objects)) :
89 @$(LOAD)
90
91$(subst %,%_MD5,$(objects)) :
92 @$(MD5)
93
94###############################################################################
95# Installation Details
96###############################################################################
97
98$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
99 @$(PREBUILD)
100 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
cc24c14b 101
d2be7786
MT
102 # Compile main package.
103 cd $(DIR_APP) && make $(MAKE_OPTIONS) $(MAKETUNING) vdr include-dir
104
105 # Compile bundled plugins.
106 #cd $(DIR_APP) && for plugin in ...; do \
107 # make $(MAKETUNING) -C PLUGINS/src/$$plugin VDRDIR=$(DIR_APP) \
108 # CFLAGS="$(CFLAGS) -I$(DIR_APP)/include" \
109 # CXXFLAGS="$(CXXFLAGS) -I$(DIR_APP)/include" \
110 # PLGCFG=$(DIR_APP)/plugins.mk all || exit 1; \
111 #done
112
113 # Install main package.
114 cd $(DIR_APP) && make install-bin install-dirs install-includes $(MAKE_OPTIONS)
115 mv -v /usr/bin/vdr /usr/sbin/vdr
116
08434343 117 sed -e "s/VDR_PLUGIN_VERSION/$(VDRPLUGVER)/" \
d2be7786
MT
118 < $(DIR_SRC)/config/vdr/runvdr > /usr/sbin/runvdr
119 chmod 755 /usr/sbin/runvdr
120
121 # Install configuration.
122 mkdir -pv /etc/vdr
123 mkdir -pv /etc/sysconfig/vdr-plugins.d
90dc87b7
MT
124 cd $(DIR_APP) && install -m 644 $(DIR_SRC)/config/vdr/vdr.sysconfig \
125 /etc/sysconfig/vdr
d2be7786
MT
126 cd $(DIR_APP) && install -m 644 *.conf /etc/vdr
127
90dc87b7
MT
128 # Link development files.
129 mkdir -pv /usr/lib/vdr
130 cd $(DIR_APP) && cp -vf Make.global /usr/lib/vdr
131 ln -svf ../../include/vdr/config.h /usr/lib/vdr/config.h
132 ln -svf ../../include/vdr/device.h /usr/lib/vdr/device.h
133
d2be7786 134 # Install start links and backup include file.
0e07ae54
AF
135 ln -sf ../init.d/vdr /etc/rc.d/rc3.d/S60vdr
136 ln -sf ../init.d/vdr /etc/rc.d/rc0.d/K40vdr
137 ln -sf ../init.d/vdr /etc/rc.d/rc6.d/K40vdr
2a8c4fcb 138 install -v -m 644 $(DIR_SRC)/config/backup/includes/vdr \
d2be7786 139 /var/ipfire/backup/addons/includes/vdr
cc24c14b 140
debeaeaa
AF
141 @rm -rf $(DIR_APP)
142 @$(POSTBUILD)