rules 897 Bytes
Newer Older
1 2
#!/usr/bin/make -f

Jeremy Bicha's avatar
Jeremy Bicha committed
3 4
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_LDFLAGS_MAINT_APPEND= -Wl,-O1 -Wl,--as-needed
5

Jeremy Bicha's avatar
Jeremy Bicha committed
6
%:
Jeremy Bicha's avatar
Jeremy Bicha committed
7
	dh $@ --with python2
8

9
override_dh_auto_clean:
10
	dh_auto_clean
11 12
	-rm -r bin/org
	-rm linkgrammar-*.jar
13

Jeremy Bicha's avatar
Jeremy Bicha committed
14
override_dh_auto_configure:
15 16 17 18
	dh_auto_configure -- \
		--disable-static \
		--enable-pthreads \
		--enable-python-bindings
Jeremy Bicha's avatar
Jeremy Bicha committed
19

20 21 22
override_dh_autoreconf:
	dh_autoreconf --as-needed

23
override_dh_install:
24
ifeq (,$(filter $(DEB_HOST_ARCH), hppa m68k sh4))
25 26 27
	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
28 29
endif
	find . -name "*.la" -delete
30
	dh_install --fail-missing
31

32 33 34
override_dh_compress:
	dh_compress --exclude=.py

Jeremy Bicha's avatar
Jeremy Bicha committed
35 36 37
override_dh_makeshlibs:
	dh_makeshlibs -- -c4

Jeremy Bicha's avatar
Jeremy Bicha committed
38
override_dh_auto_test:
39
# We use autopkgtest instead