[114579] trunk/dports/graphics
devans at macports.org
devans at macports.org
Tue Dec 10 09:47:22 PST 2013
Revision: 114579
https://trac.macports.org/changeset/114579
Author: devans at macports.org
Date: 2013-12-10 09:47:22 -0800 (Tue, 10 Dec 2013)
Log Message:
-----------
gegl-devel: new development version of gegl based on a snapshort of recent git master.
Added Paths:
-----------
trunk/dports/graphics/gegl-devel/
trunk/dports/graphics/gegl-devel/Portfile
trunk/dports/graphics/gegl-devel/files/
trunk/dports/graphics/gegl-devel/files/patch-configure.ac.diff
trunk/dports/graphics/gegl-devel/files/patch-ffmpeg.diff
trunk/dports/graphics/gegl-devel/files/rename-for-altivec.patch
Added: trunk/dports/graphics/gegl-devel/Portfile
===================================================================
--- trunk/dports/graphics/gegl-devel/Portfile (rev 0)
+++ trunk/dports/graphics/gegl-devel/Portfile 2013-12-10 17:47:22 UTC (rev 114579)
@@ -0,0 +1,123 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem 1.0
+PortGroup muniversal 1.0
+
+name gegl-devel
+set git_name gegl
+set git_commit c556f4323a9fc9c18b78596afd0357d0b4a52d90
+conflicts gegl
+version 0.3.0
+revision 20131208
+license {GPL-3+ LGPL-3+}
+categories graphics
+maintainers devans
+platforms darwin
+
+description GEGL is a graph based image processing framework.
+
+long_description \
+ GEGL is a graph based image processing framework offering image processing and \
+ compositing on large images. GEGL is suitable for projects ranging from small \
+ one-off projects to interactive applications. This is the development version \
+ based on a recent snapshot of upstream git master.
+
+homepage http://gegl.org/
+master_sites https://git.gnome.org/browse/${git_name}/snapshot/
+
+distname ${git_name}-${git_commit}
+
+checksums rmd160 7e22eec53682d8cc9b2bddacbd117fc29496ba3a \
+ sha256 c842a82ca02845bc29e91732d80e163c6f8087a5da16855de8bf32646f516a14
+
+depends_build port:pkgconfig \
+ port:intltool \
+ port:w3m \
+ port:autoconf \
+ port:automake \
+ port:libtool
+
+depends_lib port:babl-devel \
+ port:gtk2 \
+ port:jpeg \
+ port:lua \
+ port:gobject-introspection \
+ port:graphviz \
+ port:openexr \
+ port:exiv2 \
+ port:libopenraw \
+ port:librsvg \
+ port:libsdl \
+ path:lib/libavcodec.dylib:ffmpeg \
+ port:libspiro \
+ port:lensfun \
+ port:vala
+
+patchfiles patch-configure.ac.diff \
+ patch-ffmpeg.diff \
+ rename-for-altivec.patch
+
+compiler.blacklist-append gcc-4.2
+
+# gobject-introspection uses g-ir-scanner, which uses $CC from env
+
+if {[variant_isset universal]} {
+ foreach arch ${configure.universal_archs} {
+ lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}'
+ }
+} else {
+ build.args-append CC="${configure.cc} ${configure.cc_archflags}"
+}
+
+configure.cmd ./autogen.sh
+
+configure.args --disable-docs \
+ --disable-silent-rules \
+ --enable-introspection=yes \
+ --without-umfpack
+
+platform darwin {
+ if {[variant_isset universal]} {
+ # In order to build universal on Leopard, you need MacPorts 2.1
+ set merger_configure_args(x86_64) --build=${build_arch}-apple-${os.platform}${os.version}
+ set merger_configure_cflags(ppc) -fno-altivec
+ set merger_configure_cxxflags(ppc) -fno-altivec
+ } elseif {${build_arch} == "ppc"} {
+ configure.cflags-append -fno-altivec
+ configure.cxxflags-append -fno-altivec
+ } elseif {${build_arch} == "x86_64"} {
+ configure.args-append --build=${build_arch}-apple-${os.platform}${os.version}
+ }
+}
+
+variant html_doc description {Build html docs with enscript and asciidoc} {
+ depends_build-append port:asciidoc
+ configure.args-delete --disable-docs
+ configure.args-append --enable-docs
+}
+
+variant workshop description {Enable build of workshop operations} {
+ configure.args-append --enable-workshop
+}
+
+variant python25 conflicts python26 python27 description {Build using Python 2.5} {
+ configure.python ${prefix}/bin/python2.5
+ depends_build-append port:python25
+}
+
+variant python26 conflicts python25 python27 description {Build using Python 2.6} {
+ configure.python ${prefix}/bin/python2.6
+ depends_build-append port:python26
+}
+
+variant python27 conflicts python25 python26 description {Build using Python 2.7} {
+ configure.python ${prefix}/bin/python2.7
+ depends_build-append port:python27
+}
+
+if {![variant_isset python25] && ![variant_isset python26]} {
+ default_variants +python27
+}
+
+livecheck.type none
Property changes on: trunk/dports/graphics/gegl-devel/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/graphics/gegl-devel/files/patch-configure.ac.diff
===================================================================
--- trunk/dports/graphics/gegl-devel/files/patch-configure.ac.diff (rev 0)
+++ trunk/dports/graphics/gegl-devel/files/patch-configure.ac.diff 2013-12-10 17:47:22 UTC (rev 114579)
@@ -0,0 +1,20 @@
+--- configure.ac.orig 2013-11-30 11:08:51.000000000 -0800
++++ configure.ac 2013-11-30 20:32:39.000000000 -0800
+@@ -600,6 +600,17 @@
+ AM_PATH_PYTHON([2.5.0],, [:])
+ AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
+
++dnl Override standard python locations with MacPorts version specific ones
++
++AC_SUBST([PYTHON_PREFIX], [`$PYTHON -c 'import sys; print(sys.prefix);'`])
++AC_SUBST([PYTHON_EXEC_PREFIX], [`$PYTHON -c 'import sys; print(sys.exec_prefix)'`])
++
++am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
++am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
++
++AC_SUBST([pythondir], [$am_cv_python_pythondir])
++AC_SUBST([pyexecdir], [$am_cv_python_pyexecdir])
++
+ #################
+ # Check for Cairo
+ #################
Added: trunk/dports/graphics/gegl-devel/files/patch-ffmpeg.diff
===================================================================
--- trunk/dports/graphics/gegl-devel/files/patch-ffmpeg.diff (rev 0)
+++ trunk/dports/graphics/gegl-devel/files/patch-ffmpeg.diff 2013-12-10 17:47:22 UTC (rev 114579)
@@ -0,0 +1,54 @@
+--- operations/workshop/external/ff-save.c.orig 2013-10-15 16:41:03.000000000 -0700
++++ operations/workshop/external/ff-save.c 2013-10-15 16:41:16.000000000 -0700
+@@ -568,7 +568,7 @@
+ }
+
+ /* open the codec */
+- if (avcodec_open (c, codec) < 0)
++ if (avcodec_open2 (c, codec, NULL) < 0)
+ {
+ fprintf (stderr, "could not open codec\n");
+ exit (1);
+@@ -769,26 +769,24 @@
+ /*XXX: FOO p->audio_st = add_audio_stream (op, p->oc, p->fmt->audio_codec);*/
+ }
+
+- if (av_set_parameters (p->oc, NULL) < 0)
+- {
+- fprintf (stderr, "Invalid output format propeters\n%s", "");
+- return -1;
+- }
+-
+- dump_format (p->oc, 0, self->path, 1);
++ av_dump_format (p->oc, 0, self->path, 1);
+
+ if (p->video_st)
+ open_video (p, p->oc, p->video_st);
+ if (p->audio_st)
+ open_audio (p, p->oc, p->audio_st);
+
+- if (url_fopen (&p->oc->pb, self->path, URL_WRONLY) < 0)
++ if (avio_open (&p->oc->pb, self->path, AVIO_FLAG_WRITE) < 0)
+ {
+ fprintf (stderr, "couldn't open '%s'\n", self->path);
+ return -1;
+ }
+
+- av_write_header (p->oc);
++ if (avformat_write_header (p->oc, NULL) < 0)
++ {
++ fprintf(stderr, "Error occurred when opening output file\n");
++ return 1;
++ }
+
+ return 0;
+ }
+@@ -858,7 +856,7 @@
+ av_freep (&p->oc->streams[i]);
+ }
+
+- url_fclose (&p->oc->pb);
++ avio_close (p->oc->pb);
+ free (p->oc);
+ }
+ g_free (o->chant_data);
Added: trunk/dports/graphics/gegl-devel/files/rename-for-altivec.patch
===================================================================
--- trunk/dports/graphics/gegl-devel/files/rename-for-altivec.patch (rev 0)
+++ trunk/dports/graphics/gegl-devel/files/rename-for-altivec.patch 2013-12-10 17:47:22 UTC (rev 114579)
@@ -0,0 +1,152 @@
+--- operations/common/envelopes.h.orig 2012-09-03 14:29:05.000000000 -0700
++++ operations/common/envelopes.h 2012-09-03 14:31:00.000000000 -0700
+@@ -59,12 +59,12 @@ sample (gfloat *buf,
+ gint y,
+ gfloat *dst)
+ {
+- gfloat *pixel = (buf + ((width * y) + x) * 4);
++ gfloat *pixelp = (buf + ((width * y) + x) * 4);
+ gint c;
+
+ for (c=0;c<4;c++)
+ {
+- dst[c] = pixel[c];
++ dst[c] = pixelp[c];
+ }
+ }
+
+@@ -119,17 +119,17 @@ retry: /* if we've
+ goto retry;
+
+ {
+- gfloat *pixel = (buf + ((width * v) + u) * 4);
++ gfloat *pixelp = (buf + ((width * v) + u) * 4);
+
+- if (pixel[3]>0.0) /* ignore fully transparent pixels */
++ if (pixelp[3]>0.0) /* ignore fully transparent pixels */
+ {
+ for (c=0;c<3;c++)
+ {
+- if (pixel[c]<best_min[c])
+- best_min[c]=pixel[c];
++ if (pixelp[c]<best_min[c])
++ best_min[c]=pixelp[c];
+
+- if (pixel[c]>best_max[c])
+- best_max[c]=pixel[c];
++ if (pixelp[c]>best_max[c])
++ best_max[c]=pixelp[c];
+ }
+ }
+ else
+@@ -162,7 +162,7 @@ static inline void compute_envelopes (gf
+ gint c;
+ gfloat range_sum[4] = {0,0,0,0};
+ gfloat relative_brightness_sum[4] = {0,0,0,0};
+- gfloat *pixel = buf + (width*y+x)*4;
++ gfloat *pixelp = buf + (width*y+x)*4;
+
+ /* compute lookuptables for the gamma, currently not used/exposed
+ * as a tweakable property */
+@@ -193,7 +193,7 @@ static inline void compute_envelopes (gf
+
+ if (range>0.0)
+ {
+- relative_brightness = (pixel[c] - min[c]) / range;
++ relative_brightness = (pixelp[c] - min[c]) / range;
+ }
+ else
+ {
+@@ -211,8 +211,8 @@ static inline void compute_envelopes (gf
+ gfloat range = range_sum[c] / iterations;
+
+ if (max_envelope)
+- max_envelope[c] = pixel[c] + (1.0 - relative_brightness) * range;
++ max_envelope[c] = pixelp[c] + (1.0 - relative_brightness) * range;
+ if (min_envelope)
+- min_envelope[c] = pixel[c] - relative_brightness * range;
++ min_envelope[c] = pixelp[c] - relative_brightness * range;
+ }
+ }
+--- gegl/property-types/gegl-color.h.orig 2013-11-09 23:06:00.000000000 -0800
++++ gegl/property-types/gegl-color.h 2013-11-10 11:27:40.000000000 -0800
+@@ -117,7 +117,7 @@
+ */
+ void gegl_color_set_pixel (GeglColor *color,
+ const Babl *format,
+- const void *pixel);
++ const void *pixelp);
+ /**
+ * gegl_color_get_pixel: (skip)
+ * @color: a #GeglColor
+@@ -128,7 +128,7 @@
+ */
+ void gegl_color_get_pixel (GeglColor *color,
+ const Babl *format,
+- void *pixel);
++ void *pixelp);
+
+ /***
+ */
+--- operations/common/c2g.c.orig 2013-11-09 23:06:00.000000000 -0800
++++ operations/common/c2g.c 2013-11-10 11:27:40.000000000 -0800
+@@ -84,7 +84,7 @@
+ gint src_offset = (inw*y+radius)*4;
+ for (x=radius; x<outw+radius; x++)
+ {
+- gfloat *pixel= src_buf + src_offset;
++ gfloat *pixelp= src_buf + src_offset;
+ gfloat min[4];
+ gfloat max[4];
+
+@@ -108,8 +108,8 @@
+ gint c;
+ for (c=0; c<3; c++)
+ {
+- nominator += (pixel[c] - min[c]) * (pixel[c] - min[c]);
+- denominator += (pixel[c] - max[c]) * (pixel[c] - max[c]);
++ nominator += (pixelp[c] - min[c]) * (pixelp[c] - min[c]);
++ denominator += (pixelp[c] - max[c]) * (pixelp[c] - max[c]);
+ }
+
+ nominator = sqrt (nominator);
+--- operations/external/path.c.orig 2013-11-30 11:08:51.000000000 -0800
++++ operations/external/path.c 2013-11-30 20:35:17.000000000 -0800
+@@ -74,7 +74,7 @@
+
+ static void gegl_path_stroke (GeglBuffer *buffer,
+ const GeglRectangle *clip_rect,
+- GeglPath *vector,
++ GeglPath *vectorp,
+ GeglColor *color,
+ gdouble linewidth,
+ gdouble hardness,
+@@ -92,7 +92,7 @@
+ static void
+ gegl_path_stroke (GeglBuffer *buffer,
+ const GeglRectangle *clip_rect,
+- GeglPath *vector,
++ GeglPath *vectorp,
+ GeglColor *color,
+ gdouble linewidth,
+ gdouble hardness,
+@@ -105,7 +105,7 @@
+ gdouble xmin, xmax, ymin, ymax;
+ GeglRectangle extent;
+
+- if (!vector)
++ if (!vectorp)
+ return;
+
+ if (!clip_rect)
+@@ -114,8 +114,8 @@
+ clip_rect = gegl_buffer_get_extent (buffer);
+ }
+
+- iter = gegl_path_get_flat_path (vector);
+- gegl_path_get_bounds (vector, &xmin, &xmax, &ymin, &ymax);
++ iter = gegl_path_get_flat_path (vectorp);
++ gegl_path_get_bounds (vectorp, &xmin, &xmax, &ymin, &ymax);
+ extent.x = floor (xmin);
+ extent.y = floor (ymin);
+ extent.width = ceil (xmax) - extent.x;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20131210/b3da3f97/attachment.html>
More information about the macports-changes
mailing list