milis/talimatname/genel/xpdf/talimat

32 lines
754 B
Plaintext
Raw Normal View History

2017-01-30 02:42:26 +01:00
# Description: PDF goruntuleyici
2016-04-29 21:24:07 +02:00
# URL: http://foolabs.com/xpdf
# Packager: milisarge
# Depends on: lesstif
name=xpdf
version=3.04
release=1
source=(ftp://ftp.foolabs.com/pub/xpdf/$name-$version.tar.gz)
build() {
cd $name-$version
sed -i 's/\(s = XmStringCreateLocalized(\)/\1(char *)/g' xpdf/XPDFViewer.cc
./configure \
--prefix=/usr \
--with-Xm-library=/usr/lib \
--with-Xm-includes=/usr/include/Xm \
--with-freetype2-includes=/usr/include/freetype2 \
--sysconfdir=/etc \
--enable-a4-paper \
--enable-opi \
--with-t1-library=no \
--mandir=/usr/man
make
make install DESTDIR=$PKG
find $PKG/usr/bin $PKG/usr/man/man1 -iname 'pdf*' -delete
}