void-packages/srcpkgs/freetype/template
2019-03-16 14:45:41 -03:00

47 lines
1.3 KiB
Bash

# Template file for 'freetype'
pkgname=freetype
version=2.10.0
revision=1
build_style=gnu-configure
configure_args="--enable-freetype-config"
hostmakedepends="pkg-config"
makedepends="bzip2-devel libpng-devel"
short_desc="Font rendering engine and library API"
maintainer="Juan RP <xtraeme@voidlinux.org>"
license="GPL-2.0-or-later"
homepage="https://www.freetype.org/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}.tar.bz2"
checksum=fccc62928c65192fff6c98847233b28eb7ce05f12d2fea3f6cc90e8b4e5fbe06
build_options="v35 v38 v40"
build_options_default="v40"
desc_option_v35="Use default interpreter version 35 (Classic mode)"
desc_option_v38="Use default interpreter version 38 (Infinality mode)"
desc_option_v40="Use default interpreter version 40 (Minimal mode)"
vopt_conflict v35 v38
vopt_conflict v35 v40
vopt_conflict v38 v40
pre_configure() {
CFLAGS+=" -DDEFAULT_TT_INTERPRETER_VERSION=TT_INTERPRETER_VERSION_"
if [ "$build_option_v35" ]; then
CFLAGS+="35"
elif [ "$build_option_v38" ]; then
CFLAGS+="38"
elif [ "$build_option_v40" ]; then
CFLAGS+="40"
fi
}
freetype-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
for f in bin include share; do
vmove usr/${f}
done
vmove "usr/lib/*.a"
vmove "usr/lib/*.so"
vmove usr/lib/pkgconfig
}
}