# Template file for 'm17n-lib'
pkgname=m17n-lib
version=1.8.6
revision=3
build_style=gnu-configure
configure_args="--disable-static"
hostmakedepends="pkg-config"
makedepends="libxml2-devel fribidi-devel freetype-devel fontconfig-devel gd-devel
 libXft-devel libotf-devel libthai-devel m17n-db
 $(vopt_if anthy anthy-unicode-devel)"
depends="m17n-db"
short_desc="Multilingual text processing library"
maintainer="newbluemoon <blaumolch@mailbox.org>"
license="LGPL-2.1-or-later"
homepage="http://www.nongnu.org/m17n/"
distfiles="${NONGNU_SITE}/m17n/${pkgname}-${version}.tar.gz"
checksum=7129fe3b7ad500f88b8af8605ef07b96c87a75ec986a695fffc0a409f44a7c86
disable_parallel_build=yes

build_options="anthy"
desc_option_anthy="Enable anthy Japanese input system"
build_options_default="anthy"

m17n-lib-devel_package() {
	short_desc+=" - development files"
	depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
	pkg_install() {
		vmove usr/include
		vmove usr/lib/pkgconfig
		vmove "usr/lib/*.la"
		vmove "usr/lib/*.so"
		vmove "usr/lib/m17n/1.0/*.la"
	}
}
