diff options
-rw-r--r-- | graphics/gegl/Makefile | 99 | ||||
-rw-r--r-- | graphics/gegl/pkg-plist | 2 |
2 files changed, 49 insertions, 52 deletions
diff --git a/graphics/gegl/Makefile b/graphics/gegl/Makefile index 6f3e40f07..e3d7b47a9 100644 --- a/graphics/gegl/Makefile +++ b/graphics/gegl/Makefile @@ -1,9 +1,5 @@ -# New ports collection Makefile for: gegl -# Date created: 3 October 2008 -# Whom: gahr -# +# Created by: gahr # $FreeBSD$ -# PORTNAME= gegl PORTVERSION= 0.2.0 @@ -18,26 +14,14 @@ BUILD_DEPENDS= g-ir-scanner:${PORTSDIR}/devel/gobject-introspection LIB_DEPENDS= babl-0:${PORTSDIR}/x11/babl \ execinfo:${PORTSDIR}/devel/libexecinfo -OPTIONS= CAIRO "Enable Cairo" on \ - ENSCRIPT "Enable Enscript" on \ - FFMPEG "Enable videos through ffmpeg (BROKEN)" off \ - GDK "Enable gdk-pixbuf2 formats support" on \ - GRAPHVIZ "Enable Graphviz" on \ - JP2 "Enable JPEG2000 format support" on \ - JPEG "Enable JPEG format support" on \ - LUA "Enable LUA" on \ - OPENEXR "Enable High Dynamic Range (HDR) format support" on \ - OPENRAW "Enable RAW camera format support" on \ - OPTIMIZE "Enable optimizations autodetection (MMX, SSE)" off \ - PANGO "Enable rendering through Pango " on \ - PNG "Enable PNG format support" on \ - RSVG "Enable RSVG format support" on \ - SDL "Enable SDL" on \ - SPIRO "Enable Spiro" on \ - V4L "Enable Video4Linux" on - -# Disable docs until I fix the problem with graphviz's dot -NOPORTDOCS= yes +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 pkgconfig gnomehack USE_BZIP2= yes @@ -59,7 +43,7 @@ EXAMPLES= 2geglbuffer csugar float-lookup \ .include <bsd.port.options.mk> -.if !defined(WITHOUT_GDK) +.if ${PORT_OPTIONS:MPIXBUF} USE_GNOME+= gdkpixbuf2 PLIST_SUB+= GDK="" .else @@ -67,7 +51,7 @@ CONFIGURE_ARGS+=--without-gdk-pixbuf PLIST_SUB+= GDK="@comment " .endif -.if !defined(WITHOUT_CAIRO) +.if ${PORT_OPTIONS:MCAIRO} LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo PLIST_SUB+= CAIRO="" .else @@ -75,7 +59,7 @@ CONFIGURE_ARGS+=--without-cairo PLIST_SUB+= CAIRO="@comment " .endif -.if !defined(WITHOUT_PANGO) +.if ${PORT_OPTIONS:MPANGO} USE_GNOME+= pango PLIST_SUB+= PANGO="" .else @@ -83,18 +67,18 @@ CONFIGURE_ARGS+=--without-pango PLIST_SUB+= PANGO="@comment " .endif -.if !defined(WITHOUT_PANGO) && !defined(WITHOUT_CAIRO) +.if ${PORT_OPTIONS:MPANGO} && ${PORT_OPTIONS:MCAIRO} PLIST_SUB+= PANGOCAIRO="" .else CONFIGURE_ARGS+=--without-pangocairo PLIST_SUB+= PANGOCAIRO="@comment " .endif -.if !defined(WITHOUT_ENSCRIPT) +.if ${PORT_OPTIONS:MENSCRIPT} BUILD_DEPENDS+= enscript:${PORTSDIR}/print/enscript-a4 .endif -.if !defined(WITHOUT_FFMPEG) +.if ${PORT_OPTIONS:MFFMPEG} LIB_DEPENDS+= avformat:${PORTSDIR}/multimedia/ffmpeg PLIST_SUB+= FFMPEG="" .else @@ -102,13 +86,13 @@ CONFIGURE_ARGS+=--without-libavformat PLIST_SUB+= FFMPEG="@comment " .endif -.if !defined(WITHOUT_GRAPHVIZ) +.if ${PORT_OPTIONS:MGRAPHVIZ} LIB_DEPENDS+= graph:${PORTSDIR}/graphics/graphviz .else CONFIGURE_ARGS+=--without-graphviz .endif -.if !defined(WITHOUT_JP2) +.if ${PORT_OPTIONS:MJASPER} LIB_DEPENDS+= jasper:${PORTSDIR}/graphics/jasper PLIST_SUB+= JP2="" .else @@ -116,7 +100,7 @@ CONFIGURE_ARGS+=--without-jasper PLIST_SUB+= JP2="@comment " .endif -.if !defined(WITHOUT_JPEG) +.if ${PORT_OPTIONS:MJPEG} LIB_DEPENDS+= jpeg:${PORTSDIR}/graphics/jpeg PLIST_SUB+= JPEG="" .else @@ -124,13 +108,13 @@ CONFIGURE_ARGS+=--without-libjpeg PLIST_SUB+= JPEG="@comment " .endif -.if !defined(WITHOUT_LUA) +.if ${PORT_OPTIONS:MLUA} USE_LUA= 5.1 .else CONFIGURE_ARGS+=--without-lua .endif -.if !defined(WITHOUT_OPENEXR) +.if ${PORT_OPTIONS:MOPENEXR} LIB_DEPENDS+= IlmImf:${PORTSDIR}/graphics/OpenEXR PLIST_SUB+= OPENEXR="" .else @@ -138,7 +122,7 @@ CONFIGURE_ARGS+=--without-openexr PLIST_SUB+= OPENEXR="@comment " .endif -.if !defined(WITHOUT_OPENRAW) +.if ${PORT_OPTIONS:MOPENRAW} LIB_DEPENDS+= openraw:${PORTSDIR}/graphics/libopenraw PLIST_SUB+= OPENRAW="" .else @@ -146,12 +130,12 @@ CONFIGURE_ARGS+=--without-libopenraw PLIST_SUB+= OPENRAW="@comment " .endif -.if defined(WITHOUT_OPTIMIZE) +.if ${PORT_OPTIONS:MSIMD} CONFIGURE_ARGS+=--disable-mmx \ --disable-sse .endif -.if !defined(WITHOUT_PNG) +.if ${PORT_OPTIONS:MPNG} LIB_DEPENDS+= png15:${PORTSDIR}/graphics/png PLIST_SUB+= PNG="" .else @@ -159,7 +143,7 @@ CONFIGURE_ARGS+=--without-libpng PLIST_SUB+= PNG="@comment " .endif -.if !defined(WITHOUT_RSVG) +.if ${PORT_OPTIONS:MLIBRSVG2} LIB_DEPENDS+= rsvg-2:${PORTSDIR}/graphics/librsvg2 PLIST_SUB+= RSVG="" .else @@ -167,7 +151,7 @@ CONFIGURE_ARGS+=--without-librsvg PLIST_SUB+= RSVG="@comment " .endif -.if !defined(WITHOUT_SDL) +.if ${PORT_OPTIONS:MSDL} USE_SDL= sdl PLIST_SUB+= SDL="" .else @@ -175,13 +159,13 @@ CONFIGURE_ARGS+=--without-sdl PLIST_SUB+= SDL="@comment " .endif -.if !defined(WITHOUT_SPIRO) +.if ${PORT_OPTIONS:MSPIRO} LIB_DEPENDS+= spiro:${PORTSDIR}/graphics/libspiro .else CONFIGURE_ARGS+=--without-libspiro .endif -.if !defined(WITHOUT_V4L) +.if ${PORT_OPTIONS:MV4L} BUILD_DEPENDS+= ${LOCALBASE}/include/linux/videodev.h:${PORTSDIR}/multimedia/v4l_compat PLIST_SUB+= V4L="" .else @@ -189,31 +173,46 @@ CONFIGURE_ARGS+=--without-libv4l PLIST_SUB+= V4L="@comment " .endif -.if !defined(NOPORTDOCS) +# 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} BUILD_DEPENDS+= a2x:${PORTSDIR}/textproc/asciidoc .else CONFIGURE_ARGS+=--disable-docs .endif post-patch: -.if defined(NOPORTDOCS) +.if empty(PORT_OPTIONS:MDOCS) ${REINPLACE_CMD} -e '10s|\\||; 11,13d' \ ${WRKSRC}/Makefile.am .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 post-build: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} cd ${WRKSRC}/docs && ${GMAKE} .endif post-install: -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR}/gallery (cd ${WRKSRC}/docs && \ ${COPYTREE_SHARE} \*.html ${DOCSDIR} && \ @@ -222,7 +221,7 @@ post-install: ${INSTALL_DATA} gallery/clones* ${DOCSDIR}/gallery && \ ${INSTALL_DATA} gallery/index.html ${DOCSDIR}/gallery ) .endif -.if !defined(NOPORTEXAMPLES) +.if ${PORT_OPTIONS:MEXAMPLES} ${MKDIR} ${EXAMPLESDIR}/data ${INSTALL_DATA} ${WRKSRC}/examples/data/surfer.png ${EXAMPLESDIR}/data .for ex in ${EXAMPLES} diff --git a/graphics/gegl/pkg-plist b/graphics/gegl/pkg-plist index dda44a42f..68e5939a0 100644 --- a/graphics/gegl/pkg-plist +++ b/graphics/gegl/pkg-plist @@ -314,7 +314,6 @@ libdata/pkgconfig/gegl-%%GEGL_VER%%.pc %%PORTDOCS%%%%DOCSDIR%%/api.html %%PORTDOCS%%%%DOCSDIR%%/brightness-contrast.c.html %%PORTDOCS%%%%DOCSDIR%%/class-hierarchy.html -%%PORTDOCS%%%%DOCSDIR%%/development.html %%PORTDOCS%%%%DOCSDIR%%/devhelp.css %%PNG%%%%PORTDOCS%%%%DOCSDIR%%/gallery/OpenRaster-00.png %%PORTDOCS%%%%DOCSDIR%%/gallery/OpenRaster-00.txt @@ -344,7 +343,6 @@ libdata/pkgconfig/gegl-%%GEGL_VER%%.pc %%PORTDOCS%%%%DOCSDIR%%/gegl.css %%PORTDOCS%%%%DOCSDIR%%/gegl.devhelp %%PORTDOCS%%%%DOCSDIR%%/gegl.h.html -%%PORTDOCS%%%%DOCSDIR%%/index.html %%PORTDOCS%%%%DOCSDIR%%/operations.html %%PORTEXAMPLES%%%%EXAMPLESDIR%%/data/surfer.png %%PORTEXAMPLES%%%%EXAMPLESDIR%%/2geglbuffer.c |