Commit aeab6f89 authored by abveritas's avatar abveritas
Browse files

fix errors in libwmf

parent be33a236
...@@ -6,13 +6,14 @@ ...@@ -6,13 +6,14 @@
pkgname=libwmf pkgname=libwmf
pkgver=0.2.8.4 pkgver=0.2.8.4
pkgrel=8 pkgrel=9
pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)." pkgdesc="A library for reading vector images in Microsoft's native Windows Metafile Format (WMF)."
arch=(i686 x86_64) arch=(i686 x86_64)
url="http://wvware.sourceforge.net/libwmf.html" url="http://wvware.sourceforge.net/libwmf.html"
license=("LGPL") license=("LGPL")
depends=('libpng>=1.4.0' 'libx11' 'freetype2' 'libjpeg>=8' 'gsfonts' 'expat>=2.0') depends=('libpng>=1.4.0' 'libx11' 'freetype2' 'libjpeg>=8' 'gsfonts' 'expat>=2.0')
makedepends=('pkgconfig') makedepends=('pkgconfig')
optdepends=('gdk-pixbuf2: for pixbuf loader, used in .install')
options=(!libtool) options=(!libtool)
install=libwmf.install install=libwmf.install
source=(http://downloads.sourceforge.net/sourceforge/wvware/${pkgname}-${pkgver}.tar.gz source=(http://downloads.sourceforge.net/sourceforge/wvware/${pkgname}-${pkgver}.tar.gz
...@@ -22,17 +23,21 @@ md5sums=('d1177739bf1ceb07f57421f0cee191e0' ...@@ -22,17 +23,21 @@ md5sums=('d1177739bf1ceb07f57421f0cee191e0'
build() { build() {
cd ${srcdir}/${pkgname}-${pkgver} cd ${srcdir}/${pkgname}-${pkgver}
patch -Np1 -i "${srcdir}/libpng14.patch" || return 1 patch -Np1 -i "${srcdir}/libpng14.patch"
sed -i -e 's/src include fonts doc/src include fonts/g' Makefile.in sed -i -e 's/src include fonts doc/src include fonts/g' Makefile.in
./configure --prefix=/usr \ ./configure --prefix=/usr \
--with-gsfontdir=/usr/share/fonts/Type1 \ --with-gsfontdir=/usr/share/fonts/Type1 \
--with-fontdir=/usr/share/fonts/Type1 \ --with-fontdir=/usr/share/fonts/Type1 \
--with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS \ --with-gsfontmap=/usr/share/ghostscript/8.15/lib/Fontmap.GS \
--disable-gtk2 --disable-gtk2
make || return 1 make
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR=${pkgdir} install make DESTDIR=${pkgdir} install
#Remove fonts, these are in gsfonts #Remove fonts, these are in gsfonts
rm -rf ${pkgdir}/usr/share/fonts rm -rf ${pkgdir}/usr/share/fonts
#Remove static GTK loader, can't use it anyways #Remove static GTK loader, can't use it anyways
#rm -f ${pkgdir}/usr/lib/gtk-2.0/*/loaders/*.a rm -f ${pkgdir}/usr/lib/gtk-2.0/*/loaders/*.a
} }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment