xpdf
This commit is contained in:
parent
5aa5deca39
commit
2c7b972c7f
|
@ -0,0 +1,29 @@
|
|||
# Description: A free replacement for Motif
|
||||
# URL: http://www.lesstif.org/
|
||||
# Packager: milisarge
|
||||
# Depends on: freetype xorg-libxt xorg-libxext
|
||||
|
||||
name=lesstif
|
||||
version=0.95.2
|
||||
release=1
|
||||
source=(http://downloads.sourceforge.net/project/$name/$name/$version/$name-$version.tar.bz2)
|
||||
|
||||
build() {
|
||||
cd $name-$version
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--enable-nonstandard-conversions \
|
||||
--disable-debug \
|
||||
--with-editres \
|
||||
--with-xdnd \
|
||||
--mandir=/usr/man
|
||||
make
|
||||
make DESTDIR=$PKG install
|
||||
|
||||
# remove xprint stuff
|
||||
rm $PKG/usr/include/Xm/Print{SP,}.h
|
||||
sed -i -e 's/.*Print.h.*//' $PKG/usr/include/Xm/XmAll.h
|
||||
|
||||
rm -rf $PKG/usr/LessTif $PKG/usr/lib/X11/ \
|
||||
$PKG/usr/man/man{1/mwm.1,5/mwmrc.5}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
# Description: PDF viewer
|
||||
# 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
|
||||
}
|
Loading…
Reference in New Issue