shithub: libdvdcss

ref: 5084f4c8bc77f27e1f3ae43bca348c9b7fcd82be
dir: /debian/rules/

View raw version
#!/usr/bin/make -f
# debian/rules for libdvdcss - uses debhelper.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# This is the debhelper compatability version to use.
export DH_COMPAT=3

# Compilation options
export CONFIG_FLAGS="--prefix=/usr"

build: build-stamp
build-stamp:
	dh_testdir

	./configure --prefix=/usr --mandir=$${prefix}/share/man \
		--infodir=$${prefix}/share/info

	$(MAKE)

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	-$(MAKE) distclean

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(MAKE) install DESTDIR=`pwd`/debian/libdvdcss2/

	ln -s libdvdcss2 debian/libdvdcss2-dev/usr/share/doc/libdvdcss2-dev
	mv debian/libdvdcss2/usr/lib/*.so debian/libdvdcss2/usr/lib/*a \
		debian/libdvdcss2-dev/usr/lib/
	mv debian/libdvdcss2/usr/include debian/libdvdcss2-dev/usr/

# Build architecture-independent files here.
binary-indep: build install
# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build install
#	dh_testversion
	dh_testdir
	dh_testroot
#	dh_installdebconf	
	dh_installdocs AUTHORS README
#	dh_installexamples
#	dh_installmenu
#	dh_installemacsen
#	dh_installpam
#	dh_installinit
#	dh_installcron
#	dh_installman
#	dh_installinfo
#	dh_undocumented
	dh_installchangelogs ChangeLog
	dh_link
	dh_strip
	dh_compress
	dh_fixperms
	dh_makeshlibs
	dh_installdeb
#	dh_perl

	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install