| 1 |
#!/usr/bin/make -f |
| 2 |
# Sample debian/rules that uses debhelper. |
| 3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
| 4 |
|
| 5 |
# Uncomment this to turn on verbose mode. |
| 6 |
export DH_VERBOSE=1 |
| 7 |
|
| 8 |
|
| 9 |
# quantum depth is channel depth |
| 10 |
export QUANTUMDEPTH ?= q16 q16hdri |
| 11 |
# lib version, run make -f debian/rules update_pkg in order to upgrade |
| 12 |
export CORESOVERSION ?= 10 |
| 13 |
export WANDSOVERSION ?= 10 |
| 14 |
export PPSOVERSION ?= 5 |
| 15 |
|
| 16 |
# minimal version ABI compatible of common |
| 17 |
export COMMONMINVERSION ?= 8:7.0.0~ |
| 18 |
|
| 19 |
# poc arch for test empty means no test |
| 20 |
POC_ARCH ?= any-i386 any-amd64 |
| 21 |
VALGRIND_POC_ARCH ?= |
| 22 |
|
| 23 |
# for hardening |
| 24 |
# export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 25 |
|
| 26 |
include /usr/share/dpkg/pkg-info.mk |
| 27 |
include /usr/share/dpkg/architecture.mk |
| 28 |
|
| 29 |
# version extracted from changelog |
| 30 |
#DEB_VERSION_UPSTREAM |
| 31 |
DEB_UPSTREAM_VERSION_DROPREVISION := $(shell set -e;echo $(DEB_VERSION_UPSTREAM) | sed -r "s/(^.+)\..+$$/\1/g") |
| 32 |
DEB_UPSTREAM_VERSION_MAJOR := $(shell set -e;echo $(DEB_VERSION_UPSTREAM) | sed -r "s/(^[[:digit:]]+)\..+$$/\1/g") |
| 33 |
export IMVERSION := $(DEB_UPSTREAM_VERSION_MAJOR) |
| 34 |
|
| 35 |
# where to put documentation (relative) |
| 36 |
export DOC_PKG_PATH := usr/share/doc/imagemagick-$(DEB_UPSTREAM_VERSION_MAJOR)-common/html |
| 37 |
|
| 38 |
# quantum depth used by default and by quantum independant package (first one of QUANTUMDEPTH) |
| 39 |
export DEFAULTQUANTUMDEPTH := $(shell echo $(QUANTUMDEPTH) | cut -f 1 -d ' ') |
| 40 |
export NOQUANTUMDEPTH := $(shell echo $(QUANTUMDEPTH) | cut -f 1 -d ' ') |
| 41 |
|
| 42 |
# convert used for icons |
| 43 |
export MAGICK ?= ./magick.sh magick |
| 44 |
export CONVERT ?= $(MAGICK) convert |
| 45 |
VALGRIND_CONVERT ?= ./libtool --mode=execute valgrind $(CONVERT) |
| 46 |
ifneq (,$(filter cross,$(DEB_BUILD_PROFILES))) |
| 47 |
CROSS_CONVERT = convert |
| 48 |
else |
| 49 |
CROSS_CONVERT = $(CONVERT) |
| 50 |
endif |
| 51 |
CONVERT_FLAGS ?= -background none -define filter:blur=0.75 -filter Gaussian |
| 52 |
|
| 53 |
# perl path |
| 54 |
ifneq ($(DEB_BUILD_ARCH),$(DEB_HOST_ARCH)) |
| 55 |
PERLVER := $(shell perl -MConfig -e 'print $$Config{version}') |
| 56 |
PERL5LIB := /usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER)$(if $(PERL5LIB),:$(PERL5LIB)) |
| 57 |
export PERL5LIB |
| 58 |
endif |
| 59 |
export DEB_PERL_ARCHLIB := $(shell perl -MConfig -e 'print $$Config{vendorarch}') |
| 60 |
|
| 61 |
|
| 62 |
# configure cache for acceleration |
| 63 |
STATIC_CONFIGURE_CACHEFILE := config.cache |
| 64 |
CONFIGURE_CACHEFILE ?= $(STATIC_CONFIGURE_CACHEFILE) |
| 65 |
|
| 66 |
STATIC_CONFIGURE_OPTIONS_CACHE := \ |
| 67 |
--cache-file=../../$(CONFIGURE_CACHEFILE) |
| 68 |
CONFIGURE_OPTIONS_CACHE ?= $(STATIC_CONFIGURE_OPTIONS_CACHE) |
| 69 |
|
| 70 |
# disable arch optimization see #757996 and AX_GCC_ARCHFLAG m4 macro |
| 71 |
STATIC_CONFIGURE_ARCH_FLAGS := --without-gcc-arch |
| 72 |
CONFIGURE_ARCH_FLAGS ?= $(STATIC_CONFIGURE_ARCH_FLAGS) |
| 73 |
|
| 74 |
# NOTICE: remove EPL delegate lib gvc (license problem) |
| 75 |
# should be last variable |
| 76 |
STATIC_CONFIGURE_OPTIONS := \ |
| 77 |
--with-security-policy=debian \ |
| 78 |
--enable-reproducible-build \ |
| 79 |
--prefix=/usr \ |
| 80 |
--libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \ |
| 81 |
--docdir=/$(DOC_PKG_PATH) \ |
| 82 |
--with-extra-doc-dir=' (on debian system you may install the imagemagick-$(IMVERSION) package)' \ |
| 83 |
--sysconfdir=/etc \ |
| 84 |
--with-includearch-dir=/usr/include/$(DEB_HOST_MULTIARCH)/ \ |
| 85 |
--mandir=/usr/share/man \ |
| 86 |
--infodir=/usr/share/info \ |
| 87 |
--with-modules \ |
| 88 |
--with-magick-plus-plus \ |
| 89 |
--with-djvu \ |
| 90 |
--with-heic \ |
| 91 |
--with-openjp2 \ |
| 92 |
--with-webp \ |
| 93 |
--with-wmf \ |
| 94 |
--without-gvc \ |
| 95 |
--enable-shared \ |
| 96 |
--without-dps \ |
| 97 |
--without-fpx \ |
| 98 |
--with-perl \ |
| 99 |
--with-perl-options='INSTALLDIRS=vendor' \ |
| 100 |
--x-includes=/usr/include/X11 \ |
| 101 |
--x-libraries=/usr/lib/X11 \ |
| 102 |
--without-rsvg \ |
| 103 |
--with-fftw \ |
| 104 |
MVDelegate=/bin/mv \ |
| 105 |
RMDelegate=/bin/rm |
| 106 |
|
| 107 |
CONFIGURE_OPTIONS ?= $(STATIC_CONFIGURE_OPTIONS) \ |
| 108 |
$(CONFIGURE_OPTIONS_CACHE) \ |
| 109 |
$(CONFIGURE_ARCH_FLAGS) |
| 110 |
|
| 111 |
# export for alternatives |
| 112 |
export MAGICK_PROGRAMS := compare animate convert composite conjure import identify stream display montage mogrify magick magick-script |
| 113 |
|
| 114 |
MAGICK_ANY_QUANTUM_PACKAGES := imagemagick-$(IMVERSION).$$QUANTUM \ |
| 115 |
libmagickcore-${IMVERSION}.$$QUANTUM-${CORESOVERSION} \ |
| 116 |
libmagickcore-${IMVERSION}.$$QUANTUM-${CORESOVERSION}-extra \ |
| 117 |
libmagickwand-${IMVERSION}.$$QUANTUM-${WANDSOVERSION} \ |
| 118 |
libmagick++-${IMVERSION}.$$QUANTUM-${PPSOVERSION} \ |
| 119 |
libmagick++-${IMVERSION}.$$QUANTUM-dev \ |
| 120 |
libmagickcore-${IMVERSION}.$$QUANTUM-dev \ |
| 121 |
libmagickwand-${IMVERSION}.$$QUANTUM-dev \ |
| 122 |
libimage-magick-$$QUANTUM-perl |
| 123 |
|
| 124 |
MAGICK_ANY_PACKAGES := libmagickcore-$(IMVERSION)-arch-config |
| 125 |
MAGICK_ANY_COMPAT_PACKAGES := imagemagick |
| 126 |
|
| 127 |
MAGICK_ALL_PACKAGES := imagemagick-$(IMVERSION)-common \ |
| 128 |
imagemagick-$(IMVERSION)-doc \ |
| 129 |
libmagickcore-$(IMVERSION)-headers \ |
| 130 |
libmagickwand-$(IMVERSION)-headers \ |
| 131 |
libmagick++-$(IMVERSION)-headers \ |
| 132 |
libimage-magick-perl |
| 133 |
|
| 134 |
MAGICK_ALL_COMPAT_PACKAGES := imagemagick-common \ |
| 135 |
imagemagick-doc \ |
| 136 |
perlmagick \ |
| 137 |
libmagickcore-dev \ |
| 138 |
libmagickwand-dev \ |
| 139 |
libmagick++-dev |
| 140 |
|
| 141 |
# run POC |
| 142 |
TEST_POC_CMD:= \ |
| 143 |
POCFOUND='no'; \ |
| 144 |
set -e; for POC in $(POC_ARCH); do \ |
| 145 |
if dpkg-architecture -i$$POC; then \ |
| 146 |
POCFOUND='yes'; break;\ |
| 147 |
fi; \ |
| 148 |
done; \ |
| 149 |
echo $$POCFOUND |
| 150 |
TEST_POC := $(shell $(TEST_POC_CMD)) |
| 151 |
|
| 152 |
VALGRIND_TEST_POC_CMD:= \ |
| 153 |
POCFOUND='no'; \ |
| 154 |
set -e; for POC in $(VALGRIND_POC_ARCH); do \ |
| 155 |
if dpkg-architecture -i$$POC; then \ |
| 156 |
POCFOUND='yes'; break;\ |
| 157 |
fi; \ |
| 158 |
done; \ |
| 159 |
echo $$POCFOUND |
| 160 |
|
| 161 |
VALGRIND_TEST_POC := $(shell $(VALGRIND_TEST_POC_CMD)) |
| 162 |
# check if FPU |
| 163 |
HAVE_FPU_CMD := \ |
| 164 |
set -e; \ |
| 165 |
case $(DEB_HOST_MULTIARCH) in \ |
| 166 |
mips*-*) \ |
| 167 |
if grep " FPU" /proc/cpuinfo > /dev/null; then \ |
| 168 |
echo -n "yes"; \ |
| 169 |
else \ |
| 170 |
echo -n "no"; \ |
| 171 |
fi; \ |
| 172 |
;;\ |
| 173 |
*) \ |
| 174 |
echo -n "yes"; \ |
| 175 |
;; \ |
| 176 |
esac; |
| 177 |
|
| 178 |
STATIC_HAVE_FPU := $(shell $(HAVE_FPU_CMD)) |
| 179 |
export HAVE_FPU ?= $(STATIC_HAVE_FPU) |
| 180 |
|
| 181 |
# upper/lower case function |
| 182 |
LC = ${shell set -e; echo '$1' | sed -e 's/\(.*\)/\L\1/'} |
| 183 |
UC = ${shell set -e; echo '$1' | sed -e 's/\(.*\)/\U\1/'} |
| 184 |
REPLACE_QUANTUM = ${shell set -e;echo '$1' | sed -e 's/$$QUANTUM/$2/g'} |
| 185 |
MAGICK_ANY_Q_PACKAGES = ${shell set -e;echo '$(MAGICK_ANY_QUANTUM_PACKAGES)' | sed -e 's/$$QUANTUM/$1/g'} |
| 186 |
|
| 187 |
# extract quantum |
| 188 |
QUANTUM_PART = ${shell set -e;echo -n '$1' | sed -r 's/q?([[:digit:]]*)(HDRI)?/\1/gi'} |
| 189 |
HDRI_PART = ${shell set -e;case $$(set -e; echo -n '$1' | sed -e 's/\(.*\)/\L\1/') in *hdri) echo 'yes';; *) echo 'no' ;; esac } |
| 190 |
HDRI_STR_PART = ${shell set -e;case $$(set -e;echo -n '$1' | sed -e 's/\(.*\)/\L\1/') in *hdri) echo ' with high dynamic range';; *) echo '' ;; esac } |
| 191 |
PRIO_COMPUTATION =${shell $(CURDIR)/debian/scripts/quantumpriority.sh '$1'} |
| 192 |
|
| 193 |
# bug #840682 |
| 194 |
DH_EXEC_SUBST = /usr/lib/dh-exec/dh-exec-subst |
| 195 |
DH_EXEC_SUBST_ENV = debian/scripts/dh-exec-subst-env |
| 196 |
|
| 197 |
|
| 198 |
# q16 quantum is unsigned short |
| 199 |
QUANTUMCTYPE_q16=unsigned short |
| 200 |
# q16 quantum is float_t converted (float or double depending of arch) |
| 201 |
# to stable ABI type at compilation time by autoconf |
| 202 |
# use a wrapper to capture float_t |
| 203 |
QUANTUMCTYPE_q16hdri:=$(shell $(CURDIR)/debian/test_float_t.sh) |
| 204 |
# extract type of quantum. Used with ${call } |
| 205 |
QUANTUMCTYPE = $(QUANTUMCTYPE_$(1)) |
| 206 |
|
| 207 |
# js dir |
| 208 |
JS_DIR=www/assets |
| 209 |
|
| 210 |
dummy: |
| 211 |
|
| 212 |
|
| 213 |
test_fpu: |
| 214 |
echo $(HAVE_FPU) |
| 215 |
|
| 216 |
PROVIDES_COMPAT_VERSION=$(DEB_VERSION) |
| 217 |
PROVIDES_PKG_LIBMAGICKCORE_DEV_DEFAULTQ=libmagickcore-${IMVERSION}.defaultquantum-dev, libmagickcore-dev (=$${binary:Version}), |
| 218 |
PROVIDES_LIBMAGICKCORE_DEV_DEFAULTQ=Provides: ${PROVIDES_PKG_LIBMAGICKCORE_DEV_DEFAULTQ} |
| 219 |
PROVIDES_PKG_LIBMAGICKWAND_DEV_DEFAULTQ=libmagickwand-${IMVERSION}.defaultquantum-dev, libmagickwand-dev (=$${binary:Version}), |
| 220 |
PROVIDES_LIBMAGICKWAND_DEV_DEFAULTQ=Provides: ${PROVIDES_PKG_LIBMAGICKWAND_DEV_DEFAULTQ} |
| 221 |
PROVIDES_PKG_LIBMAGICKPP_DEV_DEFAULTQ=libmagick++-${IMVERSION}.defaultquantum-dev, libmagick++-dev (=$${binary:Version}) |
| 222 |
PROVIDES_LIBMAGICKPP_DEV_DEFAULTQ=Provides: ${PROVIDES_PKG_LIBMAGICKPP_DEV_DEFAULTQ} |
| 223 |
PROVIDES_PKG_MAGICK_PERL_DEFAULTQ=libimage-magick-defaultquantum-perl, perlmagick (=$${binary:Version}) |
| 224 |
PROVIDES_MAGICK_PERL_DEFAULTQ=Provides: ${PROVIDES_PKG_MAGICK_PERL_DEFAULTQ} |
| 225 |
DELPLACEHOLDER=XXXXX_DELETE_XXXXX |
| 226 |
|
| 227 |
# update package files |
| 228 |
update_pkg.%: |
| 229 |
# control |
| 230 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 231 |
HDRI=$(call HDRI_PART,$*) \ |
| 232 |
HDRI_STR="$(call HDRI_STR_PART,$*)" \ |
| 233 |
QUANTUMDEPTH=$* \ |
| 234 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 235 |
DESC_QUANTUM="$$QUANTUM bits$$HDRI_STR" \ |
| 236 |
PROVIDES_LIBMAGICKCORE_DEV='$(if $(subst $(DEFAULTQUANTUMDEPTH),,$*),$(DELPLACEHOLDER),${PROVIDES_LIBMAGICKCORE_DEV_DEFAULTQ})' \ |
| 237 |
PROVIDES_LIBMAGICKWAND_DEV='$(if $(subst $(DEFAULTQUANTUMDEPTH),,$*),$(DELPLACEHOLDER),${PROVIDES_LIBMAGICKWAND_DEV_DEFAULTQ})' \ |
| 238 |
PROVIDES_LIBMAGICKPP_DEV='$(if $(subst $(DEFAULTQUANTUMDEPTH),,$*),$(DELPLACEHOLDER),${PROVIDES_LIBMAGICKPP_DEV_DEFAULTQ})' \ |
| 239 |
PROVIDES_MAGICK_PERL='$(if $(subst $(DEFAULTQUANTUMDEPTH),,$*),$(DELPLACEHOLDER),${PROVIDES_MAGICK_PERL_DEFAULTQ})' \ |
| 240 |
$(DH_EXEC_SUBST_ENV) $(CURDIR)/debian/control.d/quantum.in > $(CURDIR)/debian/control.d/quantum.$*; |
| 241 |
if test x$* = x$(DEFAULTQUANTUMDEPTH); then \ |
| 242 |
cat $(CURDIR)/debian/control.d/quantum.$* | sed -e '/$(DELPLACEHOLDER)/d' >> $(CURDIR)/debian/control.d/quantum; \ |
| 243 |
else \ |
| 244 |
cat $(CURDIR)/debian/control.d/quantum.$* | sed -e '/defaultquantum/d' -e '/$(DELPLACEHOLDER)/d' >> $(CURDIR)/debian/control.d/quantum; \ |
| 245 |
fi; |
| 246 |
# test |
| 247 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 248 |
HDRI=$(call HDRI_PART,$*) \ |
| 249 |
QUANTUMDEPTH=$* \ |
| 250 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 251 |
$(DH_EXEC_SUBST_ENV) $(CURDIR)/debian/tests.d/control.quantum.in >> $(CURDIR)/debian/tests.d/control.quantum |
| 252 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 253 |
HDRI=$(call HDRI_PART,$*) \ |
| 254 |
QUANTUMDEPTH=$* \ |
| 255 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 256 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/tests.d/rose-IMVERSION.QUANTUMDEPTH.in > $(CURDIR)/debian/tests/rose-$(IMVERSION).$* |
| 257 |
chmod +x $(CURDIR)/debian/tests/rose-$(IMVERSION).$* |
| 258 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 259 |
HDRI=$(call HDRI_PART,$*) \ |
| 260 |
QUANTUMDEPTH=$* \ |
| 261 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 262 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/tests.d/perlmagick-IMVERSION.QUANTUMDEPTH.in > $(CURDIR)/debian/tests/perlmagick-$(IMVERSION).$* |
| 263 |
chmod +x $(CURDIR)/debian/tests/perlmagick-$(IMVERSION).$* |
| 264 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 265 |
HDRI=$(call HDRI_PART,$*) \ |
| 266 |
QUANTUMDEPTH=$* \ |
| 267 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 268 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/tests.d/perlmagick-leak-IMVERSION.QUANTUMDEPTH.in > $(CURDIR)/debian/tests/perlmagick-leak-$(IMVERSION).$* |
| 269 |
chmod +x $(CURDIR)/debian/tests/perlmagick-leak-$(IMVERSION).$* |
| 270 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 271 |
HDRI=$(call HDRI_PART,$*) \ |
| 272 |
QUANTUMDEPTH=$* \ |
| 273 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 274 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/tests.d/perlmagick-gd-IMVERSION.QUANTUMDEPTH.in > $(CURDIR)/debian/tests/perlmagick-gd-$(IMVERSION).$* |
| 275 |
chmod +x $(CURDIR)/debian/tests/perlmagick-gd-$(IMVERSION).$* |
| 276 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 277 |
HDRI=$(call HDRI_PART,$*) \ |
| 278 |
QUANTUMDEPTH=$* \ |
| 279 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 280 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/tests.d/perlmagick-fonts-IMVERSION.QUANTUMDEPTH.in > $(CURDIR)/debian/tests/perlmagick-fonts-$(IMVERSION).$* |
| 281 |
chmod +x $(CURDIR)/debian/tests/perlmagick-fonts-$(IMVERSION).$* |
| 282 |
# clean up |
| 283 |
rm -f $(CURDIR)/debian/control.d/quantum.$* |
| 284 |
|
| 285 |
update_pkg: $(foreach Q,$(QUANTUMDEPTH),update_pkg.$Q) |
| 286 |
$(DH_EXEC_SUBST_ENV) $(CURDIR)/debian/control.d/noquantum.in >> $(CURDIR)/debian/control.d/noquantum |
| 287 |
$(DH_EXEC_SUBST_ENV) $(CURDIR)/debian/control.d/compat.in > $(CURDIR)/debian/control.d/compat |
| 288 |
printf "# Autogenerated %s from make -f debian/rules $@\n" "`LC_ALL=C date`" > $(CURDIR)/debian/control |
| 289 |
cat $(CURDIR)/debian/control.d/noquantum >> $(CURDIR)/debian/control |
| 290 |
cat $(CURDIR)/debian/control.d/quantum >> $(CURDIR)/debian/control |
| 291 |
cat $(CURDIR)/debian/control.d/compat >> $(CURDIR)/debian/control |
| 292 |
cat $(CURDIR)/debian/tests.d/control.quantum $(CURDIR)/debian/tests.d/control.noquantum > $(CURDIR)/debian/tests/control |
| 293 |
cp $(CURDIR)/debian/tests.d/rmagick-leak $(CURDIR)/debian/tests/rmagick-leak |
| 294 |
rm -f $(CURDIR)/debian/control.d/compat |
| 295 |
rm -f $(CURDIR)/debian/control.d/quantum |
| 296 |
rm -f $(CURDIR)/debian/control.d/noquantum |
| 297 |
rm -f $(CURDIR)/debian/tests.d/control.quantum |
| 298 |
|
| 299 |
%: |
| 300 |
if test "BUG#704225" = "SOLVED"; then \ |
| 301 |
dh $@ --parallel --with pkgkde_symbolshelper; \ |
| 302 |
else \ |
| 303 |
dh $@ --no-parallel --with pkgkde_symbolshelper; \ |
| 304 |
fi; |
| 305 |
|
| 306 |
|
| 307 |
override_dh_autoreconf: |
| 308 |
@echo "CPU has FPU...$(HAVE_FPU)" |
| 309 |
dh_autoreconf --as-needed |
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
# make autogenerated file |
| 314 |
override_dh_auto_configure-arch_generatefile_quantum.%: |
| 315 |
# imagemagick-IMVERSION.QUANTUMDEPTH |
| 316 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 317 |
HDRI=$(call HDRI_PART,$*) \ |
| 318 |
QUANTUMDEPTH=$* \ |
| 319 |
dh-exec $(CURDIR)/debian/imagemagick-IMVERSION.QUANTUMDEPTH.manpages.in > $(CURDIR)/debian/imagemagick-$(IMVERSION).$*.manpages |
| 320 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 321 |
HDRI=$(call HDRI_PART,$*) \ |
| 322 |
QUANTUMDEPTH=$* \ |
| 323 |
dh-exec $(CURDIR)/debian/imagemagick-IMVERSION.QUANTUMDEPTH.mime.in > $(CURDIR)/debian/imagemagick-$(IMVERSION).$*.mime |
| 324 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 325 |
HDRI=$(call HDRI_PART,$*) \ |
| 326 |
QUANTUMDEPTH=$* \ |
| 327 |
dh-exec $(CURDIR)/debian/imagemagick-IMVERSION.QUANTUMDEPTH.desktop.in > $(CURDIR)/debian/imagemagick-$(IMVERSION).$*.desktop |
| 328 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 329 |
HDRI=$(call HDRI_PART,$*) \ |
| 330 |
QUANTUMDEPTH=$* \ |
| 331 |
dh-exec $(CURDIR)/debian/imagemagick-IMVERSION.QUANTUMDEPTH.install.in > $(CURDIR)/debian/imagemagick-$(IMVERSION).$*.install |
| 332 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 333 |
HDRI=$(call HDRI_PART,$*) \ |
| 334 |
QUANTUMDEPTH=$* \ |
| 335 |
QUANTUM_PRIO=$(call PRIO_COMPUTATION,$*) \ |
| 336 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/imagemagick-IMVERSION.QUANTUMDEPTH.postinst.in > $(CURDIR)/debian/imagemagick-$(IMVERSION).$*.postinst |
| 337 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 338 |
HDRI=$(call HDRI_PART,$*) \ |
| 339 |
QUANTUMDEPTH=$* \ |
| 340 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/imagemagick-IMVERSION.QUANTUMDEPTH.prerm.in > $(CURDIR)/debian/imagemagick-$(IMVERSION).$*.prerm |
| 341 |
|
| 342 |
# libimage-magick-QUANTUM-perl |
| 343 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 344 |
HDRI=$(call HDRI_PART,$*) \ |
| 345 |
QUANTUMDEPTH=$* \ |
| 346 |
dh-exec $(CURDIR)/debian/libimage-magick-QUANTUMDEPTH-perl.install.in > $(CURDIR)/debian/libimage-magick-$*-perl.install |
| 347 |
|
| 348 |
# libmagick++-IMVERSION.QUANTUMDEPTH-PPSOVERSION.install.in |
| 349 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 350 |
HDRI=$(call HDRI_PART,$*) \ |
| 351 |
QUANTUMDEPTH=$* \ |
| 352 |
dh-exec $(CURDIR)/debian/libmagick++-IMVERSION.QUANTUMDEPTH-PPSOVERSION.install.in > $(CURDIR)/debian/libmagick++-$(IMVERSION).$*-$(PPSOVERSION).install |
| 353 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 354 |
HDRI=$(call HDRI_PART,$*) \ |
| 355 |
QUANTUMDEPTH=$* \ |
| 356 |
dh-exec $(CURDIR)/debian/libmagick++-IMVERSION.QUANTUMDEPTH-dev.install.in > $(CURDIR)/debian/libmagick++-$(IMVERSION).$*-dev.install |
| 357 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 358 |
HDRI='$(call HDRI_PART,$*)' \ |
| 359 |
QUANTUMDEPTH='$*' \ |
| 360 |
UCQUANTUMDEPTH='$(call UC,$*)' \ |
| 361 |
QUANTUMCTYPE='$(call QUANTUMCTYPE,$*)' \ |
| 362 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/libmagick++-IMVERSION.QUANTUMDEPTH-PPSOVERSION.symbols.in > $(CURDIR)/debian/libmagick++-$(IMVERSION).$*-$(PPSOVERSION).symbols |
| 363 |
|
| 364 |
# libmagickcore |
| 365 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 366 |
HDRI=$(call HDRI_PART,$*) \ |
| 367 |
QUANTUMDEPTH=$* \ |
| 368 |
dh-exec $(CURDIR)/debian/libmagickcore-IMVERSION.QUANTUMDEPTH-CORESOVERSION.install.in > $(CURDIR)/debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION).install |
| 369 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 370 |
HDRI=$(call HDRI_PART,$*) \ |
| 371 |
QUANTUMDEPTH=$* \ |
| 372 |
dh-exec $(CURDIR)/debian/libmagickcore-IMVERSION.QUANTUMDEPTH-CORESOVERSION-extra.install.in > $(CURDIR)/debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION)-extra.install |
| 373 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 374 |
HDRI=$(call HDRI_PART,$*) \ |
| 375 |
QUANTUMDEPTH=$* \ |
| 376 |
dh-exec $(CURDIR)/debian/libmagickcore-IMVERSION.QUANTUMDEPTH-dev.install.in > $(CURDIR)/debian/libmagickcore-$(IMVERSION).$*-dev.install |
| 377 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 378 |
HDRI=$(call HDRI_PART,$*) \ |
| 379 |
QUANTUMDEPTH=$* \ |
| 380 |
UCQUANTUMDEPTH='$(call UC,$*)' \ |
| 381 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/libmagickcore-IMVERSION.QUANTUMDEPTH-CORESOVERSION.symbols.in > $(CURDIR)/debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION).symbols |
| 382 |
|
| 383 |
# wand |
| 384 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 385 |
HDRI=$(call HDRI_PART,$*) \ |
| 386 |
QUANTUMDEPTH=$* \ |
| 387 |
dh-exec $(CURDIR)/debian/libmagickwand-IMVERSION.QUANTUMDEPTH-WANDSOVERSION.install.in > $(CURDIR)/debian/libmagickwand-$(IMVERSION).$*-$(WANDSOVERSION).install |
| 388 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 389 |
HDRI=$(call HDRI_PART,$*) \ |
| 390 |
QUANTUMDEPTH=$* \ |
| 391 |
dh-exec $(CURDIR)/debian/libmagickwand-IMVERSION.QUANTUMDEPTH-dev.install.in > $(CURDIR)/debian/libmagickwand-$(IMVERSION).$*-dev.install |
| 392 |
QUANTUM=$(call QUANTUM_PART,$*) \ |
| 393 |
HDRI=$(call HDRI_PART,$*) \ |
| 394 |
QUANTUMDEPTH=$* \ |
| 395 |
UCQUANTUMDEPTH=$(call UC,$*) \ |
| 396 |
$(DH_EXEC_SUBST) $(CURDIR)/debian/libmagickwand-IMVERSION.QUANTUMDEPTH-WANDSOVERSION.symbols.in > $(CURDIR)/debian/libmagickwand-$(IMVERSION).$*-$(WANDSOVERSION).symbols |
| 397 |
touch $@ |
| 398 |
|
| 399 |
# configure in build directory |
| 400 |
override_dh_auto_configure-arch_quantum.%: override_dh_auto_configure-arch_generatefile_quantum.% PerlMagick/demo/Generic.ttf PerlMagick/t/ttf/input.ttf index.html |
| 401 |
@echo "configure for $* : quantum=$(call QUANTUM_PART,$*) HDRI=$(call HDRI_PART,$*)" |
| 402 |
dh_auto_configure --builddirectory="debian/build-quantum-$*" -- \ |
| 403 |
${CONFIGURE_OPTIONS} \ |
| 404 |
--disable-silent-rules \ |
| 405 |
--with-quantum-depth=$(call QUANTUM_PART,$*) \ |
| 406 |
--enable-hdri=$(call HDRI_PART,$*) |
| 407 |
touch $@ |
| 408 |
|
| 409 |
# link for fonts |
| 410 |
PerlMagick/demo/Generic.ttf: |
| 411 |
test -h $@ || ln -s /usr/share/fonts/truetype/tuffy/tuffy_regular.ttf $@ |
| 412 |
PerlMagick/t/ttf/input.ttf: |
| 413 |
test -h $@ || ln -s /usr/share/fonts/truetype/tuffy/tuffy_regular.ttf $@ |
| 414 |
|
| 415 |
index.html: www/index.html |
| 416 |
test -h $@ || ln -s www/index.html $@ |
| 417 |
|
| 418 |
override_dh_auto_configure-arch: $(foreach Q,$(QUANTUMDEPTH),override_dh_auto_configure-arch_quantum.$Q) PerlMagick/demo/Generic.ttf PerlMagick/t/ttf/input.ttf index.html |
| 419 |
|
| 420 |
override_dh_auto_configure-indep: PerlMagick/demo/Generic.ttf PerlMagick/t/ttf/input.ttf index.html |
| 421 |
@echo "configure indep for $* : quantum=$(call QUANTUM_PART,$*) HDRI=$(call HDRI_PART,$*)" |
| 422 |
dh_auto_configure --builddirectory="debian/build-quantum-indep" -- \ |
| 423 |
${CONFIGURE_OPTIONS} \ |
| 424 |
--with-quantum-depth=$(call QUANTUM_PART,$(NOQUANTUMDEPTH)) \ |
| 425 |
--enable-hdri=$(call HDRI_PART,$(NOQUANTUMDEPTH)) |
| 426 |
# HACK: create default quantum package Makefile |
| 427 |
cd debian/build-quantum-indep/PerlMagick/default/ && perl Makefile.PL INSTALLDIRS=vendor |
| 428 |
|
| 429 |
# dh_auto_build in build directory |
| 430 |
# build icons cache build for each arch in order to get more testing |
| 431 |
override_dh_auto_build-arch_quantum.%: |
| 432 |
dh_auto_build --builddirectory="debian/build-quantum-$*" -- all perl-build |
| 433 |
touch $@ |
| 434 |
|
| 435 |
override_dh_auto_build-arch: $(foreach Q,$(QUANTUMDEPTH),override_dh_auto_build-arch_quantum.$Q) |
| 436 |
|
| 437 |
override_dh_auto_build-indep: |
| 438 |
# generate html doc |
| 439 |
dh_auto_build --builddirectory="debian/build-quantum-indep" -- html html-local |
| 440 |
cd debian/build-quantum-indep/PerlMagick/default/ && make |
| 441 |
|
| 442 |
# valgrind poc |
| 443 |
ifeq ($(VALGRINDTEST_POC),yes) |
| 444 |
override_dh_auto_test-arch_native_has_fpu_valgrindpoc_quantum.%: override_dh_auto_test-arch_native_has_fpu_poc_quantum.%: |
| 445 |
@echo "*******************************************************************************" |
| 446 |
@echo " valgrind test of security problems " |
| 447 |
@echo "*******************************************************************************" |
| 448 |
set -e; for POC in $(CURDIR)/debian/poc/SEGV/*; do \ |
| 449 |
echo "Test POC $$POC"; \ |
| 450 |
(cd $(CURDIR)/debian/build-quantum-$*; $(VALGRIND_CONVERT) $$POC png:/dev/null) || true; \ |
| 451 |
done; |
| 452 |
else |
| 453 |
override_dh_auto_test-arch_native_has_fpu_valgrindpoc_quantum.%: |
| 454 |
endif |
| 455 |
touch $@ |
| 456 |
|
| 457 |
# poc |
| 458 |
ifeq ($(TEST_POC),yes) |
| 459 |
override_dh_auto_test-arch_native_has_fpu_poc_quantum.%: override_dh_auto_test-arch_native_has_fpu_testsuite_quantum.% |
| 460 |
@echo "*******************************************************************************" ; |
| 461 |
@echo " Basic test of security problems " ; |
| 462 |
@echo "*******************************************************************************" ; |
| 463 |
set -e; for POC in $(CURDIR)/debian/poc/SEGV/*; do \ |
| 464 |
echo "Test POC $$POC"; \ |
| 465 |
(cd $(CURDIR)/debian/build-quantum-$*; $(CONVERT) $$POC png:/dev/null) || true; \ |
| 466 |
done; |
| 467 |
else |
| 468 |
override_dh_auto_test-arch_native_has_fpu_poc_quantum.%: |
| 469 |
endif |
| 470 |
touch $@ |
| 471 |
|
| 472 |
# test suite |
| 473 |
override_dh_auto_test-arch_native_has_fpu_testsuite_quantum.%: |
| 474 |
unset DISPLAY; unset SOURCE_DATE_EPOCH; \ |
| 475 |
if ! dh_auto_test --builddirectory="debian/build-quantum-$*"; then \ |
| 476 |
find "debian/build-quantum-$*/tests" -name *.log -exec cat {} ; false ;\ |
| 477 |
fi; |
| 478 |
touch $@ |
| 479 |
|
| 480 |
#only run if FPU |
| 481 |
override_dh_auto_test-arch_native_has_fpu_quantum.%: override_dh_auto_test-arch_native_has_fpu_testsuite_quantum.% override_dh_auto_test-arch_native_has_fpu_poc_quantum.% override_dh_auto_test-arch_native_has_fpu_valgrindpoc_quantum.% |
| 482 |
touch $@ |
| 483 |
|
| 484 |
# only run if native build |
| 485 |
ifeq ($(HAVE_FPU),yes) |
| 486 |
override_dh_auto_test-arch_native_quantum.%: override_dh_auto_test-arch_native_has_fpu_quantum.% |
| 487 |
else |
| 488 |
override_dh_auto_test-arch_native_quantum.%: |
| 489 |
@echo "*******************************************************************************" |
| 490 |
@echo " skipped test suite NO FPU. Test suite too slow " |
| 491 |
@echo "*******************************************************************************" |
| 492 |
endif |
| 493 |
touch $@ |
| 494 |
|
| 495 |
# dh_auto_test in build directory |
| 496 |
# display log in case of failure |
| 497 |
ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) |
| 498 |
override_dh_auto_test-arch_quantum.%: override_dh_auto_test-arch_native_quantum.% |
| 499 |
else |
| 500 |
override_dh_auto_test-arch_quantum.%: |
| 501 |
@echo "****************************************************************************************" |
| 502 |
@echo " skipped test suite cross build host=$(DEB_HOST_GNU_TYPE) != build=$(DEB_BUILD_GNU_TYPE)" |
| 503 |
@echo "****************************************************************************************" |
| 504 |
endif |
| 505 |
touch $@ |
| 506 |
|
| 507 |
override_dh_auto_test-arch: $(foreach Q,$(QUANTUMDEPTH),override_dh_auto_test-arch_quantum.$Q) |
| 508 |
|
| 509 |
override_dh_auto_test-indep: |
| 510 |
|
| 511 |
|
| 512 |
# build icons cache for quantum |
| 513 |
override_dh_auto_install-arch_iconcache_quantum.%: |
| 514 |
# build icons cache (build for each arch in order to get more testing) |
| 515 |
set -e; while read SIZE; do \ |
| 516 |
mkdir -p $(CURDIR)/debian/tmp-$*/usr/share/icons/hicolor/$$SIZE/apps/ ;\ |
| 517 |
cd $(CURDIR)/debian/build-quantum-$*; \ |
| 518 |
echo "Make icons for size $$SIZE..."; \ |
| 519 |
$(CROSS_CONVERT) $(CURDIR)/debian/display-im$(IMVERSION).svg \ |
| 520 |
$(CONVERT_FLAGS) -resize $$SIZE \ |
| 521 |
-gravity center -extent $$SIZE \ |
| 522 |
+set date:create +set date:modify -define png:exclude-chunk=time \ |
| 523 |
$(CURDIR)/debian/tmp-$*/usr/share/icons/hicolor/$$SIZE/apps/display-im$(IMVERSION).$*.png; \ |
| 524 |
echo "Done"; \ |
| 525 |
done < $(CURDIR)/debian/display-im$(IMVERSION).iconssize |
| 526 |
# do not forget svgz |
| 527 |
mkdir -p $(CURDIR)/debian/tmp-$*/usr/share/icons/hicolor/scalable/apps/ |
| 528 |
gzip -c -n -9 $(CURDIR)/debian/display-im$(IMVERSION).svg \ |
| 529 |
> $(CURDIR)/debian/tmp-$*/usr/share/icons/hicolor/scalable/apps/display-im$(IMVERSION).$*.svgz |
| 530 |
touch $@ |
| 531 |
|
| 532 |
# dh_auto_install in build directory |
| 533 |
override_dh_auto_install-arch_quantum.%: override_dh_auto_install-arch_iconcache_quantum.% |
| 534 |
dh_auto_install --builddirectory="debian/build-quantum-$*" \ |
| 535 |
--destdir="debian/tmp-$*" \ |
| 536 |
-- install pkgdocdir=/$(DOC_PKG_PATH) V=1 |
| 537 |
|
| 538 |
# empties dependency_libs from .la files |
| 539 |
# http://lists.debian.org/debian-devel/2009/08/msg00783.html |
| 540 |
find $(CURDIR)/debian/tmp-$*/usr/lib -name '*.la' -exec \ |
| 541 |
sed -i "s,^dependency_libs=.*,dependency_libs=''," {} \; |
| 542 |
# Remove RPATH from *.so |
| 543 |
find $(CURDIR)/debian/tmp-$* -type f -name '*.so*' -printf '%p' -exec \ |
| 544 |
chmod u+w {} \; |
| 545 |
find $(CURDIR)/debian/tmp-$* -type f -name '*.so*' -printf '%p' -exec \ |
| 546 |
chrpath -d {} \; |
| 547 |
find $(CURDIR)/debian/tmp-$*/usr/bin -type f -executable -printf '%p' -exec \ |
| 548 |
chmod u+w {} \; |
| 549 |
find $(CURDIR)/debian/tmp-$*/usr/bin -type f -executable -printf '%p' -exec \ |
| 550 |
chrpath -d {} \; |
| 551 |
|
| 552 |
# move binaries to /usr/bin/*quantum |
| 553 |
set -e; for basename in $(MAGICK_PROGRAMS); do \ |
| 554 |
if test -L "$(CURDIR)/debian/tmp-$*/usr/bin/$$basename"; then \ |
| 555 |
rm -f "$(CURDIR)/debian/tmp-$*/usr/bin/$$basename"; \ |
| 556 |
ln -s "magick-im$(IMVERSION).$*" $(CURDIR)/debian/tmp-$*/usr/bin/$$basename-im$(IMVERSION).$*; \ |
| 557 |
else \ |
| 558 |
mv "$(CURDIR)/debian/tmp-$*/usr/bin/$$basename" \ |
| 559 |
"$(CURDIR)/debian/tmp-$*/usr/bin/$$basename-im$(IMVERSION).$*"; \ |
| 560 |
fi; \ |
| 561 |
mv "$(CURDIR)/debian/tmp-$*/usr/share/man/man1/$$basename.1" \ |
| 562 |
"$(CURDIR)/debian/tmp-$*/usr/share/man/man1/$$basename-im$(IMVERSION).$*.1" ;\ |
| 563 |
done |
| 564 |
# move generic man page |
| 565 |
mv "$(CURDIR)/debian/tmp-$*/usr/share/man/man1/ImageMagick.1" \ |
| 566 |
"$(CURDIR)/debian/tmp-$*/usr/share/man/man1/ImageMagick-im$(IMVERSION).$*.1" |
| 567 |
|
| 568 |
# add desktop for default |
| 569 |
mkdir -p debian/tmp-$*/usr/share/applications/ |
| 570 |
cp $(CURDIR)/debian/imagemagick-$(IMVERSION).$*.desktop \ |
| 571 |
$(CURDIR)/debian/tmp-$*/usr/share/applications/display-im$(IMVERSION).$*.desktop |
| 572 |
|
| 573 |
# move pc file to quantum one c++ |
| 574 |
# Beware of bug #950282 |
| 575 |
mv "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++.pc" \ |
| 576 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++-im$(IMVERSION).$*.pc" |
| 577 |
|
| 578 |
-rm -f "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++-$(IMVERSION).$(call UC,$*).pc" |
| 579 |
ln -s "ImageMagick++-im$(IMVERSION).$*.pc" \ |
| 580 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++-$(IMVERSION).$(call UC,$*).pc" |
| 581 |
-rm -f "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++-$(IMVERSION).$(call UC,$*).pc" |
| 582 |
|
| 583 |
ln -s "ImageMagick++-im$(IMVERSION).$*.pc" \ |
| 584 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++-im$(IMVERSION).$(call UC,$*).pc" |
| 585 |
-rm -f "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++.pc" |
| 586 |
ln -s "ImageMagick++-im$(IMVERSION).$*.pc" \ |
| 587 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++-im$(IMVERSION).$*.pc" |
| 588 |
# move pc file to quantum one core |
| 589 |
mv "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick.pc" \ |
| 590 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick-im$(IMVERSION).$*.pc" |
| 591 |
|
| 592 |
-rm -f "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick-$(IMVERSION).$(call UC,$*).pc" |
| 593 |
ln -s "ImageMagick-im$(IMVERSION).$*.pc" \ |
| 594 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick-$(IMVERSION).$(call UC,$*).pc" |
| 595 |
|
| 596 |
-rm -f "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickCore-$(IMVERSION).$(call UC,$*).pc" |
| 597 |
ln -s "ImageMagick-im$(IMVERSION).$*.pc" \ |
| 598 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickCore-$(IMVERSION).$(call UC,$*).pc" |
| 599 |
# move pc file to quantum one wand |
| 600 |
mv "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand.pc" \ |
| 601 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand-im$(IMVERSION).$*.pc" |
| 602 |
|
| 603 |
-rm -f "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand-$(IMVERSION).$(call UC,$*).pc" |
| 604 |
ln -s "MagickWand-im$(IMVERSION).$*.pc" \ |
| 605 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand-$(IMVERSION).$(call UC,$*).pc" |
| 606 |
|
| 607 |
-rm -f "debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Wand-$(IMVERSION).$(call UC,$*).pc" |
| 608 |
ln -s "MagickWand-im$(IMVERSION).$*.pc" \ |
| 609 |
"debian/tmp-$*/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Wand-$(IMVERSION).$(call UC,$*).pc" |
| 610 |
|
| 611 |
# Remove empty directories in debian/tmp |
| 612 |
-find $(CURDIR)/debian/tmp-$* -type d -empty -print0 | xargs -0 -r rmdir -p --ignore-fail-on-non-empty |
| 613 |
|
| 614 |
# remove spurious script |
| 615 |
touch $@ |
| 616 |
|
| 617 |
override_dh_auto_install-arch: $(foreach Q,$(QUANTUMDEPTH),override_dh_auto_install-arch_quantum.$Q) |
| 618 |
# default quantum pc file for c++ |
| 619 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++-im$(IMVERSION).pc" |
| 620 |
ln -s "ImageMagick++-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 621 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++-im$(IMVERSION).pc" |
| 622 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++-im$(IMVERSION).pc" |
| 623 |
ln -s "ImageMagick++-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 624 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++-im$(IMVERSION).pc" |
| 625 |
# default quantum for core |
| 626 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick-im$(IMVERSION).pc" |
| 627 |
ln -s "ImageMagick-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 628 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick-im$(IMVERSION).pc" |
| 629 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickCore-im$(IMVERSION).pc" |
| 630 |
ln -s "ImageMagick-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 631 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickCore-im$(IMVERSION).pc" |
| 632 |
# wand |
| 633 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand-im$(IMVERSION).pc" |
| 634 |
ln -s "MagickWand-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 635 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand-im$(IMVERSION).pc" |
| 636 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Wand-im$(IMVERSION).pc" |
| 637 |
ln -s "MagickWand-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 638 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Wand-im$(IMVERSION).pc" |
| 639 |
# delete default version |
| 640 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++.pc" |
| 641 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++.pc" |
| 642 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick.pc" |
| 643 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickCore.pc" |
| 644 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand.pc" |
| 645 |
-rm -f "debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Wand.pc" |
| 646 |
# for c++ |
| 647 |
ln -s "ImageMagick++-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 648 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++.pc" |
| 649 |
|
| 650 |
ln -s "ImageMagick++-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 651 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++.pc" |
| 652 |
# for core |
| 653 |
ln -s "ImageMagick-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 654 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick.pc" |
| 655 |
ln -s "ImageMagick-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 656 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickCore.pc" |
| 657 |
# for wand |
| 658 |
ln -s "MagickWand-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 659 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand.pc" |
| 660 |
ln -s "MagickWand-im$(IMVERSION).${DEFAULTQUANTUMDEPTH}.pc" \ |
| 661 |
"debian/tmp-${DEFAULTQUANTUMDEPTH}/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Wand.pc" |
| 662 |
|
| 663 |
override_dh_auto_install-indep: |
| 664 |
# install headers |
| 665 |
if test "BUG#703261" = "SOLVED"; then \ |
| 666 |
dh_auto_install --builddirectory="$(CURDIR)/debian/build-quantum-indep" \ |
| 667 |
--destdir="$(CURDIR)/debian/tmp-indep" \ |
| 668 |
-- install-configlibDATA install-configshareDATA \ |
| 669 |
install-data-html \ |
| 670 |
install-MagickCoreincHEADERS install-MagickWandincHEADERS install-magickppincHEADERS install-magickpptopincHEADERS \ |
| 671 |
install-man1 \ |
| 672 |
V=1;\ |
| 673 |
else \ |
| 674 |
cd "$(CURDIR)/debian/build-quantum-indep" && \ |
| 675 |
make DESTDIR=$(CURDIR)/debian/tmp-indep \ |
| 676 |
install-configlibDATA install-configshareDATA \ |
| 677 |
install-data-html \ |
| 678 |
install-MagickCoreincHEADERS install-MagickWandincHEADERS install-magickppincHEADERS install-magickpptopincHEADERS \ |
| 679 |
install-man1 \ |
| 680 |
V=1 ;\ |
| 681 |
fi; |
| 682 |
rsync -av $(CURDIR)/debian/build-quantum-indep/www/api $(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/www/ |
| 683 |
|
| 684 |
# Use x-terminal emulator for editing (Bug #132947) TODO: proper patch please |
| 685 |
sed -i 's/xterm/\/etc\/alternatives\/x-terminal-emulator/' \ |
| 686 |
$(CURDIR)/debian/tmp-indep/etc/ImageMagick-$(IMVERSION)/delegates.xml |
| 687 |
|
| 688 |
# install default perl |
| 689 |
cd debian/build-quantum-indep/PerlMagick/default/ && make install DESTDIR=$(CURDIR)/debian/tmp-indep |
| 690 |
|
| 691 |
# Remove empty directories in debian/tmp |
| 692 |
-find $(CURDIR)/debian/tmp-indep -type d -empty -print0 | xargs -r -0 rmdir -p --ignore-fail-on-non-empty |
| 693 |
|
| 694 |
# remove boostrap copy |
| 695 |
if test -d "$(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/$(JS_DIR)/"; then \ |
| 696 |
rm -rf "$(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/$(JS_DIR)/"*; \ |
| 697 |
else \ |
| 698 |
mkdir -p "$(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/$(JS_DIR)/"; \ |
| 699 |
fi |
| 700 |
ln -s /usr/share/javascript/bootstrap/js/bootstrap.min.js \ |
| 701 |
"$(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/$(JS_DIR)/magick.js" |
| 702 |
ln -s /usr/share/javascript/bootstrap/css/bootstrap.min.css \ |
| 703 |
"$(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/$(JS_DIR)/magick.css" |
| 704 |
|
| 705 |
# now apply privacy cleanning rules |
| 706 |
cd "$(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)" && \ |
| 707 |
find . \ |
| 708 |
-path './www/api/MagickCore' -prune -o \ |
| 709 |
-path './www/api/MagickWand' -prune -o \ |
| 710 |
-type f -and -name '*.html' -and -not -empty -print0 \ |
| 711 |
| xargs -r -0 -n 1 "$(CURDIR)/debian/scripts/removeprivacybreach" "$(CURDIR)/debian/scripts/removeprivacybreach.xslt" |
| 712 |
|
| 713 |
# add link |
| 714 |
ln -s ../assets $(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/www/api/assets |
| 715 |
# workarround #978138 |
| 716 |
ln -s . $(CURDIR)/debian/tmp-indep/$(DOC_PKG_PATH)/www/www |
| 717 |
|
| 718 |
# install quantum package |
| 719 |
override_dh_install-arch_quantum.%: |
| 720 |
set -e; for PKG in $(call REPLACE_QUANTUM, $(MAGICK_ANY_QUANTUM_PACKAGES),$*); do \ |
| 721 |
dh_install --package=$$PKG \ |
| 722 |
--sourcedir=debian/tmp-$* --autodest; \ |
| 723 |
done; |
| 724 |
|
| 725 |
# Remove extra coders from libmagickcore |
| 726 |
set -e; while read FILE; do \ |
| 727 |
rm -f debian/libmagickcore-${IMVERSION}.$*-${CORESOVERSION}/$$FILE; \ |
| 728 |
done < debian/libmagickcore-${IMVERSION}.$*-${CORESOVERSION}-extra.install |
| 729 |
|
| 730 |
# install arch package |
| 731 |
override_dh_install-arch: $(foreach Q,$(QUANTUMDEPTH),override_dh_install-arch_quantum.$Q) |
| 732 |
# take arch include in default quantum |
| 733 |
set -e; for PKG in $(MAGICK_ANY_PACKAGES); do \ |
| 734 |
dh_install --package=$$PKG \ |
| 735 |
--sourcedir=debian/tmp-${DEFAULTQUANTUMDEPTH} --autodest; \ |
| 736 |
done; |
| 737 |
|
| 738 |
# install default pc file |
| 739 |
# for c++ |
| 740 |
dh_install --package=libmagick++-${IMVERSION}.${DEFAULTQUANTUMDEPTH}-dev \ |
| 741 |
--sourcedir=debian/tmp-${DEFAULTQUANTUMDEPTH} --autodest \ |
| 742 |
"usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Magick++.pc" |
| 743 |
dh_install --package=libmagick++-${IMVERSION}.${DEFAULTQUANTUMDEPTH}-dev \ |
| 744 |
--sourcedir=debian/tmp-${DEFAULTQUANTUMDEPTH} --autodest \ |
| 745 |
"usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick++.pc" |
| 746 |
# for core |
| 747 |
dh_install --package=libmagickcore-${IMVERSION}.${DEFAULTQUANTUMDEPTH}-dev \ |
| 748 |
--sourcedir=debian/tmp-${DEFAULTQUANTUMDEPTH} --autodest \ |
| 749 |
"usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/ImageMagick.pc" |
| 750 |
dh_install --package=libmagickcore-${IMVERSION}.${DEFAULTQUANTUMDEPTH}-dev \ |
| 751 |
--sourcedir=debian/tmp-${DEFAULTQUANTUMDEPTH} --autodest \ |
| 752 |
"usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickCore.pc" |
| 753 |
# for wand |
| 754 |
dh_install --package=libmagickwand-${IMVERSION}.${DEFAULTQUANTUMDEPTH}-dev \ |
| 755 |
--sourcedir=debian/tmp-${DEFAULTQUANTUMDEPTH} --autodest \ |
| 756 |
"usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/MagickWand.pc" |
| 757 |
dh_install --package=libmagickwand-${IMVERSION}.${DEFAULTQUANTUMDEPTH}-dev \ |
| 758 |
--sourcedir=debian/tmp-${DEFAULTQUANTUMDEPTH} --autodest \ |
| 759 |
"usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/Wand.pc" |
| 760 |
|
| 761 |
override_dh_install-indep: |
| 762 |
# special source imagemagick-*-common |
| 763 |
dh_install --package=imagemagick-$(IMVERSION)-common |
| 764 |
# remaining package |
| 765 |
dh_install --indep --remaining-packages --sourcedir=debian/tmp-indep --autodest |
| 766 |
# fix doxygen problem |
| 767 |
dh_doxygen --indep --package=imagemagick-$(IMVERSION)-doc |
| 768 |
# remove spurious php file |
| 769 |
find debian/imagemagick-$(IMVERSION)-doc/usr/share/doc/imagemagick-$(IMVERSION)-common/html -name '*.php' -delete |
| 770 |
# fix duplicate files |
| 771 |
jdupes -rl debian/imagemagick-$(IMVERSION)-doc/usr/share/doc/imagemagick-$(IMVERSION)-common/html |
| 772 |
|
| 773 |
override_dh_compress: |
| 774 |
# fix #611125 |
| 775 |
dh_compress -X$(DOC_PKG_PATH) |
| 776 |
|
| 777 |
override_dh_makeshlibs: |
| 778 |
# avoid plugins' dir |
| 779 |
FAIL=0; \ |
| 780 |
for PKG in $$(dh_listpackages -a); do \ |
| 781 |
echo dh_makeshlibs -p$$PKG -v -Xcoders/ -Xfilters/ ; \ |
| 782 |
dh_makeshlibs -p$$PKG -v -Xcoders/ -Xfilters/; \ |
| 783 |
FAIL=$$?; \ |
| 784 |
done; \ |
| 785 |
exit $$fail |
| 786 |
|
| 787 |
override_dh_shlibdeps: |
| 788 |
dh_shlibdeps -- -v |
| 789 |
|
| 790 |
# remove after jessie+2 |
| 791 |
override_dh_strip: |
| 792 |
dh_strip --ddeb-migration='imagemagick-dbg (<< 8:6.9.2.10-1~)' |
| 793 |
|
| 794 |
# link bug file |
| 795 |
override_dh_bugfiles-arch_quantum.%: |
| 796 |
set -e; for PKG in ${call REPLACE_QUANTUM, $(MAGICK_ANY_QUANTUM_PACKAGES),$*}; do \ |
| 797 |
mkdir -p $(CURDIR)/debian/$$PKG/usr/share/bug/ ; \ |
| 798 |
ln -s imagemagick-$(IMVERSION)-common \ |
| 799 |
$(CURDIR)/debian/$$PKG/usr/share/bug/$$PKG ; \ |
| 800 |
done |
| 801 |
touch $@ |
| 802 |
|
| 803 |
override_dh_bugfiles-arch: $(foreach Q,$(QUANTUMDEPTH),override_dh_bugfiles-arch_quantum.$Q) |
| 804 |
set -e; for PKG in $(MAGICK_ANY_PACKAGES); do \ |
| 805 |
mkdir -p $(CURDIR)/debian/$$PKG/usr/share/bug/ ; \ |
| 806 |
ln -s imagemagick-$(IMVERSION)-common \ |
| 807 |
$(CURDIR)/debian/$$PKG/usr/share/bug/$$PKG ; \ |
| 808 |
done |
| 809 |
set -e; for PKG in $(MAGICK_ANY_COMPAT_PACKAGES); do \ |
| 810 |
mkdir -p $(CURDIR)/debian/$$PKG/usr/share/bug/ ; \ |
| 811 |
ln -s imagemagick-$(IMVERSION)-common \ |
| 812 |
$(CURDIR)/debian/$$PKG/usr/share/bug/$$PKG ; \ |
| 813 |
done |
| 814 |
|
| 815 |
override_dh_bugfiles-indep: |
| 816 |
dh_bugfiles --package=imagemagick-$(IMVERSION)-common |
| 817 |
# link normal package |
| 818 |
set -e; for PKG in $(MAGICK_ALL_PACKAGES); do \ |
| 819 |
if test "X$$PKG" != Ximagemagick-$(IMVERSION)-common; then \ |
| 820 |
mkdir -p $(CURDIR)/debian/$$PKG/usr/share/bug/ ; \ |
| 821 |
ln -s imagemagick-$(IMVERSION)-common \ |
| 822 |
$(CURDIR)/debian/$$PKG/usr/share/bug/$$PKG ; \ |
| 823 |
fi; \ |
| 824 |
done |
| 825 |
|
| 826 |
# link compat package |
| 827 |
set -e; for PKG in $(MAGICK_ALL_COMPAT_PACKAGES); do \ |
| 828 |
mkdir -p $(CURDIR)/debian/$$PKG/usr/share/bug/ ; \ |
| 829 |
ln -s imagemagick-$(IMVERSION)-common \ |
| 830 |
$(CURDIR)/debian/$$PKG/usr/share/bug/$$PKG ; \ |
| 831 |
done |
| 832 |
|
| 833 |
override_dh_installdocs-indep: |
| 834 |
dh_installdocs --indep --link-doc=imagemagick-$(IMVERSION)-common |
| 835 |
|
| 836 |
override_dh_installdocs-arch: |
| 837 |
dh_installdocs --arch |
| 838 |
|
| 839 |
# prep rules |
| 840 |
override_dh_prep_quantum.%: |
| 841 |
[ ! -d debian/tmp-$* ] || rm -rf debian/tmp-$* |
| 842 |
|
| 843 |
override_dh_prep: $(foreach Q,$(QUANTUMDEPTH),override_dh_prep_quantum.$Q) override_dh_prep_quantum.indep |
| 844 |
dh_prep |
| 845 |
|
| 846 |
|
| 847 |
# clean rules |
| 848 |
override_dh_clean_quantum.%: |
| 849 |
[ ! -d debian/build-quantum-$* ] || rm -rf debian/build-quantum-$* |
| 850 |
[ ! -d debian/tmp-$* ] || rm -rf debian/tmp-$* |
| 851 |
# generated file |
| 852 |
[ ! -f debian/imagemagick-$(IMVERSION).$*.manpages ] || rm debian/imagemagick-$(IMVERSION).$*.manpages |
| 853 |
[ ! -f debian/imagemagick-$(IMVERSION).$*.mime ] || rm debian/imagemagick-$(IMVERSION).$*.mime |
| 854 |
[ ! -f debian/imagemagick-$(IMVERSION).$*.desktop ] || rm debian/imagemagick-$(IMVERSION).$*.desktop |
| 855 |
[ ! -f debian/imagemagick-$(IMVERSION).$*.postinst ] || rm debian/imagemagick-$(IMVERSION).$*.postinst |
| 856 |
[ ! -f debian/imagemagick-$(IMVERSION).$*.prerm ] || rm debian/imagemagick-$(IMVERSION).$*.prerm |
| 857 |
[ ! -f debian/imagemagick-$(IMVERSION).$*.install ] || rm debian/imagemagick-$(IMVERSION).$*.install |
| 858 |
|
| 859 |
[ ! -f debian/libimage-magick-$*-perl.install ] || rm debian/libimage-magick-$*-perl.install |
| 860 |
|
| 861 |
[ ! -f debian/libmagick++-$(IMVERSION).$*-$(PPSOVERSION).install ] || rm debian/libmagick++-$(IMVERSION).$*-$(PPSOVERSION).install |
| 862 |
[ ! -f debian/libmagick++-$(IMVERSION).$*-dev.install ] || rm debian/libmagick++-$(IMVERSION).$*-dev.install |
| 863 |
[ ! -f debian/libmagick++-$(IMVERSION).$*-$(PPSOVERSION).symbols ] || rm debian/libmagick++-$(IMVERSION).$*-$(PPSOVERSION).symbols |
| 864 |
|
| 865 |
[ ! -f debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION).install ] || rm -f debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION).install |
| 866 |
[ ! -f debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION)-extra.install ] || rm -f debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION)-extra.install |
| 867 |
[ ! -f debian/libmagickcore-$(IMVERSION).$*-dev.install ] || rm -f debian/libmagickcore-$(IMVERSION).$*-dev.install |
| 868 |
[ ! -f debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION).symbols ] || rm -f debian/libmagickcore-$(IMVERSION).$*-$(CORESOVERSION).symbols |
| 869 |
|
| 870 |
[ ! -f debian/libmagickwand-$(IMVERSION).$*-$(WANDSOVERSION).install ] || rm -f debian/libmagickwand-$(IMVERSION).$*-$(WANDSOVERSION).install |
| 871 |
[ ! -f debian/libmagickwand-$(IMVERSION).$*-dev.install ] || rm -f debian/libmagickwand-$(IMVERSION).$*-dev.install |
| 872 |
[ ! -f debian/libmagickwand-$(IMVERSION).$*-$(WANDSOVERSION).symbols ] || rm -f debian/libmagickwand-$(IMVERSION).$*-$(WANDSOVERSION).symbols |
| 873 |
# autoreconf |
| 874 |
[ ! -f override_dh_auto_configure-arch_quantum.$* ] || rm override_dh_auto_configure-arch_quantum.$* |
| 875 |
[ ! -f override_dh_auto_configure-arch_generatefile_quantum.$* ] || rm override_dh_auto_configure-arch_generatefile_quantum.$* |
| 876 |
# auto_build |
| 877 |
[ ! -f override_dh_auto_build-arch_quantum.$* ] || rm override_dh_auto_build-arch_quantum.$* |
| 878 |
# auto install |
| 879 |
[ ! -f override_dh_auto_install-arch_quantum.$* ] || rm override_dh_auto_install-arch_quantum.$* |
| 880 |
[ ! -f override_dh_auto_install-arch_iconcache_quantum.$* ] || rm override_dh_auto_install-arch_iconcache_quantum.$* |
| 881 |
# dh_bugfile |
| 882 |
[ ! -f override_dh_bugfiles-arch_quantum.$* ] || rm override_dh_bugfiles-arch_quantum.$* |
| 883 |
# test suite target |
| 884 |
[ ! -f override_dh_auto_test-arch_quantum.$* ] || rm override_dh_auto_test-arch_quantum.$* |
| 885 |
[ ! -f override_dh_auto_test-arch_native_quantum.$* ] || rm override_dh_auto_test-arch_native_quantum.$* |
| 886 |
[ ! -f override_dh_auto_test-arch_native_has_fpu_quantum.$* ] || rm override_dh_auto_test-arch_native_has_fpu_quantum.$* |
| 887 |
[ ! -f override_dh_auto_test-arch_native_has_fpu_testsuite_quantum.$* ] || rm override_dh_auto_test-arch_native_has_fpu_testsuite_quantum.$* |
| 888 |
[ ! -f override_dh_auto_test-arch_native_has_fpu_poc_quantum.$* ] || rm override_dh_auto_test-arch_native_has_fpu_poc_quantum.$* |
| 889 |
[ ! -f override_dh_auto_test-arch_native_has_fpu_valgrindpoc_quantum.$* ] || rm override_dh_auto_test-arch_native_has_fpu_valgrindpoc_quantum.$* |
| 890 |
|
| 891 |
|
| 892 |
override_dh_clean: $(foreach Q,$(QUANTUMDEPTH),override_dh_clean_quantum.$Q) override_dh_clean_quantum.indep |
| 893 |
[ ! -f $(CONFIGURE_CACHEFILE) ] || rm -f $(CONFIGURE_CACHEFILE) |
| 894 |
# rm link for fonts |
| 895 |
rm -f $(CURDIR)/PerlMagick/demo/Generic.ttf |
| 896 |
rm -f $(CURDIR)/PerlMagick/t/ttf/input.ttf |
| 897 |
rm -f $(CURDIR)/index.html |
| 898 |
dh_clean |
| 899 |
|
| 900 |
|
| 901 |
# maint rules |
| 902 |
######################### |
| 903 |
|
| 904 |
maint-html-is-sane: |
| 905 |
cd www && find $(CURDIR) -maxdepth 2 \ |
| 906 |
-type f -and -name '*.html' -and -not -empty -print0 \ |
| 907 |
| xargs -r -0 -t xmllint --noout --nonet |