Name libxvidcore4
Description Open source MPEG-4 video codec (library)
Version 2:1.3.7-1build1
Package Base xvidcore
Homepage https://labs.xvid.com/source/
Maintainers ['Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>']
Contributors ['Fabian Greffrath <fabian@debian.org>', 'Loïc Martin <loic.martin3@gmail.com>', 'Reinhard Tartler <siretart@tauware.de>']
Distro-repo https://git.launchpad.net/ubuntu/+source/xvidcore/tree/?h=ubuntu/noble
Sources ['https://git.launchpad.net/ubuntu/+source/libxvidcore4/plain/debian/watch?h=ubuntu/noble']
Dependencies ['libc6']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'yasm']
Provides []
Builddate
Architecture amd64
Distro-Version noble
Licenses []
Hash 4f70e6d3db3d3069797d84bccb082dbf6b14d6e837cbef6197519d8be8779cdd
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

export DEB_CFLAGS_MAINT_APPEND += $(shell dpkg-buildflags --get CPPFLAGS)
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed -Wl,--no-undefined

export DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)
export DEB_HOST_ARCH_OS  ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)

# Explicitely disable Altivec support on powerpc until we introduce flavours
ifeq ($(DEB_HOST_ARCH_CPU),powerpc)
	confflags += --disable-assembly
endif

# Explicitely disable yasm support on kfreebsd, it's broken on 64bit;
# see: http://www.freebsd.org/cgi/cvsweb.cgi/ports/multimedia/xvid/Makefile?rev=1.36
ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
	confflags += --disable-assembly
endif

%:
	dh $@ --sourcedirectory=build/generic

override_dh_auto_configure:
	cd build/generic && autoconf
	dh_auto_configure -- $(confflags)