Commit 1896a1c3 authored by Kan-Ru Chen's avatar Kan-Ru Chen

Use dh_auto_build/dh_auto_install --parallel

Closes: #902968
Thanks: Helmut Grohne for the patch
parent 645154e0
......@@ -3,7 +3,7 @@ Section: text
Priority: optional
Maintainer: Kan-Ru Chen (陳侃如) <koster@debian.org>
Uploaders: Quoc-Viet Nguyen <afelion@gmail.com>
Build-Depends: debhelper (>= 7.0.50~), dpkg-dev (>= 1.16.1.1~),
Build-Depends: debhelper (>= 7.4.10~), dpkg-dev (>= 1.16.1.1~),
libfreetype6-dev, pkg-config, libjpeg-dev, libjbig2dec-dev,
libopenjp2-7-dev, libx11-dev, libxext-dev, zlib1g-dev,
libharfbuzz-dev, freeglut3-dev
......
......@@ -18,18 +18,13 @@ CFLAGS += $(CPPFLAGS)
CFLAGS += -DJBIG_NO_MEMENTO
CFLAGS += -fPIC
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
BUILD_FLAGS=build=debian OS=Linux verbose=yes XCFLAGS="$(CFLAGS)" XLDFLAGS="$(LDFLAGS)"
BUILD_FLAGS=build=debian OS=Linux verbose=yes XCFLAGS="$(CFLAGS)" XLDFLAGS="$(LDFLAGS)" prefix=/usr
override_dh_auto_build:
$(MAKE) $(BUILD_FLAGS)
dh_auto_build -- $(BUILD_FLAGS)
override_dh_auto_install:
$(MAKE) $(BUILD_FLAGS) prefix=$(CURDIR)/debian/tmp/usr install
dh_auto_install -- $(BUILD_FLAGS)
install -m744 -T $(CURDIR)/debian/mupdf.sh $(CURDIR)/debian/tmp/usr/bin/mupdf
override_dh_auto_clean:
......@@ -38,4 +33,4 @@ override_dh_auto_clean:
-rm -f include/mupdf/pdf/name-table.h source/pdf/pdf-name-table.h
%:
dh $@
dh $@ --parallel
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment