2008-10-03 09:42:36 +00:00
|
|
|
# New ports collection Makefile for: gegl
|
|
|
|
# Date created: 3 October 2008
|
|
|
|
# Whom: gahr
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gegl
|
2008-10-06 18:10:39 +00:00
|
|
|
PORTVERSION= 0.0.${GEGL_MINOR}
|
2009-07-18 11:11:29 +00:00
|
|
|
PORTREVISION= 5
|
2008-10-03 09:42:36 +00:00
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ftp://ftp.gimp.org/pub/gegl/0.0/
|
|
|
|
|
|
|
|
MAINTAINER= gahr@FreeBSD.org
|
|
|
|
COMMENT= A graph based image processing framework
|
|
|
|
|
2009-03-14 12:54:09 +00:00
|
|
|
LIB_DEPENDS= babl-0.0:${PORTSDIR}/x11/babl
|
2009-03-10 20:11:26 +00:00
|
|
|
|
|
|
|
OPTIONS= CAIRO "Enable Cairo" on \
|
2009-03-14 12:54:09 +00:00
|
|
|
FFMPEG "Enable videos through ffmpeg" on \
|
2009-03-10 20:11:26 +00:00
|
|
|
GRAPHVIZ "Enable Graphviz" on \
|
2009-03-14 12:54:09 +00:00
|
|
|
JPEG "Enable JPEG format support" on \
|
|
|
|
OPENEXR "Enable High Dynamic Range (HDR) format support" on \
|
|
|
|
OPENRAW "Enable RAW camera format support" on \
|
|
|
|
PANGO "Enable rendering through Pango " on \
|
|
|
|
PNG "Enable PNG format support" on \
|
|
|
|
RSVG "Enable RSVG format support" on \
|
2009-03-10 20:11:26 +00:00
|
|
|
SPIRO "Enable Spiro" on \
|
|
|
|
SDL "Enable SDL" on
|
2009-03-09 22:15:20 +00:00
|
|
|
|
2009-03-14 12:54:09 +00:00
|
|
|
USE_GNOME= gtk20 glib20 pkgconfig gnomehack
|
2008-10-03 09:42:36 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
USE_GMAKE= yes
|
2009-03-14 12:54:09 +00:00
|
|
|
USE_RUBY= build
|
2008-10-03 09:42:36 +00:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/gegl-0.0
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
CFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2008-10-20 17:13:54 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-sse \
|
|
|
|
--disable-mmx
|
2008-10-03 09:42:36 +00:00
|
|
|
|
2009-03-09 22:15:20 +00:00
|
|
|
GEGL_MINOR= 22
|
2008-10-06 18:10:39 +00:00
|
|
|
PLIST_SUB+= GEGL_MINOR="${GEGL_MINOR}"
|
|
|
|
|
2008-10-03 09:42:36 +00:00
|
|
|
EXAMPLES= 2geglbuffer gegl-paint geglbuffer-add-image \
|
|
|
|
geglbuffer-clock hello-world hello-world-video
|
|
|
|
|
2009-03-09 22:15:20 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_CAIRO)
|
|
|
|
LIB_DEPENDS+= cairo.2:${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
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_FFMPEG)
|
2009-03-10 20:11:26 +00:00
|
|
|
LIB_DEPENDS+= avformat.1:${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
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_GRAPHVIZ)
|
|
|
|
LIB_DEPENDS+= graph.4:${PORTSDIR}/graphics/graphviz
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-graphviz
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_JPEG)
|
2009-07-18 11:11:29 +00:00
|
|
|
LIB_DEPENDS+= jpeg.10:${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
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_OPENEXR)
|
|
|
|
LIB_DEPENDS+= IlmImf.6:${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
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_OPENRAW)
|
2009-05-04 14:57:04 +00:00
|
|
|
LIB_DEPENDS+= openraw.6:${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
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_PANGO)
|
|
|
|
USE_GNOME+= pango
|
2009-03-10 20:11:26 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-pango
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2009-03-14 12:54:09 +00:00
|
|
|
.if !defined(WITHOUT_PNG)
|
|
|
|
LIB_DEPENDS+= png.5:${PORTSDIR}/graphics/png
|
|
|
|
PLIST_SUB+= PNG=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libpng
|
|
|
|
PLIST_SUB+= PNG="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-03-09 22:15:20 +00:00
|
|
|
.if !defined(WITHOUT_RSVG)
|
|
|
|
LIB_DEPENDS+= rsvg-2.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
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SDL)
|
|
|
|
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
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SPIRO)
|
|
|
|
LIB_DEPENDS+= spiro.0:${PORTSDIR}/graphics/libspiro
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--without-libspiro
|
2009-03-09 22:15:20 +00:00
|
|
|
.endif
|
|
|
|
|
2008-10-03 09:42:36 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-docs
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e 's|-T||' ${WRKSRC}/docs/Makefile.am ${WRKSRC}/docs/Makefile.in
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
cd ${WRKSRC}/docs && ${GMAKE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${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
|
|
|
|
.if !defined(NOPORTEXAMPLES)
|
|
|
|
${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
|
|
|
|
|
2009-03-09 22:15:20 +00:00
|
|
|
.include <bsd.port.post.mk>
|