30 lines
1.1 KiB
Bash
30 lines
1.1 KiB
Bash
# Template file for 'xpdf'
|
|
pkgname=xpdf
|
|
version=3.04
|
|
revision=2
|
|
build_style=gnu-configure
|
|
configure_args="--enable-multithreaded
|
|
--with-freetype2-library=${XBPS_CROSS_BASE}/usr/lib
|
|
--with-freetype2-includes=${XBPS_CROSS_BASE}/usr/include/freetype2
|
|
--x-includes=${XBPS_CROSS_BASE}/usr/include"
|
|
conf_files="/etc/xpdfrc"
|
|
makedepends="lesstif-devel libpaper-devel libXt-devel libXpm-devel libXp-devel freetype-devel"
|
|
depends="gsfonts"
|
|
short_desc="Viewer for Portable Document Format (PDF) files"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="GPL-2.0-or-later, GPL-3.0-or-later"
|
|
homepage="http://www.foolabs.com/xpdf/"
|
|
distfiles="https://xpdfreader-dl.s3.amazonaws.com/old/xpdf-$version.tar.gz"
|
|
checksum=11390c74733abcb262aaca4db68710f13ffffd42bfe2a0861a5dfc912b2977e5
|
|
patch_args="-Np1"
|
|
|
|
post_extract() {
|
|
sed -i 's:/usr/share/fonts/type1/gsfonts:/usr/share/fonts/Type1:' xpdf/GlobalParams.cc
|
|
sed -i 's:times-medium-r-normal--16:times-medium-r-normal--14:' xpdf/XPDFViewer.cc
|
|
}
|
|
|
|
post_install() {
|
|
# already in poppler-utils
|
|
rm $DESTDIR/usr/bin/pdf*
|
|
rm $DESTDIR/usr/share/man/man1/pdf*
|
|
}
|