Name libuchardet0
Description universal charset detection library - shared library
Version 0.0.8-1+b2
Package Base uchardet
Homepage https://www.freedesktop.org/wiki/Software/uchardet/
Maintainers ['James Cowgill <jcowgill@debian.org>']
Contributors []
Distro-repo https://salsa.debian.org/debian/uchardet
Sources ['https://sources.debian.org/data/main/u/uchardet/0.0.8-1/debian/watch']
Dependencies ['libc6', 'libgcc-s1', 'libstdc++6']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'cmake']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash eb772a1649d900ac46ffeab61a8b911e81d571f88ef5dcd0eed9aad5b45b003e
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

ifeq ($(DEB_HOST_ARCH_CPU),i386)
  # Uchardet seems to rely on IEEE 754 float rounding. Tell the build system to
  # use -ffloat-store to make testsuite pass and make i386 give consistent
  # results between architectures.
  # See https://bugs.freedesktop.org/show_bug.cgi?id=101033
  EXTRA_CMAKE_ARGS = -DTARGET_ARCHITECTURE=x86 -DCHECK_SSE2=OFF
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(EXTRA_CMAKE_ARGS)