debian swirl logo

Back to the packages list mecab

#!/usr/bin/make -f
# -*- Makefile -*-

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/autoreconf.mk

LIBPACKAGE = $(shell dh_listpackages|egrep 'lib.*[0-9]')
LIBFILES   = debian/$(LIBPACKAGE).install

DEB_CONFIGURE_LIBEXECDIR  = /usr/lib
DEB_CONFIGURE_EXTRA_FLAGS = --with-perl5=/usr/bin/perl
DEB_DH_MAKESHLIBS_ARGS   += -V"$(LIBPACKAGE) (>= $(DEB_VERSION))"

pre-build:: $(LIBFILES) test-driver
$(LIBFILES): debian/libmecab.install.in debian/control debian/rules
		cp -p $< $@

test-driver:
		ln -sf /usr/share/automake-$(DEB_AUTO_UPDATE_AUTOMAKE)/test-driver $@

clean::
		-rm -f $(LIBFILES)
		-rm -f test-driver

DEB_AUTO_UPDATE_LIBTOOL = pre
DEB_AUTO_UPDATE_ACLOCAL = $(shell dpkg -s automake | perl -nle '/^Version: (?:\d:)?(\d+\.\d+)?/ and print $$1')
DEB_AUTO_UPDATE_AUTOCONF = $(shell dpkg -s autoconf | perl -nle '/^Version: (?:\d:)?(\d+\.\d+)?/ and print $$1')
DEB_AUTO_UPDATE_AUTOMAKE = $(shell dpkg -s automake | perl -nle '/^Version: (?:\d:)?(\d+\.\d+)?/ and print $$1')

Builds:

libmecab2
libraries of mecab
libmecab-dev
header files of mecab
mecab
japanese morphological analysis system
mecab-utils
support programs of mecab