The contents of the debian sid build directory doesn't reflect upstream anymore: it still builds against python2, with is now deprecated. So, let's re-sync it from today's upstream debian file, as found at: http://deb.debian.org/debian/pool/main/z/zbar/zbar_0.23-1.3.debian.tar.xz It should be noticed that this file won't be building Java, and may also be missing some features, as packages are now different than what it used to be. Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
60 lines
1.7 KiB
Makefile
Executable File
60 lines
1.7 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
export DH_VERBOSE = 1
|
|
|
|
# see FEATURE AREAS in dpkg-buildflags(1)
|
|
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
|
|
|
|
# see ENVIRONMENT in dpkg-buildflags(1)
|
|
# package maintainers to append CFLAGS
|
|
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
|
|
# package maintainers to append LDFLAGS
|
|
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
|
|
|
|
# Introduce standard debhelper variables
|
|
DPKG_EXPORT_BUILDFLAGS = 1
|
|
include /usr/share/dpkg/default.mk
|
|
|
|
# Let pybuild know the python binary package name
|
|
export PYBUILD_NAME = zbar
|
|
|
|
LDFLAGS_LIB_SEARCHPATH = $(strip $(shell find $(CURDIR)/zbar -name '*.so' -printf "-L%h "))
|
|
LDFLAGS_BINDINGS = $(strip $(LDFLAGS) $(LDFLAGS_LIB_SEARCHPATH))
|
|
|
|
# Explicitly set supported Qt version
|
|
export QT_SELECT := 5
|
|
|
|
# Properly set configure flags
|
|
CONFIGURE_FLAGS = --without-java --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH) --with-gtk=gtk3 --with-python=python3 --with-qt5
|
|
|
|
# We enable libv4l support only on Linux platforms.
|
|
ifeq (,$(findstring linux,$(DEB_HOST_ARCH_OS)))
|
|
CONFIGURE_FLAGS += --disable-video
|
|
endif
|
|
|
|
%:
|
|
dh $@
|
|
|
|
override_dh_auto_configure:
|
|
dh_auto_configure -- $(CONFIGURE_FLAGS)
|
|
|
|
override_dh_missing:
|
|
dh_missing --list-missing
|
|
|
|
override_dh_strip:
|
|
dh_strip --dbgsym-migration='zbar-dbg (<< 0.21~)'
|
|
|
|
override_dh_clean:
|
|
dh_clean
|
|
# Also clean up perl-related files
|
|
[ ! -f $(CURDIR)/perl/Makefile ] || $(MAKE) -C perl realclean
|
|
|
|
override_dh_auto_install: build-perl
|
|
dh_auto_install
|
|
|
|
build-perl:
|
|
dh_auto_configure --sourcedirectory=perl -- INC="-I$(CURDIR)/include" LIBS="$(LDFLAGS_LIB_SEARCHPATH) -lzbar"
|
|
dh_auto_build --sourcedirectory=perl -- OTHERLDFLAGS="$(LDFLAGS_LIB_SEARCHPATH)" LD_RUN_PATH=''
|
|
dh_auto_install --sourcedirectory=perl
|
|
|
|
.PHONY: build-perl
|