rules 806 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
	rm -f debian/tmp/usr/lib/python*/dist-packages/*/*.la
25
	dh_install -pliblink-grammar-java \
Jeremy Bicha's avatar
Jeremy Bicha committed
26 27
		usr/lib/$(DEB_HOST_MULTIARCH)/liblink-grammar-java.so* \
		usr/lib/$(DEB_HOST_MULTIARCH)/jni
28
	dh_install
29

30 31 32
override_dh_compress:
	dh_compress --exclude=.py

33 34 35 36
override_dh_makeshlibs:
# A private C++ library
	dh_makeshlibs -Xlibminisat

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