File: rules

package info (click to toggle)
tsdecrypt 10.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 1,152 kB
  • ctags: 2,002
  • sloc: ansic: 14,373; makefile: 253; sh: 166
file content (27 lines) | stat: -rwxr-xr-x 538 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/usr/bin/make -f

export PREFIX=/usr
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) dvbcsa
	mv tsdecrypt tsdecrypt_dvbcsa
	# Install binaries
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	install tsdecrypt_ffdecsa tsdecrypt_dvbcsa \
		$(DESTDIR)$(PREFIX)/bin

override_dh_auto_clean:
	dh_auto_clean
	rm -f FFdecsa_build_PARALLEL_*.log