Commit 0d847a4d authored by Pino Toscano's avatar Pino Toscano

really disable Java for no Java archs

parent c8c6c2fa
link-grammar (5.5.1-5) UNRELEASED; urgency=medium
[ Pino Toscano ]
* Really disable Java for architectures without it, passing
--disable-java-bindings to configure (which defaults to enabling Java).
-- Debian QA Group <packages@qa.debian.org> Mon, 24 Dec 2018 10:15:46 +0100
......
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
no_java_archs = hppa hurd-i386 m68k sh4
ifneq (,$(filter $(DEB_HOST_ARCH), $(no_java_archs)))
CONFIGURE_ARGS += --disable-java-bindings
endif
%:
dh $@ --with python2,python3
......@@ -15,13 +22,14 @@ override_dh_auto_configure:
dh_auto_configure -- \
--disable-static \
--enable-pthreads \
--with-hunspell-dictdir=/usr/share/hunspell
--with-hunspell-dictdir=/usr/share/hunspell \
$(CONFIGURE_ARGS)
override_dh_autoreconf:
dh_autoreconf --as-needed
override_dh_install:
ifeq (,$(filter $(DEB_HOST_ARCH), hppa hurd-i386 m68k sh4))
ifeq (,$(filter $(DEB_HOST_ARCH), $(no_java_archs)))
mkdir -p debian/liblink-grammar-java/usr/lib/$(DEB_HOST_MULTIARCH)/jni
mv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/liblink-grammar-java.so* \
debian/liblink-grammar-java/usr/lib/$(DEB_HOST_MULTIARCH)/jni
......
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