#!/usr/bin/make -f export DEB_CXXFLAGS_MAINT_APPEND=-pthread -Wall -std=c++14 export DEB_LDFLAGS_MAINT_APPEND=-pthread export CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS | sed s/-O2/-O3/) DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) LIB_PKG = libre2-11 ABI_PKG = $(LIB_PKG)-absl$(shell pkgconf --modversion absl_base) %: dh $@ override_dh_auto_build: rm -f re2/perl_groups.cc re2/unicode_casefold.cc re2/unicode_groups.cc dh_auto_build -- REBUILD_TABLES=1 override_dh_auto_install: dh_auto_install -- prefix=/usr libdir=/usr/lib/$(DEB_HOST_MULTIARCH) override_dh_makeshlibs: echo "re2:Provides=$(ABI_PKG)" >> debian/$(LIB_PKG).substvars dh_makeshlibs -p$(LIB_PKG) -V "$(ABI_PKG)" dh_makeshlibs --remaining-packages override_dh_installdocs: dh_installdocs --link-doc=$(LIB_PKG) override_dh_gencontrol: dh_gencontrol -- -VBuilt-Using='$(shell dpkg-query -f'$${source:Package} (= $${source:Version})' -W unicode-data)'