1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
|
#!/usr/bin/make -f
#export DH_VERBOSE=1
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
ifndef PERL
PERL = /usr/bin/perl
endif
PERL_OPTIMIZE = -O2 -Wall
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
PERL_OPTIMIZE += -g
endif
%:
dh $@
override_dh_auto_configure:
dh_auto_configure -- --libexecdir=/usr/lib --datadir=/usr/lib
cd perl && $(PERL) Makefile.PL INSTALLDIRS=vendor
override_dh_auto_build:
dh_auto_build
$(MAKE) -C perl OPTIMIZE="$(PERL_OPTIMIZE)" DICDIR=`pwd`/dic
override_dh_auto_install:
dh_auto_install
rm -rf debian/tmp/usr/lib/juman/doc
dh_link -pjuman usr/share/doc/juman usr/lib/juman/doc
$(MAKE) -C perl install DESTDIR=`pwd`/debian/libjuman-perl DICDIR=`pwd`/dic
sed -i 's%$(CURDIR)/%%' debian/libjuman-perl/usr/share/perl5/Juman/Grammar.pm
override_dh_auto_clean:
dh_auto_clean
-$(MAKE) -C perl realclean
-rm -f dic/*.int dic/jumandic.* dic/JUMAN.connect
-rm -f autodic/*.int autodic/jumandic.*
-rm -f wikipediadic/*.int wikipediadic/jumandic.*
|