Name libpng16-16t64
Description PNG library - runtime (version 1.6)
Version 1.6.48-1+deb13u1
Package Base libpng1.6
Homepage http://libpng.org/pub/png/libpng.html
Maintainers ['Maintainers of libpng1.6 packages <libpng1.6@packages.debian.org>']
Contributors ['Gianfranco Costamagna <locutusofborg@debian.org>', 'Nobuhiro Iwamatsu <iwamatsu@debian.org>', 'Tobias Frost <tobi@debian.org>']
Distro-repo https://salsa.debian.org/debian/libpng1.6
Sources ['https://sources.debian.org/data/main/libp/libpng1.6/1.6.48-1+deb13u1/debian/watch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/CVE-2025-64505.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/CVE-2025-64506.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/CVE-2025-64720.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/CVE-2025-65018-part1.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/CVE-2025-65018-part2.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/CVE-2025-66293-part1.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/CVE-2025-66293-part2.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/libpng-1.6.39-apng.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/libpng-config.patch', 'https://sources.debian.org/src/libpng1.6/1.6.48-1+deb13u1/debian/patches/series']
Dependencies ['libc6', 'zlib1g']
Optional-Dependencies []
Build-Dependencies ['debhelper-compat', 'cmake', 'zlib1g-dev', 'mawk']
Provides []
Builddate
Architecture amd64
Distro-Version trixie
Licenses []
Hash 6100f03bf94d34a7da866d2d6741dd4a68d4c9d5f4b49494bf07fe4c5f785184
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS   := hardening=+all
export DEB_CFLAGS_MAINT_APPEND   := $(shell dpkg-buildflags --get CPPFLAGS)
export DEB_CXXFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS)
export DPKG_GENSYMBOLS_CHECK_LEVEL = 4
CC?=gcc

%:
	dh $@ --buildsystem=cmake

include /usr/share/dpkg/architecture.mk

ifneq (,$(filter $(DEB_HOST_ARCH_CPU),powerpc ppc64))
# VSX is an extension of AltiVec, which is not part of the baseline.
# see https://wiki.debian.org/ArchitectureSpecificsMemo
override_dh_auto_configure:
	dh_auto_configure -- -DPNG_POWERPC_VSX=off
endif

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_test
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
	$(CC) $(CFLAGS) $(CPPFLAGS) -Wall -g -O2 -c -o pngtest.o pngtest.c -I obj-$(DEB_HOST_GNU_TYPE)
	$(CC) $(CFLAGS) $(CPPFLAGS) $(LDFLAGS) -o pngtest-static -Wall -g -O2  pngtest.o obj-$(DEB_HOST_GNU_TYPE)/libpng16.a -lz -lm
	./pngtest-static
endif
endif

override_dh_makeshlibs:
	dh_makeshlibs --add-udeb=libpng16-16-udeb -a