debian swirl logo

Back to the packages list gst-libav1.0

#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/autoreconf.mk

DEB_DH_AUTORECONF_ARGS += --as-needed

export AUTOPOINT= true

export DEB_BUILD_MAINT_OPTIONS= hardening=-all
include /usr/share/dpkg/buildflags.mk

CFLAGS += -Wno-error
LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed

# Let's decide the package name and url depending on the distribution
DISTRO = "$(shell dpkg-vendor --query vendor)"

GST_PACKAGE_NAME := "GStreamer libav Plugins (unknown Debian derivative)"
GST_PACKAGE_ORIGIN= "http://packages.qa.debian.org/gst-libav1.0"

ifeq ($(DISTRO),"Debian")
GST_PACKAGE_NAME := "GStreamer libav Plugins (Debian)"
GST_PACKAGE_ORIGIN= "http://packages.qa.debian.org/gst-libav1.0"
endif

ifeq ($(DISTRO),"Ubuntu")
GST_PACKAGE_NAME := "GStreamer libav Plugins (Ubuntu)"
GST_PACKAGE_ORIGIN= "https://launchpad.net/distros/ubuntu/+source/gst-libav1.0"
endif


DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH 2>/dev/null)

DEB_CONFIGURE_EXTRA_FLAGS += --with-system-libav \
                             --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) \
                             --with-package-name=$(GST_PACKAGE_NAME) \
                             --with-package-origin=$(GST_PACKAGE_ORIGIN)

DEB_INSTALL_DOCS_ALL += debian/README.Debian NEWS

DEB_DH_STRIP_ARGS := --dbg-package=gstreamer1.0-libav-dbg

install/gst-libav1.0::
		rm -f debian/gstreamer1.0-libav/usr/lib/*/gstreamer-1.0/libgst*.la
		rm -f debian/gstreamer1.0-libav/usr/lib/*/gstreamer-1.0/libgst*.a

common-binary-fixup-arch::
		dh_gstscancodecs

Builds:

gstreamer1.0-libav-dbg
libav plugin for gstreamer (debug symbols)
gstreamer1.0-libav
libav plugin for gstreamer