logo

overlay

My (experimental) gentoo overlay

vips-8.8.1.ebuild (2447B)


      1 # Copyright 1999-2019 Gentoo Authors
      2 # Distributed under the terms of the GNU General Public License v2
      3 
      4 EAPI=6
      5 inherit eutils autotools multilib-minimal
      6 
      7 DESCRIPTION="VIPS Image Processing Library"
      8 SRC_URI="https://github.com/libvips/libvips/releases/download/v${PV}/${P}.tar.gz"
      9 HOMEPAGE="https://libvips.github.io/libvips/"
     10 
     11 LICENSE="LGPL-2.1"
     12 SLOT="1"
     13 KEYWORDS="~amd64 ~x86"
     14 IUSE="doc debug exif fits fftw heif gsf graphicsmagick imagemagick jpeg lcms matio openexr orc pango pdf png svg static-libs tiff webp zlib"
     15 
     16 # FIXME: nitfi (FIND_NIFTI)
     17 # openslide? ( >=media-libs/openslide-3.3.0 )
     18 RDEPEND="
     19 	>=dev-libs/glib-2.6:2
     20 	dev-libs/expat:=
     21 	debug? ( dev-libs/dmalloc )
     22 	fftw? ( sci-libs/fftw:3.0= )
     23 	imagemagick? (
     24 		graphicsmagick? ( media-gfx/graphicsmagick )
     25 		!graphicsmagick? ( media-gfx/imagemagick )
     26 	)
     27 	exif? ( >=media-libs/libexif-0.6 )
     28 	fits? ( sci-libs/cfitsio )
     29 	heif? ( media-libs/libheif:= )
     30 	jpeg? ( virtual/jpeg:0= )
     31 	gsf? ( gnome-extra/libgsf:= )
     32 	lcms? ( media-libs/lcms )
     33 	matio? ( >=sci-libs/matio-1.3.4 )
     34 	openexr? ( >=media-libs/openexr-1.2.2 )
     35 	orc? ( >=dev-lang/orc-0.4.11 )
     36 	pango? ( x11-libs/pango )
     37 	pdf? ( app-text/poppler[cairo] )
     38 	png? ( >=media-libs/libpng-1.2.9:0= )
     39 	svg? ( gnome-base/librsvg )
     40 	tiff? ( media-libs/tiff:0= )
     41 	webp? ( media-libs/libwebp )
     42 	zlib? ( sys-libs/zlib )
     43 "
     44 DEPEND="
     45 	${RDEPEND}
     46 	doc? (
     47 		dev-util/gtk-doc
     48 		dev-util/gtk-doc-am
     49 	)
     50 "
     51 
     52 DOCS=(ChangeLog NEWS THANKS TODO README.md)
     53 
     54 src_prepare() {
     55 	default
     56 
     57 	eautoreconf
     58 
     59 	multilib_copy_sources
     60 }
     61 
     62 multilib_src_configure() {
     63 	local magick="--without-magick";
     64 	use imagemagick && magick="--with-magickpackage=MagickCore"
     65 	use graphicsmagick && magick="--with-magickpackage=GraphicsMagick"
     66 
     67 	econf \
     68 		${magick} \
     69 		$(multilib_native_use_enable doc gtk-doc) \
     70 		$(use_enable debug) \
     71 		$(use_with debug dmalloc) \
     72 		$(use_with exif libexif) \
     73 		$(use_with fftw) \
     74 		$(use_with fits cfitsio) \
     75 		$(use_with gsf) \
     76 		$(use_with jpeg) \
     77 		$(use_with lcms) \
     78 		$(use_with matio ) \
     79 		$(use_with openexr OpenEXR) \
     80 #		$(use_with openslide) \
     81 		$(use_with orc) \
     82 		$(use_with pango pangoft2) \
     83 		$(use_with pdf poppler) \
     84 		$(use_with png) \
     85 		$(use_with svg rsvg) \
     86 		$(use_with tiff) \
     87 		$(use_with webp libwebp) \
     88 		$(use_with zlib) \
     89 		$(use_enable static-libs static) \
     90 		--with-html-dir="/usr/share/gtk-doc/html"
     91 }
     92 
     93 multilib_src_install() {
     94 	emake DESTDIR="${D}" install
     95 }
     96 multilib_src_install_all() {
     97 	einstalldocs
     98 	prune_libtool_files
     99 }