1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit toolchain-funcs
9 DESCRIPTION
="framebuffer pdf and djvu viewer"
10 HOMEPAGE
="http://repo.or.cz/fbpdf.git"
11 SRC_URI
="https://dev.gentoo.org/~slyfox/distfiles/${P}.tar.gz"
15 KEYWORDS
="~amd64 ~x86 ~arm"
19 >=app-text/mupdf-1.10:0=
20 media-libs/freetype:2=
21 media-libs/jbig2dec:0=
23 media-libs/openjpeg:0=
24 !libressl? ( dev-libs/openssl:0= )
25 libressl? ( dev-libs/libressl:0= )
26 djvu? ( app-text/djvu:0= )
34 "${FILESDIR}"/${P}-format.
patch
35 "${FILESDIR}"/${P}-use-pkg-config.
patch
39 emake CC
="$(tc-getCC)" CFLAGS
="${CFLAGS}" LDFLAGS
="${LDFLAGS}" fbpdf
40 use djvu
&& emake CC
="$(tc-getCC)" CFLAGS
="${CFLAGS}" LDFLAGS
="${LDFLAGS}" fbdjvu
45 use djvu
&& dobin fbdjvu