34 lines
1.2 KiB
Bash
34 lines
1.2 KiB
Bash
# Template file for 'm17n-lib'
|
||
pkgname=m17n-lib
|
||
version=1.7.0
|
||
revision=1
|
||
build_style=gnu-configure
|
||
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-devel)"
|
||
depends="m17n-db"
|
||
short_desc="Multilingual text processing library"
|
||
maintainer="newbluemoon <blaumolch@mailbox.org>"
|
||
license="LGPL-2.1"
|
||
homepage="http://www.nongnu.org/m17n/"
|
||
distfiles="${NONGNU_SITE}/${pkgname/-lib/}/${pkgname}-${version}.tar.gz"
|
||
checksum=8eb853e1e0c86a70a09871f3264f950e5d62bba98960b3ffcde11511c138db83
|
||
disable_parallel_build=yes
|
||
|
||
build_options="anthy"
|
||
desc_option_anthy="Enable anthy Japanese input system"
|
||
|
||
# without the flags configure won’t detect fribidi
|
||
CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/glib-2.0 -I${XBPS_CROSS_BASE}/usr/lib/glib-2.0/include"
|
||
CPPFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/glib-2.0 -I${XBPS_CROSS_BASE}/usr/lib/glib-2.0/include"
|
||
|
||
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/*.a"
|
||
vmove "usr/lib/*.so"
|
||
}
|
||
}
|