freetype: create legacy freetype-config script
Some packages (e.g. ttfautohint) rely on freetype-config for their configuration, so create a wrapper using pkg-config. Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
0f9ef34b09
commit
0d03c95918
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'freetype'
|
||||
pkgname=freetype
|
||||
version=2.9.1
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config"
|
||||
makedepends="bzip2-devel libpng-devel"
|
||||
|
@ -32,11 +32,21 @@ 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"
|
||||
pkg_install() {
|
||||
for f in include share; do
|
||||
for f in bin include share; do
|
||||
vmove usr/${f}
|
||||
done
|
||||
vmove "usr/lib/*.a"
|
||||
|
|
Loading…
Reference in New Issue