]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
libdvbcsa: New package for tvheadend
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 2 Dec 2017 13:05:57 +0000 (13:05 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 4 Mar 2024 22:08:29 +0000 (22:08 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/packages/libdvbcsa [new file with mode: 0644]
lfs/libdvbcsa [new file with mode: 0644]
lfs/tvheadend
make.sh

diff --git a/config/rootfiles/packages/libdvbcsa b/config/rootfiles/packages/libdvbcsa
new file mode 100644 (file)
index 0000000..d5344e5
--- /dev/null
@@ -0,0 +1,7 @@
+#usr/include/dvbcsa
+#usr/include/dvbcsa/dvbcsa.h
+#usr/lib/libdvbcsa.a
+#usr/lib/libdvbcsa.la
+#usr/lib/libdvbcsa.so
+usr/lib/libdvbcsa.so.1
+usr/lib/libdvbcsa.so.1.0.1
diff --git a/lfs/libdvbcsa b/lfs/libdvbcsa
new file mode 100644 (file)
index 0000000..e19e424
--- /dev/null
@@ -0,0 +1,84 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2013  IPFire Team  <info@ipfire.org>                          #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 1.1.0
+
+THISAPP    = libdvbcsa-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+PROG       = libdvbcsa
+PAK_VER    = 1
+
+DEPS       = ""
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_MD5 = 478ab1ca56ca58d2667da6ce22f74e39
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+md5 : $(subst %,%_MD5,$(objects))
+
+dist:
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, md5sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_MD5,$(objects)) :
+       @$(MD5)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && ./configure --prefix=/usr
+       cd $(DIR_APP) && make $(MAKETUNING)
+       cd $(DIR_APP) && make install
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
index 7e57610b5bd83e118c2e3f52e7aa33ffda51e3da..a771d4641392c0e85d0e5ff98c1731edceb7396f 100644 (file)
@@ -34,7 +34,7 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = tvheadend
 PAK_VER    = 1
 
-DEPS       = ""
+DEPS       = "libdvbcsa"
 
 ###############################################################################
 # Top-level Rules
@@ -88,6 +88,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                --prefix=/usr \
                --nowerror \
                --enable-libav \
+               --enable-dvbcsa \
                --disable-hdhomerun_static \
                --disable-ffmpeg_static \
                --disable-libx264_static \
diff --git a/make.sh b/make.sh
index 6e8a5ac792d22014cc4b9b342d2fed33c579b728..491408ec89498e1d201ccb1f3c3763b5cc968138 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1506,6 +1506,7 @@ buildipfire() {
   lfsmake2 faad2
   lfsmake2 alac
   lfsmake2 ffmpeg
+  lfsmake2 libdvbcsa
   lfsmake2 tvheadend
   lfsmake2 vdr
   lfsmake2 vdr_streamdev