debian swirl logo

Back to the packages list libmimic

#!/usr/bin/make -f

buildbasedir := $(CURDIR)/debian/build
DEB_BUILDDIR := $(buildbasedir)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

PY_VERSIONS = $(shell pyversions --requested debian/control)

# Python rules
configure-stamp-%:
		mkdir $(buildbasedir)/$*
	cd $(buildbasedir)/$* && PYTHON= `which $*` $(DEB_CONFIGURE_SCRIPT_ENV) \
		    $(DEB_CONFIGURE_SCRIPT) \
			$(DEB_CONFIGURE_NORMAL_ARGS) \
			$(cdbs_configure_flags) \
			$(DEB_CONFIGURE_EXTRA_FLAGS) \
			$(DEB_CONFIGURE_USER_FLAGS)
		touch $@

configure/python-libmimic:: $(addprefix configure-stamp-, $(PY_VERSIONS))

build-stamp-%:
		make -C $(buildbasedir)/$*
		touch $@

build/python-libmimic:: $(addprefix build-stamp-, $(PY_VERSIONS))

install-stamp-%:
	make -C $(buildbasedir)/$* install DESTDIR= $(DEB_DESTDIR)
	# stop shipping *.a and *.la files for the Python module;
	# python-support moves them anyway (#412477)
		find $(DEB_DESTDIR)/usr/lib/$* -name \*.a -exec rm -f '{}' \;
		find $(DEB_DESTDIR)/usr/lib/$* -name \*.la -exec rm -f '{}' \;
		touch $@

install/python-libmimic:: $(addprefix install-stamp-, $(PY_VERSIONS))

binary-install/python-libmimic::
		dh_pysupport -ppython-libmimic

clean::
		-rm -rf $(buildbasedir)
		-rm -rf $(addprefix configure-stamp-, $(PY_VERSIONS))
		-rm -rf $(addprefix build-stamp-, $(PY_VERSIONS))
		-rm -rf $(addprefix install-stamp-, $(PY_VERSIONS))

Builds:

libmimic0
a video codec for mimic v2.x content
libmimic-dev
a video codec for mimic v2.x content (development files)
libmimic-doc
a video codec for mimic v2.x content (documentation)
python-libmimic
a video codec for mimic v2.x content (python bindings)