2011-05-17 06:17:00 +08:00
|
|
|
#
|
|
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
|
|
#
|
2012-11-01 13:42:49 +08:00
|
|
|
# maintainer abveritas[at]chakra-project[dot]org>
|
2011-05-17 06:17:00 +08:00
|
|
|
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgname=libwmf
|
|
|
|
pkgver=0.2.8.4
|
2013-01-26 01:35:01 +08:00
|
|
|
pkgrel=12
|
2010-03-14 23:48:48 +08:00
|
|
|
pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)."
|
2012-11-01 13:42:49 +08:00
|
|
|
arch=('x86_64')
|
2010-03-14 23:48:48 +08:00
|
|
|
url="http://wvware.sourceforge.net/libwmf.html"
|
|
|
|
license=("LGPL")
|
2012-11-01 13:42:49 +08:00
|
|
|
depends=('libpng>=1.5.0' 'libx11' 'freetype2' 'libjpeg-turbo' 'gsfonts' 'expat>=2.0')
|
2011-05-17 06:17:00 +08:00
|
|
|
makedepends=('pkgconfig')
|
2010-03-14 23:48:48 +08:00
|
|
|
options=(!libtool)
|
2012-11-01 13:42:49 +08:00
|
|
|
source=("http://downloads.sourceforge.net/sourceforge/wvware/${pkgname}-${pkgver}.tar.gz"
|
|
|
|
'libwmf-0.2.8.4-libpng-1.5.patch')
|
2010-03-14 23:48:48 +08:00
|
|
|
md5sums=('d1177739bf1ceb07f57421f0cee191e0'
|
2012-11-01 13:42:49 +08:00
|
|
|
'21bab2d951aef8e72805eacee950cb09')
|
2010-03-14 23:48:48 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
2012-11-01 13:42:49 +08:00
|
|
|
patch -p1 -i "${srcdir}/libwmf-0.2.8.4-libpng-1.5.patch"
|
|
|
|
|
2010-03-14 23:48:48 +08:00
|
|
|
sed -i -e 's/src include fonts doc/src include fonts/g' Makefile.in
|
|
|
|
./configure --prefix=/usr \
|
|
|
|
--with-gsfontdir=/usr/share/fonts/Type1 \
|
|
|
|
--with-fontdir=/usr/share/fonts/Type1 \
|
2011-05-17 06:17:00 +08:00
|
|
|
--with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS \
|
|
|
|
--disable-gtk2
|
2012-02-26 01:13:16 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
2012-11-01 13:42:49 +08:00
|
|
|
|
2010-03-14 23:48:48 +08:00
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
#Remove fonts, these are in gsfonts
|
|
|
|
rm -rf ${pkgdir}/usr/share/fonts
|
|
|
|
#Remove static GTK loader, can't use it anyways
|
2012-02-26 01:13:16 +08:00
|
|
|
rm -f ${pkgdir}/usr/lib/gtk-2.0/*/loaders/*.a
|
2010-03-14 23:48:48 +08:00
|
|
|
}
|