| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
export DEB_BUILD_MAINT_OPTIONS=hardening=+all |
| 8 |
|
| 9 |
%: |
| 10 |
dh $@ |
| 11 |
|
| 12 |
debian/locale/ru_RU.koi8r: |
| 13 |
mkdir -p debian/locale |
| 14 |
localedef -f KOI8-R -i ru_RU $@ |
| 15 |
|
| 16 |
ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH)) |
| 17 |
override_dh_auto_configure: debian/locale/ru_RU.koi8r |
| 18 |
mkdir -p native_build |
| 19 |
cd native_build && ../configure --disable-shared CPPFLAGS= CFLAGS= LDFLAGS= && make db LOCPATH=$(CURDIR)/debian/locale |
| 20 |
cp native_build/data/lexicon data |
| 21 |
dh_auto_configure |
| 22 |
endif |
| 23 |
|
| 24 |
override_dh_auto_build-arch: |
| 25 |
dh_auto_build -- -e -C src |
| 26 |
|
| 27 |
override_dh_auto_build-indep: debian/locale/ru_RU.koi8r |
| 28 |
dh_auto_build -- LOCPATH=$(CURDIR)/debian/locale |
| 29 |
|
| 30 |
override_dh_auto_test: debian/locale/ru_RU.koi8r |
| 31 |
ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH)) |
| 32 |
$(MAKE) -C native_build test LOCPATH=$(CURDIR)/debian/locale |
| 33 |
else |
| 34 |
$(MAKE) test LOCPATH=$(CURDIR)/debian/locale |
| 35 |
endif |
| 36 |
|
| 37 |
override_dh_auto_clean: |
| 38 |
ifneq ($(DEB_HOST_ARCH),$(DEB_BUILD_ARCH)) |
| 39 |
rm -rf native_build |
| 40 |
endif |
| 41 |
rm -rf debian/locale |
| 42 |
dh_auto_clean |