[SCM] tsdecrypt/master: Compile tsdecrypt twice, once per library used:

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Sun Apr 15 09:52:41 UTC 2012


The following commit has been merged in the master branch:
commit a34f14f958db4a5d3ff6cc1826314e72399aac48
Author: Alessio Treglia <alessio at debian.org>
Date:   Sun Apr 15 11:49:22 2012 +0200

    Compile tsdecrypt twice, once per library used:
    
    - tsdecrypt_dvbcsa uses libdvbcsa's routines
    - tsdecrypt_ffdecsa uses FFdecsa's decrypting routines
    
    I'll also provide a switch through update-alternatives, WIP

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..30e7e3d
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+tsdecrypt_ffdecsa
+tsdecrypt_dvbcsa
diff --git a/debian/control b/debian/control
index 8ba5b35..8aac137 100644
--- a/debian/control
+++ b/debian/control
@@ -5,7 +5,7 @@ Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alio
 Uploaders:
  Alessio Treglia <alessio at debian.org>
 Build-Depends:
- debhelper (>= 7),
+ debhelper (>= 7.0.50~),
  libdvbcsa-dev,
  libssl-dev
 Standards-Version: 3.9.3
diff --git a/debian/rules b/debian/rules
index 670d77f..bdf2082 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,3 +5,20 @@ export DESTDIR := $(CURDIR)/debian/tsdecrypt
 
 %:
 	dh $@
+
+override_dh_auto_configure:
+override_dh_auto_build:
+override_dh_auto_install:
+	# Build with FFdecsa
+	$(MAKE) ffdecsa
+	mv tsdecrypt tsdecrypt_ffdecsa
+	$(MAKE) distclean
+	# Build against libdvbcsa
+	$(MAKE)
+	mv tsdecrypt tsdecrypt_dvbcsa
+	# Install binaries
+	cd $(DESTDIR) && \
+		mkdir -p usr/bin && \
+		mkdir -p usr/lib/tsdecrypt/
+	install tsdecrypt_ffdecsa tsdecrypt_dvbcsa \
+		$(DESTDIR)/usr/lib/tsdecrypt

-- 
tsdecrypt packaging



More information about the pkg-multimedia-commits mailing list