# Created by: Lev Serebryakov # $FreeBSD$ PORTNAME= vips PORTVERSION= 7.40.2 CATEGORIES= graphics MASTER_SITES= http://www.vips.ecs.soton.ac.uk/supported/${PORTVERSION:R}/ MAINTAINER= mi@aldan.algebra.com COMMENT= Free image processing system BROKEN= Fails to package OPTIONS_DEFINE= PYTHON DOCS OPTIONS_DEFAULT= PYTHON_DESC= Create Python bindings BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 \ libjpeg.so:${PORTSDIR}/graphics/jpeg \ libexif.so:${PORTSDIR}/graphics/libexif \ liblcms2.so:${PORTSDIR}/graphics/lcms2 \ libtiff.so:${PORTSDIR}/graphics/tiff \ libGraphicsMagick.so:${PORTSDIR}/graphics/GraphicsMagick \ libIlmImf.so:${PORTSDIR}/graphics/OpenEXR \ liborc-0.4.so:${PORTSDIR}/devel/orc \ libcfitsio.so:${PORTSDIR}/astro/cfitsio \ libpng15.so:${PORTSDIR}/graphics/png \ libmatio.so:${PORTSDIR}/math/matio PYPRESENT!= which python > /dev/null && echo on || echo off .if ${PYPRESENT} == on OPTIONS_DEFAULT+= PYTHON .endif USES= gettext gmake libtool pathfix perl5 pkgconfig shebangfix USE_PERL5= build SHEBANG_FILES= tools/vips-${PORTVERSION:R} USE_GNOME= glib20 pango libxml2 libgsf USE_LDCONFIG= yes GNU_CONFIGURE= yes CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib" post-configure: ${REINPLACE_CMD} -Ee 's,^(G?MSGFMT = *)$$,\1${LOCALBASE}/bin/msgfmt,g' \ ${WRKSRC}/po/Makefile .include .if ! ${PORT_OPTIONS:MDOCS} CONFIGURE_ARGS+=--disable-docs EXTRACT_AFTER_ARGS+= --exclude doc EXTRA_PATCHES+= ${FILESDIR}/nodoc-patch .endif PLIST_SUB+= VERSION=${PORTVERSION:R} CONFIGURE_ENV+= MAGICK_CFLAGS="-I${LOCALBASE}/include/GraphicsMagick" CONFIGURE_ARGS+=--without-x --mandir=${STAGEDIR}${PREFIX}/man --with-magickpackage=GraphicsMagick .for p in tiff jpeg zip png CONFIGURE_ARGS+=--with-$p-includes=${LOCALBASE}/include CONFIGURE_ARGS+=--with-$p-libraries=${LOCALBASE}/lib .endfor .if ${PORT_OPTIONS:MPYTHON} USE_PYTHON= yes PLIST_SUB+= PY="" post-patch:: ${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \ ${WRKSRC}/tools/vipsprofile .else CONFIGURE_ARGS= --without-python PLIST_SUB+= PY="@comment " .endif .include