# xpdf, ftp://ftp.foolabs.com/pub/xpdf/ name=xpdf version=3.01pl2 release=1 source=(ftp://ftp.foolabs.com/pub/xpdf/$name-3.01.tar.gz ftp://ftp.foolabs.com/pub/xpdf/$name-$version.patch) build() { cd $name-3.01 patch -p1 < ../$name-$version.patch ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info \ --with-Xm-library=/usr/lib \ --with-Xm-includes=/usr/include/Xm \ --with-freetype2-includes=/usr/include/freetype2 \ --enable-a4-paper \ --enable-opi make make DESTDIR=$PKG install }