void-packages/srcpkgs/freetype/template
svenper 39cf543394 freetype: add upstream fix for bad Type1 rendering (#10724)
The patch is taken from this commit:
`cc2f3cdecff5a351e7e8961b9f2e389ab740231a` [psaux] Correctly handle Flex
features (#52846).

In turn the commit refers to this bug:
https://savannah.nongnu.org/bugs/?52846
2018-01-20 06:59:31 +01:00

46 lines
1.3 KiB
Bash

# Template build file 'freetype'.
pkgname=freetype
version=2.9
revision=2
build_style=gnu-configure
hostmakedepends="pkg-config"
makedepends="zlib-devel bzip2-devel libpng-devel"
short_desc="Font rendering engine and library API"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
homepage="http://www.freetype.org/"
license="GPL-2"
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
checksum=e6ffba3c8cef93f557d1f767d7bc3dee860ac7a3aaff588a521e081bc36f4c8a
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
}
}