1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
# This has to be exported to make some magic below work.
export DH_OPTIONS
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
ifneq (,$(filter x-fpic,$(DEB_BUILD_OPTIONS)))
CFLAGS += -fPIC
endif
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
override_dh_auto_build:
# Use system libjpeg jconfig.h
-rm scripts/jconfig.h
$(MAKE) build=release OS=Linux
override_dh_auto_install:
$(MAKE) build=release OS=Linux prefix=$(CURDIR)/debian/tmp/usr install
override_dh_auto_clean:
-rm -rf build
%:
dh $@
|