milis/talimatname/genel/x/xpdf/talimat

32 lines
728 B
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: PDF goruntuleyici
2017-05-01 10:55:43 +02:00
# URL: http://foolabs.com/xpdf
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: lesstif
2016-04-29 21:24:07 +02:00
2017-10-28 14:10:23 +02:00
isim=xpdf
surum=3.04
devir=1
kaynak=(ftp://ftp.foolabs.com/pub/xpdf/$isim-$surum.tar.gz)
2016-04-29 21:24:07 +02:00
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-04-29 21:24:07 +02:00
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
}