2007-05-15 22:19:29 +03:00
|
|
|
# Description: PDF viewer
|
2010-02-28 02:58:28 +01:00
|
|
|
# URL: http://foolabs.com/xpdf
|
|
|
|
# Maintainer: Thomas Penteker, tek at serverop dot de
|
|
|
|
# Packager: Robert McMeekin, viper at mcmeekin dot info
|
2011-03-24 11:26:38 +01:00
|
|
|
# Depends on: lesstif
|
2007-05-15 22:19:29 +03:00
|
|
|
|
|
|
|
name=xpdf
|
2014-06-05 13:38:19 +02:00
|
|
|
version=3.04
|
|
|
|
release=1
|
2011-09-12 12:58:12 +02:00
|
|
|
source=(ftp://ftp.foolabs.com/pub/xpdf/$name-$version.tar.gz)
|
2007-05-15 22:19:29 +03:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
2011-09-12 12:58:12 +02:00
|
|
|
|
|
|
|
sed -i 's/\(s = XmStringCreateLocalized(\)/\1(char *)/g' xpdf/XPDFViewer.cc
|
2010-11-14 17:00:23 +01:00
|
|
|
|
2007-05-15 22:19:29 +03:00
|
|
|
./configure \
|
2010-11-14 17:00:23 +01:00
|
|
|
--prefix=/usr \
|
2007-05-15 22:19:29 +03:00
|
|
|
--with-Xm-library=/usr/lib \
|
|
|
|
--with-Xm-includes=/usr/include/Xm \
|
2010-11-14 17:00:23 +01:00
|
|
|
--with-freetype2-includes=/usr/include/freetype2 \
|
2007-05-15 22:19:29 +03:00
|
|
|
--sysconfdir=/etc \
|
|
|
|
--enable-a4-paper \
|
2011-03-24 11:26:38 +01:00
|
|
|
--enable-opi \
|
2011-09-12 12:58:12 +02:00
|
|
|
--with-t1-library=no \
|
|
|
|
--mandir=/usr/man
|
|
|
|
|
2007-05-15 22:19:29 +03:00
|
|
|
make
|
|
|
|
make install DESTDIR=$PKG
|
2014-05-05 14:28:36 +02:00
|
|
|
|
2014-05-05 14:33:29 +02:00
|
|
|
find $PKG/usr/bin $PKG/usr/man/man1 -iname 'pdf*' -delete
|
2007-05-15 22:19:29 +03:00
|
|
|
}
|