#!/usr/bin/make -f
# -*- makefile -*-
export DH_VERBOSE=1

export TOPDIR=$(CURDIR)
%:
	dh $@ --with autoreconf

override_dh_auto_configure: 
	dh_auto_configure -- --enable-opencc --enable-db-android --enable-db-open-phrase

DBVER = 1.0.0
get_db_orig:
	version=$$(dpkg-parsechangelog | grep '^Version' | cut -d ' ' -f2 | cut -d':' -f2 | cut -d'-' -f1);\
	wget http://pyzy.googlecode.com/files/pyzy-database-$(DBVER).tar.bz2 -O ../libpyzy_$${version}.orig-db.tar.bz2
