47 lines
1.4 KiB
Bash
47 lines
1.4 KiB
Bash
# Template build file 'freetype'.
|
|
pkgname=freetype
|
|
version=2.7
|
|
revision=1
|
|
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=d6a451f5b754857d2aa3964fd4473f8bc5c64e879b24516d780fb26bec7f7d48
|
|
|
|
build_options="ultimate"
|
|
desc_option_ultimate="Enable ultimate patchset"
|
|
|
|
if [ "${build_option_ultimate}" ]; then
|
|
_ultimate_version="2016-04-23"
|
|
_ultimate_wrksrc="${XBPS_BUILDDIR}/fontconfig-ultimate-${_ultimate_version}"
|
|
distfiles+=" https://github.com/bohoomil/fontconfig-ultimate/archive/${_ultimate_version}.tar.gz"
|
|
checksum+=" 9ea0e2455980be7c2ff649c1deb07838e9be64f4fad939716e0050fd5897b057"
|
|
conf_files="/etc/profile.d/infinality-settings.sh"
|
|
post_extract() {
|
|
msg_normal "Applying ultimate patchset\n"
|
|
for P in ${_ultimate_wrksrc}/${pkgname}/*.patch; do
|
|
patch -p1 < $P
|
|
done
|
|
}
|
|
post_install() {
|
|
vmkdir etc/profile.d
|
|
vinstall ${_ultimate_wrksrc}/${pkgname}/infinality-settings.sh 644 etc/profile.d
|
|
}
|
|
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
|
|
}
|
|
}
|