#!/usr/bin/make -f # -*- mode: makefile; coding: utf-8 -*- # Copyright © 2010 Romain Beauxis # Copyright © 2010-2011 Alessio Treglia # Copyright © 2011 IOhannes m zmölnig # Description: Main Debian packaging script for gmerlin # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as # published by the Free Software Foundation; either version 2, or (at # your option) any later version. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see . include /usr/share/cdbs/1/rules/upstream-tarball.mk include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk include /usr/share/cdbs/1/rules/autoreconf.mk include /usr/share/cdbs/1/rules/utils.mk DEB_UPSTREAM_URL = http://downloads.sourceforge.net/gmerlin DEB_UPSTREAM_TARBALL_MD5 = 2f2a0880e738e71486f04c929ba067f4 DEB_UPSTREAM_REPACKAGE_EXCLUDES = ./include/gmerlin/bg_sem.h DEB_UPSTREAM_REPACKAGE_EXCLUDES += ./doc/ DEB_UPSTREAM_REPACKAGE_EXCLUDES += CVS/ # In order to regenerate 'debian/control' : # DEB_AUTO_UPDATE_DEBIAN_CONTROL=yes fakeroot debian/rules clean # Then check manually if everything's ok # Suppress scanning documentation images causing false alarms. DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^(icons/.*|doc/img/.*|skins/.*/.*|po/.*\.gmo|debian/(changelog|copyright(|_hints|_newhints)))$ ## create -dbg package from the stripped info DEB_DH_STRIP_ARGS := --ddeb-migration='gmerlin-dbg (<< 1.2.0~dfsg+1-5)' DEB_CONFIGURE_EXTRA_FLAGS := --docdir=\$${prefix}/share/doc/libgmerlin-doc \ --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \ --enable-static=no \ --disable-esd \ --with-cpuflags=none DEB_DH_MAKESHLIBS_ARGS_ALL := -- -v$(DEB_UPSTREAM_VERSION) ifneq ($(DEB_HOST_ARCH_OS),linux) DEB_CONFIGURE_EXTRA_FLAGS += --disable-v4l --disable-v4l2 endif ## set timestamp for reproducible builds BUILD_DATE:=$(shell date -u -d "$$(dpkg-parsechangelog -SDate)" +"%Y/%m/%d") CPPFLAGS+="-DBUILD_DATE='\"$(BUILD_DATE)\"'" LDFLAGS+=-Wl,--as-needed build/gmerlin:: ./apps/thumbnailer/gmerlin-video-thumbnailer -help-man | sed -e 's/-/\\-/g' > gmerlin-video-thumbnailer.1 PATH=$(CURDIR)/apps/player/:$(PATH) ./apps/player/gmerlin_launcher -help-man | sed -e 's/-/\\-/g' > gmerlin_launcher.1 ./tests/gmerlin_imgconvert -help-man | sed -e 's/-/\\-/g' > gmerlin_imgconvert.1 ./tests/gmerlin_visualize -help-man | sed -e 's/-/\\-/g' > gmerlin_visualize.1 clean:: rm -f gmerlin_imgconvert.1 gmerlin_launcher.1 gmerlin-video-thumbnailer.1 gmerlin_visualize.1