freetype: explicitly enable freetype-config

Closes: #366
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-06-26 03:17:34 +02:00
parent 4a00d41d3d
commit 8024f46fea
No known key found for this signature in database
GPG Key ID: 6764EC32352D0647
1 changed files with 2 additions and 11 deletions

View File

@ -1,8 +1,9 @@
# Template file for 'freetype'
pkgname=freetype
version=2.9.1
revision=2
revision=3
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"
@ -32,16 +33,6 @@ pre_configure() {
fi
}
post_build() {
# Create a legacy /usr/bin/freetype-config script
vmkdir usr/bin
cat >> "${DESTDIR}"/usr/bin/freetype-config <<EOF
#!/bin/sh
pkg-config "\$@" freetype2
EOF
chmod 755 "${DESTDIR}"/usr/bin/freetype-config
}
freetype-devel_package() {
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
short_desc+=" - development files"