2009-03-19 02:01:31 +00:00
|
|
|
# Template build file 'freetype'.
|
2009-02-09 13:25:13 +00:00
|
|
|
pkgname=freetype
|
2015-10-05 06:43:46 +00:00
|
|
|
version=2.6.1
|
2015-06-09 05:43:23 +00:00
|
|
|
revision=1
|
2011-10-24 12:14:47 +00:00
|
|
|
build_style=gnu-configure
|
2014-10-12 10:46:31 +00:00
|
|
|
hostmakedepends="pkg-config"
|
2013-06-20 18:01:15 +00:00
|
|
|
makedepends="zlib-devel bzip2-devel libpng-devel"
|
2008-10-01 15:07:54 +00:00
|
|
|
short_desc="Font rendering engine and library API"
|
2015-04-10 07:16:30 +00:00
|
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
2011-07-09 16:11:15 +00:00
|
|
|
homepage="http://www.freetype.org/"
|
|
|
|
license="GPL-2"
|
2012-06-15 21:04:12 +00:00
|
|
|
distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.bz2"
|
2015-10-05 06:43:46 +00:00
|
|
|
checksum=2f6e9a7de3ae8e85bdd2fe237e27d868d3ba7a27495e65906455c27722dd1a17
|
2013-06-20 16:00:34 +00:00
|
|
|
|
2015-05-15 15:49:48 +00:00
|
|
|
build_options="ultimate"
|
|
|
|
desc_option_ultimate="Enable ultimate patchset"
|
|
|
|
|
2015-06-09 05:43:23 +00:00
|
|
|
if [ "${build_option_ultimate}" ]; then
|
2015-08-20 10:21:48 +00:00
|
|
|
_ultimate_version="2015-08-01"
|
2015-05-15 15:49:48 +00:00
|
|
|
_ultimate_wrksrc="${XBPS_BUILDDIR}/fontconfig-ultimate-${_ultimate_version}/"
|
|
|
|
distfiles+=" https://github.com/bohoomil/fontconfig-ultimate/archive/${_ultimate_version}.tar.gz"
|
2015-08-20 10:21:48 +00:00
|
|
|
checksum+=" 19b3eac37f589a651e90507680c80e19bcb2ed4e3e6c63da7ca3c6e22bb209e9"
|
2015-05-15 15:49:48 +00:00
|
|
|
conf_files+=" /etc/profile.d/infinality-settings.sh"
|
|
|
|
|
|
|
|
post_extract() {
|
2015-10-05 06:45:44 +00:00
|
|
|
msg_normal "Applying ultimate patchset\n"
|
2015-05-15 15:49:48 +00:00
|
|
|
for P in ${_ultimate_wrksrc}/${pkgname}/*.patch; do
|
2015-08-20 10:21:48 +00:00
|
|
|
patch -p1 < $P
|
2015-05-15 15:49:48 +00:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
post_install() {
|
|
|
|
vmkdir etc/profile.d
|
|
|
|
vinstall ${_ultimate_wrksrc}/${pkgname}/infinality-settings.sh 644 etc/profile.d
|
|
|
|
}
|
|
|
|
else
|
|
|
|
post_extract() {
|
2015-10-05 06:45:44 +00:00
|
|
|
msg_normal "Applying freetype patches\n"
|
2015-05-15 15:49:48 +00:00
|
|
|
for P in ${FILESDIR}/*.patch; do
|
|
|
|
patch -p0 < $P
|
|
|
|
done
|
|
|
|
}
|
|
|
|
fi
|
|
|
|
|
2013-04-12 09:16:02 +00:00
|
|
|
freetype-devel_package() {
|
2014-10-12 10:46:31 +00:00
|
|
|
depends="${makedepends} ${sourcepkg}>=${version}_${revision}"
|
2013-05-11 16:55:36 +00:00
|
|
|
short_desc+=" - development files"
|
2013-04-12 09:16:02 +00:00
|
|
|
pkg_install() {
|
|
|
|
for f in bin include share; do
|
|
|
|
vmove usr/${f}
|
|
|
|
done
|
|
|
|
vmove "usr/lib/*.a"
|
2013-11-25 13:33:59 +00:00
|
|
|
vmove "usr/lib/*.so"
|
2013-04-12 09:16:02 +00:00
|
|
|
vmove usr/lib/pkgconfig
|
|
|
|
}
|
|
|
|
}
|