1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-13 07:34:50 +00:00
freebsd-ports/graphics/vips/Makefile
Niclas Zeising 39fc32e828 The FreeBSD x11@ and graphics team proudly presents
a zeising, kwm production, with help from dumbbell, bdrewery:

NEW XORG ON FREEBSD 9-STABLE AND 10-STABLE

This update switches over to use the new xorg stack by default on FreeBSD 9
and 10 stable, on osversions where vt(9) is available.
It is still possible to use the old stack by specifying WITHOUT_NEW_XORG in
/etc/make.conf .
FreeBSD 8-STABLE and released versions of FreeBSD still use
the old version.
A package repository with binary packages for new xorg will
be available soon.

This patch also contains updates of libxcb and related ports, pixman, as well
as some drivers and utilities.

Bump portrevisions for xf86-* ports, as well as virtualbox-ose-additions due
to xserver version change.

Apart from these updates, the way shared libraries are handled has been
changed for all xorg ports, as well as libxml2 and freetype, which means
ltverhack is gone and as a consequence shared libraries have been bumped.
The plan is that this change will make library bumps less likely in the
future.
All affected ports have had their portrevisions bumped as a consequence of
this.

Fix some issues where WITH_NEW_XORG weren't detected properly on CURRENT.

Update instructions, hardware support, and more notes can be found on
https://wiki.freebsd.org/Graphics

Thanks to:	all testers, bdrewery and the FreeBSD x11@ team
exp-run by:	bdrewery [1]
PR:		ports/187602 [1]
Approved by:	portmgr (bdrewery), core (jhb)
2014-04-16 18:28:47 +00:00

89 lines
2.4 KiB
Makefile

# Created by: Lev Serebryakov <lev@FreeBSD.org>
# $FreeBSD$
PORTNAME= vips
PORTVERSION= 7.26.3
PORTREVISION= 9
CATEGORIES= graphics
MASTER_SITES= http://www.vips.ecs.soton.ac.uk/supported/${PORTVERSION:R}/
MAINTAINER= mi@aldan.algebra.com
COMMENT= Free image processing system
OPTIONS_DEFINE= LIBOIL PYTHON DOCS
OPTIONS_DEFAULT= LIBOIL
LIBOIL_DESC= Use liboil for CPU-optimized primitives
PYTHON_DESC= Create Python bindings
BUILD_DEPENDS= p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser
LIB_DEPENDS= fftw3:${PORTSDIR}/math/fftw3 \
jpeg:${PORTSDIR}/graphics/jpeg \
exif:${PORTSDIR}/graphics/libexif \
tiff:${PORTSDIR}/graphics/tiff \
GraphicsMagick:${PORTSDIR}/graphics/GraphicsMagick \
IlmImf:${PORTSDIR}/graphics/OpenEXR \
orc-0:${PORTSDIR}/devel/orc \
png15:${PORTSDIR}/graphics/png \
matio:${PORTSDIR}/math/matio \
lcms:${PORTSDIR}/graphics/lcms
PYPRESENT!= which python > /dev/null && echo on || echo off
.if ${PYPRESENT} == on
OPTIONS_DEFAULT+= PYTHON
.endif
USES= gettext gmake perl5 pkgconfig
USE_PERL5= build
USE_GNOME= gnomehack glib20 pango libxml2
USE_AUTOTOOLS= libtool
USE_LDCONFIG= yes
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" LDFLAGS="-L${LOCALBASE}/lib"
NO_STAGE= yes
post-configure:
${REINPLACE_CMD} -Ee 's,^(G?MSGFMT = *)$$,\1${LOCALBASE}/bin/msgfmt,g' \
${WRKSRC}/po/Makefile
.include <bsd.port.options.mk>
# Don't extract doc/ subdirectory - the simplest way:
.if ! ${PORT_OPTIONS:MDOCS}
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=${PREFIX}/man --with-magickpackage=GraphicsMagick
CONFIGURE_ARGS+=--without-v4l
.for p in tiff jpeg zip png
CONFIGURE_ARGS+=--with-$p-includes=${LOCALBASE}/include
CONFIGURE_ARGS+=--with-$p-libraries=${LOCALBASE}/lib
.endfor
.include "Makefile.man"
.if ${PORT_OPTIONS:MPYTHON}
USE_PYTHON= yes
PLIST_SUB+= PY=""
.else
CONFIGURE_ARGS= --without-python
PLIST_SUB+= PY="@comment "
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == "sparc64" && ${OSVERSION} > 900000
BROKEN= Does not compile on sparc64-9
.endif
.if ${PORT_OPTIONS:MLIBOIL}
LIB_DEPENDS+= oil:${PORTSDIR}/devel/liboil
.else
CONFIGURE_ARGS+= --without-liboil
.endif
post-patch:
@${REINPLACE_CMD} -e '/VIPS_CXX_LIBS="-lstdc++"/ d' \
${WRKSRC}/configure.in ${WRKSRC}/configure
.include <bsd.port.post.mk>