2012-12-30 05:58:16 +00:00
|
|
|
# Created by: gahr
|
2008-10-03 09:42:36 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= gegl
|
2011-11-22 08:52:53 +00:00
|
|
|
PORTVERSION= 0.1.8
|
2013-01-25 21:10:02 +00:00
|
|
|
PORTREVISION= 6
|
2008-10-03 09:42:36 +00:00
|
|
|
CATEGORIES= graphics
|
2010-03-24 15:21:24 +00:00
|
|
|
MASTER_SITES= ftp://ftp.gimp.org/pub/gegl/0.1/
|
2008-10-03 09:42:36 +00:00
|
|
|
|
2011-11-29 08:09:22 +00:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2008-10-03 09:42:36 +00:00
|
|
|
COMMENT= A graph based image processing framework
|
|
|
|
|
2011-12-03 14:37:21 +00:00
|
|
|
BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection
|
2012-12-30 05:58:16 +00:00
|
|
|
LIB_DEPENDS= babl-0.1:${PORTSDIR}/x11/babl
|
2009-03-10 20:11:26 +00:00
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
OPTIONS_DEFINE= CAIRO DOCS ENSCRIPT EXIV2 FFMPEG PIXBUF GRAPHVIZ JASPER JPEG \
|
|
|
|
LUA OPENEXR OPENRAW SIMD PANGO PNG LIBRSVG2 SDL SPIRO V4L
|
|
|
|
OPTIONS_DEFAULT=CAIRO DOCS ENSCRIPT EXIV2 PIXBUF GRAPHVIZ JASPER JPEG LUA \
|
|
|
|
OPENEXR OPENRAW PANGO PNG LIBRSVG2 SDL SPIRO V4L
|
|
|
|
|
|
|
|
ENSCRIPT_DESC= Enscript support
|
|
|
|
SPIRO_DESC= Spiro support
|
|
|
|
#UMFPACK_DESC= UMFpack support
|
|
|
|
|
|
|
|
USE_GNOME= glib20 gnomehack
|
|
|
|
USE_PKGCONFIG= build
|
2008-10-03 09:42:36 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2012-03-14 15:24:09 +00:00
|
|
|
USE_GETTEXT= yes
|
2010-03-24 15:21:24 +00:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/gegl-0.1
|
2008-10-03 09:42:36 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2012-12-30 05:58:16 +00:00
|
|
|
CONFIGURE_ENV+= ac_cv_header_execinfo_h=no
|
2011-11-22 12:58:08 +00:00
|
|
|
CONFIGURE_ARGS+=--without-vala
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2012-12-30 05:58:16 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lintl
|
2008-10-03 09:42:36 +00:00
|
|
|
|
2011-11-22 08:52:53 +00:00
|
|
|
GEGL_MINOR= 107
|
2008-10-06 18:10:39 +00:00
|
|
|
PLIST_SUB+= GEGL_MINOR="${GEGL_MINOR}"
|
|
|
|
|
2011-11-22 08:52:53 +00:00
|
|
|
EXAMPLES= 2geglbuffer csugar float-lookup \
|
|
|
|
gegl-convert gegl-slicer geglbuffer-add-image \
|
|
|
|
geglbuffer-clock hello-world-video hello-world
|
2008-10-03 09:42:36 +00:00
|
|
|
|
2011-03-08 11:24:58 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2009-03-09 22:15:20 +00:00
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MPIXBUF}
|
2012-05-20 16:39:14 +00:00
|
|
|
USE_GNOME+= gdkpixbuf2
|
|
|
|
PLIST_SUB+= GDK=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-gdk-pixbuf
|
|
|
|
PLIST_SUB+= GDK="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MCAIRO}
|
|
|
|
LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= CAIRO=""
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-cairo
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= CAIRO="@comment "
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MPANGO}
|
2011-03-08 11:24:58 +00:00
|
|
|
USE_GNOME+= pango
|
|
|
|
PLIST_SUB+= PANGO=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-pango
|
|
|
|
PLIST_SUB+= PANGO="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MPANGO} && ${PORT_OPTIONS:MCAIRO}
|
2011-03-08 11:24:58 +00:00
|
|
|
PLIST_SUB+= PANGOCAIRO=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-pangocairo
|
|
|
|
PLIST_SUB+= PANGOCAIRO="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MENSCRIPT}
|
2010-03-24 15:21:24 +00:00
|
|
|
BUILD_DEPENDS+= enscript:${PORTSDIR}/print/enscript-a4
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MFFMPEG}
|
|
|
|
LIB_DEPENDS+= avformat:${PORTSDIR}/multimedia/ffmpeg
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= FFMPEG=""
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libavformat
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= FFMPEG="@comment "
|
2009-03-10 20:11:26 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MGRAPHVIZ}
|
2011-05-20 20:22:57 +00:00
|
|
|
LIB_DEPENDS+= graph:${PORTSDIR}/graphics/graphviz
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-graphviz
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MJASPER}
|
|
|
|
LIB_DEPENDS+= jasper:${PORTSDIR}/graphics/jasper
|
2012-05-20 16:39:14 +00:00
|
|
|
PLIST_SUB+= JP2=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-jasper
|
|
|
|
PLIST_SUB+= JP2="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MJPEG}
|
|
|
|
LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= JPEG=""
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libjpeg
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= JPEG="@comment "
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MLUA}
|
2009-07-24 09:24:10 +00:00
|
|
|
USE_LUA= 5.1
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-lua
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENEXR}
|
2013-01-17 03:32:27 +00:00
|
|
|
LIB_DEPENDS+= IlmImf:${PORTSDIR}/graphics/OpenEXR
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= OPENEXR=""
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-openexr
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= OPENEXR="@comment "
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENRAW}
|
|
|
|
LIB_DEPENDS+= openraw:${PORTSDIR}/graphics/libopenraw
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= OPENRAW=""
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libopenraw
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= OPENRAW="@comment "
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MSIMD}
|
2009-07-24 09:24:10 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-mmx \
|
|
|
|
--disable-sse
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MPNG}
|
2012-06-01 05:26:28 +00:00
|
|
|
LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= PNG=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libpng
|
|
|
|
PLIST_SUB+= PNG="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MLIBRSVG2}
|
|
|
|
LIB_DEPENDS+= rsvg-2:${PORTSDIR}/graphics/librsvg2
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= RSVG=""
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-librsvg
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= RSVG="@comment "
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MSDL}
|
2009-03-09 22:15:20 +00:00
|
|
|
USE_SDL= sdl
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= SDL=""
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-sdl
|
2009-03-14 12:54:09 +00:00
|
|
|
PLIST_SUB+= SDL="@comment "
|
2009-03-10 20:11:26 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MSPIRO}
|
|
|
|
LIB_DEPENDS+= spiro:${PORTSDIR}/graphics/libspiro
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libspiro
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MV4L}
|
2009-07-24 09:24:10 +00:00
|
|
|
BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat
|
|
|
|
PLIST_SUB+= V4L=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libv4l
|
|
|
|
PLIST_SUB+= V4L="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-01-25 21:10:02 +00:00
|
|
|
# umfpack library is broken
|
|
|
|
#.if ${PORT_OPTIONS:MUMFPACK}
|
|
|
|
#LIB_DEPENDS+= umfpack:${PORTSDIR}/math/suitesparse
|
|
|
|
#PLIST_SUB+= UMFPACK=""
|
|
|
|
#.else
|
|
|
|
CONFIGURE_ARGS+=--without-umfpack
|
|
|
|
PLIST_SUB+= UMFPACK="@comment "
|
|
|
|
#.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MEXIV2}
|
|
|
|
LIB_DEPENDS+= exiv2:${PORTSDIR}/graphics/exiv2
|
|
|
|
PLIST_SUB+= EXIV2=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-exiv2
|
|
|
|
PLIST_SUB+= EXIV2="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-10-03 09:42:36 +00:00
|
|
|
BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc
|
|
|
|
.else
|
2013-01-25 21:10:02 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-docs
|
2008-10-03 09:42:36 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2013-01-25 21:10:02 +00:00
|
|
|
.if empty(PORT_OPTIONS:MDOCS)
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS/s|tools examples tests||' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2012-05-20 20:24:46 +00:00
|
|
|
.endif
|
|
|
|
${REINPLACE_CMD} -e 's|-T||' \
|
|
|
|
${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in
|
|
|
|
${REINPLACE_CMD} -e 's|\(lua\)\(5\.1\)|\1-\2|g ; s|x86_64|amd64|g' \
|
|
|
|
${WRKSRC}/configure
|
|
|
|
${REINPLACE_CMD} -e 's|/usr/bin/ruby|/usr/bin/env ruby|' \
|
|
|
|
${WRKSRC}/tools/gobj2dot.rb
|
2008-10-03 09:42:36 +00:00
|
|
|
|
|
|
|
post-build:
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-10-03 09:42:36 +00:00
|
|
|
cd ${WRKSRC}/docs && ${GMAKE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-10-03 09:42:36 +00:00
|
|
|
${MKDIR} ${DOCSDIR}/gallery
|
|
|
|
(cd ${WRKSRC}/docs && \
|
|
|
|
${COPYTREE_SHARE} \*.html ${DOCSDIR} && \
|
|
|
|
${INSTALL_DATA} ChangeLog gegl.css gegl.devhelp devhelp.css ${DOCSDIR} && \
|
|
|
|
${INSTALL_DATA} gallery/OpenRaster* ${DOCSDIR}/gallery && \
|
|
|
|
${INSTALL_DATA} gallery/clones* ${DOCSDIR}/gallery && \
|
|
|
|
${INSTALL_DATA} gallery/index.html ${DOCSDIR}/gallery )
|
|
|
|
.endif
|
2013-01-25 21:10:02 +00:00
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
2008-10-03 09:42:36 +00:00
|
|
|
${MKDIR} ${EXAMPLESDIR}/data
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/data/surfer.png ${EXAMPLESDIR}/data
|
|
|
|
.for ex in ${EXAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/examples/${ex}.c ${EXAMPLESDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2011-03-08 11:24:58 +00:00
|
|
|
.include <bsd.port.mk>
|