]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - lfs/vdr_dvbapi
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / vdr_dvbapi
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2020 IPFire Team <info@ipfire.org> #
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 SUMMARY = DVBAPI plugin for VDR
28
29 VER = 2.2.5
30
31 THISAPP = vdr-plugin-dvbapi-$(VER)
32 DL_FILE = $(THISAPP).tar.gz
33
34 DL_FROM = $(URL_IPFIRE)
35 DIR_APP = $(DIR_SRC)/$(THISAPP)
36 TARGET = $(DIR_INFO)/$(THISAPP)
37 PROG = vdr_dvbapi
38 PAK_VER = 5
39
40 DEPS =
41
42 SERVICES =
43
44 VDRPLUGVER = 2.4.7
45
46 EXTRA_FLAGS= -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE
47 CFLAGS += $(EXTRA_FLAGS)
48 CXXFLAGS += $(EXTRA_FLAGS)
49
50 CSAFLAGS = -O3 -fexpensive-optimizations -funroll-loops
51 PARALLEL = PARALLEL_64_LONG
52
53 define BUILD
54 cp -a $(DIR_APP) $(DIR_APP)-build$(1)
55 cd $(DIR_APP)-build$(1) && make $(MAKE_TUNING) LIBDIR=. VDRDIR=/usr/lib/vdr \
56 CFLAGS="$(CFLAGS$(1))" CXXFLAGS="$(CXXFLAGS$(1))" \
57 CSAFLAGS="$(CSAFLAGS$(1))" PARALLEL="$(PARALLEL$(1))" \
58 LOCALEDIR=$$(pwd)/locale all
59
60 -mkdir -pv /etc/vdr/plugins/dvbapi
61 cd $(DIR_APP)-build$(1) && install -m 755 libvdr-dvbapi.so \
62 /usr/lib/vdr/libvdr-dvbapi.so.$(VDRPLUGVER)$(1)
63 endef
64
65
66 ###############################################################################
67 # Top-level Rules
68 ###############################################################################
69
70 objects = $(DL_FILE)
71
72 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
73
74 $(DL_FILE)_BLAKE2 = dbab07bc7df8fdc7ec009b82723631a5e61cb1d4a9afdad16e32282a3e71d6bc87e7c78ec8cea73690606bda504c19bdd9123d1ca7a4e712b15ca884c77dabaa
75
76 install : $(TARGET)
77
78 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
79
80 download : $(patsubst %,$(DIR_DL)/%,$(objects))
81
82 b2 : $(subst %,%_BLAKE2,$(objects))
83
84 dist:
85 @$(PAK)
86
87 ###############################################################################
88 # Downloading, checking, b2sum
89 ###############################################################################
90
91 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
92 @$(CHECK)
93
94 $(patsubst %,$(DIR_DL)/%,$(objects)) :
95 @$(LOAD)
96
97 $(subst %,%_BLAKE2,$(objects)) :
98 @$(B2SUM)
99
100 ###############################################################################
101 # Installation Details
102 ###############################################################################
103
104 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
105 @$(PREBUILD)
106 @rm -rf $(DIR_APP)* && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
107
108 # Build normal version.
109 $(call BUILD)
110
111 echo "#" > /etc/sysconfig/vdr-plugins.d/dvbapi.conf
112 echo "# Command line parameters for vdr-plugin-dvbapi" >> /etc/sysconfig/vdr-plugins.d/dvbapi.conf
113 echo "#" >> /etc/sysconfig/vdr-plugins.d/dvbapi.conf
114 echo "# For more details see:" >> /etc/sysconfig/vdr-plugins.d/dvbapi.conf
115 echo "# - \`vdr --help -Pdvbapi\`" >> /etc/sysconfig/vdr-plugins.d/dvbapi.conf
116 echo "PLUGIN_OPTIONS=\"\"" >> /etc/sysconfig/vdr-plugins.d/dvbapi.conf
117
118 @rm -rf $(DIR_APP)*
119 @$(POSTBUILD)