| 1 |
#!/usr/bin/make -f |
| 2 |
# dvgrab debian/rules script |
| 3 |
|
| 4 |
# Uncomment this to turn on verbose mode. |
| 5 |
#export DH_VERBOSE=1 |
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 9 |
include /usr/share/dpkg/buildflags.mk |
| 10 |
|
| 11 |
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) |
| 12 |
|
| 13 |
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 14 |
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) |
| 15 |
MAKEFLAGS += -j$(NUMJOBS) |
| 16 |
endif |
| 17 |
|
| 18 |
%: |
| 19 |
dh $@ |
| 20 |
|
| 21 |
|
| 22 |
override_dh_auto_configure: |
| 23 |
CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure $(confflags) --prefix=/ --exec-prefix=/usr |
| 24 |
|
| 25 |
override_dh_auto_install: |
| 26 |
$(MAKE) DESTDIR=`pwd`/debian/dvgrab install-exec |