1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 inherit eutils autotools
9 DESCRIPTION="pslib is a C-library to create PostScript files on the fly"
10 HOMEPAGE="http://pslib.sourceforge.net/"
11 SRC_URI="mirror://sourceforge/pslib/${P}.tar.gz"
15 KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
16 IUSE="debug jpeg png static-libs tiff"
19 png? ( >=media-libs/libpng-1.2.43-r2:0 )
20 jpeg? ( virtual/jpeg )
21 tiff? ( media-libs/tiff )"
22 #gif? requires libungif, not in portage
30 # hackpatchfix underlinking
31 sed -i -e 's/$(TIFF_LIBS)/$(TIFF_LIBS) -lm/' src/Makefile.am || die
32 sed -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" -i configure.in || die
39 $(use_enable static-libs static) \
49 prune_libtool_files --all