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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
|
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
DEB_DH_MAKESHLIBS_ARGS := -Xavg
PYTHON_VERSIONS := $(shell pyversions -vr)
CONFIGURE_ARGS := --prefix=/usr --mandir=/usr/share/man \
--with-boost-thread=boost_thread-mt
CHECK_DIRS := base graphics lmfit player conradrelais imaging parport python video
CPPFLAGS := -D__STDC_CONSTANT_MACROS
DEB_INSTALL_MANPAGES_python-libavg := $(DEB_SRCDIR)/debian/*.1
makebuilddir/python-libavg::
./bootstrap
configure/python-libavg:: $(addprefix debian/stamp-configure, $(PYTHON_VERSIONS))
debian/stamp-configure%:
mkdir build$*
cd build$* && ../configure $(CONFIGURE_ARGS) PYTHON=python$* \
BOOST_PYTHON_LIBS=-lboost_python-py$(subst .,,$*)
touch $@
build/python-libavg:: $(addprefix debian/stamp-build, $(PYTHON_VERSIONS))
debian/stamp-build%:
dh_auto_build --parallel -B build$*
touch $@
install/python-libavg:: $(addprefix debian/stamp-install, $(PYTHON_VERSIONS))
dh_python2 -p$(cdbs_curpkg)
debian/stamp-install%:
-AVG_CONSOLE_TEST=1 make -C build$*/src check SUBDIRS="$(CHECK_DIRS)"
make -C build$* install DESTDIR=$(DEB_DESTDIR)
rmdir -p --ignore-fail-on-non-empty $(DEB_DESTDIR)/usr/share/avg
find $(DEB_DESTDIR) -name "*.la" -exec rm -f {} +
find $(DEB_DESTDIR) -type d -empty -delete
prename -f 's/\.py$$//' $(DEB_DESTDIR)/usr/bin/avg_*.py
touch $@
clean::
$(RM) -r build* debian/stamp-* py-compile
common-binary-predeb-arch:: list-missing
get-orig-source:
uscan --force-download --download-version $(DEB_UPSTREAM_VERSION) --rename
|