diff options
author | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-12-27 14:38:46 +0000 |
---|---|---|
committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2019-12-27 14:38:46 +0000 |
commit | 92f07874bd5d9007b71579c11d2c2667b3993a7b (patch) | |
tree | d67216238b6390995eef9ff926a318f453c7b0ea /graphics/gegl | |
parent | d539708804588cfb9bb38b42220e60bb94ff7c05 (diff) | |
download | ports-92f07874bd5d9007b71579c11d2c2667b3993a7b.tar.gz ports-92f07874bd5d9007b71579c11d2c2667b3993a7b.zip |
Notes
Diffstat (limited to 'graphics/gegl')
-rw-r--r-- | graphics/gegl/Makefile | 105 | ||||
-rw-r--r-- | graphics/gegl/distinfo | 6 | ||||
-rw-r--r-- | graphics/gegl/files/patch-08084a6 | 33 | ||||
-rw-r--r-- | graphics/gegl/files/patch-a6bcf48 | 75 | ||||
-rw-r--r-- | graphics/gegl/pkg-plist | 20 |
5 files changed, 50 insertions, 189 deletions
diff --git a/graphics/gegl/Makefile b/graphics/gegl/Makefile index bcb57bfa8ab2..068a0549d97a 100644 --- a/graphics/gegl/Makefile +++ b/graphics/gegl/Makefile @@ -2,8 +2,7 @@ # $FreeBSD$ PORTNAME= gegl -PORTVERSION= 0.4.16 -PORTREVISION= 5 +PORTVERSION= 0.4.18 CATEGORIES= graphics MASTER_SITES= GIMP @@ -15,41 +14,40 @@ LICENSE_COMB= multi LICENSE_FILE_GPLv3+ = ${WRKSRC}/COPYING LICENSE_FILE_LGPL3+ = ${WRKSRC}/COPYING.LESSER +BUILD_DEPENDS= bash:shells/bash LIB_DEPENDS= libbabl-0.1.so:x11/babl \ libjson-glib-1.0.so:devel/json-glib \ libfribidi.so:converters/fribidi \ libpng.so:graphics/png -USES= compiler:c++14-lang cpe gettext gmake gnome jpeg libtool localbase \ - pathfix pkgconfig shebangfix uniquefiles tar:bzip2 +USES= compiler:c++14-lang cpe gettext gnome jpeg libtool localbase \ + meson pathfix pkgconfig shebangfix uniquefiles tar:xz USE_GNOME= glib20 intltool introspection:build USE_LDCONFIG= yes -GNU_CONFIGURE= yes -CONFIGURE_ENV= ac_cv_header_execinfo_h=no -CONFIGURE_ARGS= --without-vala --disable-docs -CONFIGURE_ARGS+=--without-mrg --without-lensfun -INSTALL_TARGET= install-strip - -GEGL_MINOR= 416 +MESON_ARGS= -Ddocs=false \ + -Dworkshop=false \ + -Dintrospection=true \ + -Dvapigen=disabled \ + -Dlensfun=disabled \ + -Dlibjpeg=enabled \ + -Dlibpng=enabled \ + -Dmrg=disabled \ + -Dpygobject=disabled \ + -Dvapigen=disabled \ + -Dlua=disabled + +GEGL_MINOR= 417 GEGL_VER= 0.4 PLIST_SUB+= GEGL_MINOR="${GEGL_MINOR}" GEGL_VER=${GEGL_VER} -EXAMPLES= 2geglbuffer \ - gegl-convert gegl-slicer geglbuffer-add-image \ - geglbuffer-clock hello-world sdl-draw - SHEBANG_FILES= tools/xml_insert.sh -# Fix conflicts with sysutils/coreutils -UNIQUE_SUFFIX= -${GEGL_VER} -UNIQUE_SUFFIX_FILES= bin/gcut - OPTIONS_SUB= yes OPTIONS_DEFINE= CAIRO ENSCRIPT FFMPEG PIXBUF GRAPHVIZ JASPER \ - LUA OPENEXR RAW PANGO POPPLER LIBRSVG2 SDL SPIRO V4L \ - EXAMPLES LCMS2 WEBP TIFF GEXIV2 -OPTIONS_DEFAULT=CAIRO ENSCRIPT GEXIV2 PIXBUF GRAPHVIZ JASPER LCMS2 LUA \ - OPENEXR RAW PANGO POPPLER LIBRSVG2 SDL SPIRO V4L WEBP TIFF + OPENEXR RAW PANGO LIBRSVG2 SDL SPIRO V4L \ + LCMS2 WEBP TIFF GEXIV2 +OPTIONS_DEFAULT=CAIRO ENSCRIPT GEXIV2 PIXBUF GRAPHVIZ JASPER LCMS2 \ + OPENEXR RAW PANGO LIBRSVG2 SDL SPIRO V4L WEBP TIFF ENSCRIPT_DESC= Enscript support SPIRO_DESC= Spiro support @@ -57,97 +55,78 @@ SPIRO_DESC= Spiro support GEXIV2_DESC= EXIF and IPTC metadata support via gexiv2 PIXBUF_USE= GNOME=gdkpixbuf2 -PIXBUF_CONFIGURE_WITH= gdk-pixbuf +PIXBUF_MESON_ENABLED= gdk-pixbuf CAIRO_USE= GNOME=cairo -CAIRO_CONFIGURE_WITH= cairo +CAIRO_MESON_ENABLED= cairo PANGO_USE= GNOME=pango -PANGO_CONFIGURE_WITH= pango - -POPPLER_LIB_DEPENDS= libpoppler-glib.so:graphics/poppler-glib -POPPLER_CONFIGURE_WITH= popplerglib +PANGO_MESON_ENABLED= pango ENSCRIPT_BUILD_DEPENDS= enscript:print/enscript-a4 FFMPEG_LIB_DEPENDS= libavformat.so:multimedia/ffmpeg -FFMPEG_CONFIGURE_WITH= libavformat +FFMPEG_MESON_ENABLED= libav GRAPHVIZ_LIB_DEPENDS= libcgraph.so:graphics/graphviz -GRAPHVIZ_CONFIGURE_WITH= graphviz +GRAPHVIZ_MESON_ENABLED= graphviz JASPER_LIB_DEPENDS= libjasper.so:graphics/jasper -JASPER_CONFIGURE_WITH= jasper +JASPER_MESON_ENABLED= jasper LCMS2_LIB_DEPENDS= liblcms2.so:graphics/lcms2 -LCMS2_CONFIGURE_OFF= --without-lcms - -LUA_USES= lua -LUA_CONFIGURE_WITH= lua +LCMS2_MESON_ENABLED= lcms OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/openexr \ libImath.so:graphics/ilmbase -OPENEXR_CONFIGURE_WITH= openexr +OPENEXR_MESON_ENABLED= openexr RAW_LIB_DEPENDS= libraw.so:graphics/libraw -RAW_CONFIGURE_WITH= libraw +RAW_MESON_ENABLED= libraw LIBRSVG2_USE= GNOME=librsvg2 -LIBRSVG2_CONFIGURE_OFF= --without-librsvg +LIBRSVG2_MESON_ENABLED= librsvg -SDL_USE= SDL=sdl +SDL_USE= SDL=sdl2 SDL_USES= sdl -SDL_CONFIGURE_WITH= sdl +SDL_MESON_ENABLED= sdl2 SPIRO_LIB_DEPENDS= libspiro.so:graphics/libspiro -SPIRO_CONFIGURE_WITH= libspiro +SPIRO_MESON_ENABLED= libspiro V4L_BUILD_DEPENDS= v4l_compat>=0:multimedia/v4l_compat V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l -V4L_CONFIGURE_WITH= libv4l +V4L_MESON_ENABLED= libv4l2 V4L_VARS= LICENSE+=LGPL20+ WEBP_LIB_DEPENDS= libwebp.so:graphics/webp -WEBP_CONFIGURE_WITH= webp +WEBP_MESON_ENABLED= webp # UMFPACK has two "problems" # 1) it build with port gcc 2) needed libs aren't recorded in the libraries. #UMFPACK_LIB_DEPENDS= libumfpack.so:math/suitesparse -#UMFPACK_CONFIGURE_WITH= umfpack -CONFIGURE_ARGS+= --without-umfpack +#UMFPACK_MESON_ENABLED= umfpack +MESON_ARGS+= -Dumfpack=disabled GEXIV2_LIB_DEPENDS= libgexiv2.so:graphics/gexiv2 -GEXIV2_CONFIGURE_WITH= gexiv2 +GEXIV2_MESON_ENABLED= gexiv2 TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff -TIFF_CONFIGURE_WITH= libtiff +TIFF_MESON_ENABLED= libtiff .include <bsd.port.pre.mk> .if ${PORT_OPTIONS:MPANGO} && ${PORT_OPTIONS:MCAIRO} PLIST_SUB+= PANGOCAIRO="" +MESON_ARGS+= -Dpangocairo=enabled .else -CONFIGURE_ARGS+=--without-pangocairo +MESON_ARGS+= -Dpangocairo=disabled PLIST_SUB+= PANGOCAIRO="@comment " .endif post-patch: - ${REINPLACE_CMD} -e "s/lua >/lua-${LUA_VER} >/g" \ - -e 's|\(lua\)\(5\.1\)|\1-\2|g ; s|x86_64|amd64|g' \ - ${WRKSRC}/configure .if ${CHOSEN_COMPILER_TYPE} == clang ${REINPLACE_CMD} -e '/altivec.h/d' ${WRKSRC}/gegl/opencl/cl_platform.h .endif -post-patch-EXAMPLES-off: - ${REINPLACE_CMD} -e 's|tools examples|tools|g' \ - ${WRKSRC}/Makefile.in - -post-install-EXAMPLES-on: - ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/data - ${INSTALL_DATA} ${WRKSRC}/examples/data/surfer.png ${STAGEDIR}${EXAMPLESDIR}/data -.for ex in ${EXAMPLES} - ${INSTALL_DATA} ${WRKSRC}/examples/${ex}.c ${STAGEDIR}${EXAMPLESDIR} -.endfor - .include <bsd.port.post.mk> diff --git a/graphics/gegl/distinfo b/graphics/gegl/distinfo index cb8c2023c61a..7faad43427f2 100644 --- a/graphics/gegl/distinfo +++ b/graphics/gegl/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1562677461 -SHA256 (gegl-0.4.16.tar.bz2) = 0112df690301d9eb993cc48965fc71b7751c9021a4f4ee08fcae366c326b5e5a -SIZE (gegl-0.4.16.tar.bz2) = 7304904 +TIMESTAMP = 1577439289 +SHA256 (gegl-0.4.18.tar.xz) = c946dfb45beb7fe0fb95b89a25395b449eda2b205ba3e8a1ffb1ef992d9eca64 +SIZE (gegl-0.4.18.tar.xz) = 4812756 diff --git a/graphics/gegl/files/patch-08084a6 b/graphics/gegl/files/patch-08084a6 deleted file mode 100644 index b1b2bb58db0e..000000000000 --- a/graphics/gegl/files/patch-08084a6 +++ /dev/null @@ -1,33 +0,0 @@ -From 08084a6de9e6d4ee665addf3b0b8587f7f639420 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= <pippin@gimp.org> -Date: Mon, 8 Jul 2019 18:45:33 +0200 -Subject: [PATCH] gegl: use uint64_t for memory computations - -This ensures we avoid overflow in case PAE lets 32bit builds know of more -memory than a single process can acccess. See issue #176. ---- - gegl/gegl-config.c | 8 ++++---- - 1 file changed, 4 insertions(+), 4 deletions(-) - -diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c -index 9f774514d..1b6fc25e8 100644 ---- gegl/gegl-config.c -+++ gegl/gegl-config.c -@@ -230,10 +230,10 @@ gegl_config_class_init (GeglConfigClass *klass) - G_PARAM_READWRITE)); - - { -- long default_tile_cache_size = 1024l * 1024 * 1024; -- long mem_total = default_tile_cache_size; -- long mem_min = 512 << 20; // 512mb -- long mem_available = mem_min; -+ uint64_t default_tile_cache_size = 1024l * 1024 * 1024; -+ uint64_t mem_total = default_tile_cache_size; -+ uint64_t mem_min = 512 << 20; // 512mb -+ uint64_t mem_available = mem_min; - - #ifdef G_OS_WIN32 - # if defined(_MSC_VER) && (_MSC_VER <= 1200) --- -2.21.0 - diff --git a/graphics/gegl/files/patch-a6bcf48 b/graphics/gegl/files/patch-a6bcf48 deleted file mode 100644 index e87efd03a1c0..000000000000 --- a/graphics/gegl/files/patch-a6bcf48 +++ /dev/null @@ -1,75 +0,0 @@ -From a6bcf486113b05e0c84ccb38704ed09ef5aadf22 Mon Sep 17 00:00:00 2001 -From: Ting-Wei Lan <lantw@src.gnome.org> -Date: Mon, 8 Jul 2019 22:33:22 +0800 -Subject: [PATCH] Use a way similar to libgtop to get memory usage on FreeBSD - -Fixes: https://gitlab.gnome.org/GNOME/gegl/issues/176 ---- - gegl/gegl-config.c | 37 +++++++++++++++++++++++++++++++++++++ - 1 file changed, 37 insertions(+) - -diff --git a/gegl/gegl-config.c b/gegl/gegl-config.c -index 9882a0390..9f774514d 100644 ---- gegl/gegl-config.c -+++ gegl/gegl-config.c -@@ -18,6 +18,8 @@ - - #include "config.h" - -+#include <stdbool.h> -+#include <stdint.h> - #include <string.h> - - #include <glib-object.h> -@@ -40,6 +42,9 @@ - - #ifdef __APPLE__ - #include <mach/mach.h> -+#endif -+ -+#if defined(__APPLE__) || defined(__FreeBSD__) - #include <sys/types.h> - #include <sys/sysctl.h> - #endif -@@ -278,6 +283,38 @@ gegl_config_class_init (GeglConfigClass *klass) - ) * page_size; - mach_port_deallocate (mach_task_self (), host); - } -+#elif defined(__FreeBSD__) -+ bool ok = true; -+ -+ unsigned long physmem; -+ ok = ok && sysctl ((int[2]){ CTL_HW, HW_PHYSMEM }, 2, &physmem, -+ &(size_t){ sizeof physmem }, NULL, 0) == 0; -+ if (ok) -+ mem_total = physmem; -+ -+ uint32_t active_count; -+ uint32_t wired_count; -+ ok = ok && sysctlbyname ("vm.stats.vm.v_active_count", &active_count, -+ &(size_t){ sizeof active_count }, NULL, 0) == 0; -+ ok = ok && sysctlbyname ("vm.stats.vm.v_wire_count", &wired_count, -+ &(size_t){ sizeof wired_count }, NULL, 0) == 0; -+ -+ if (ok) { -+ uint32_t laundry_count; -+ uint64_t zfs_arc_size; -+ if (sysctlbyname ("vm.stats.vm.v_laundry_count", &laundry_count, -+ &(size_t){ sizeof laundry_count }, NULL, 0) != 0) -+ laundry_count = 0; -+ if (sysctlbyname ("kstat.zfs.misc.arcstats.size", &zfs_arc_size, -+ &(size_t){ sizeof zfs_arc_size }, NULL, 0) != 0) -+ zfs_arc_size = 0; -+ -+ int page_size = getpagesize (); -+ mem_available = physmem - (uint64_t) active_count * page_size -+ - (uint64_t) wired_count * page_size -+ - (uint64_t) laundry_count * page_size -+ + zfs_arc_size; -+ } - #else - mem_total = sysconf (_SC_PHYS_PAGES) * sysconf (_SC_PAGESIZE); - mem_available = sysconf (_SC_AVPHYS_PAGES) * sysconf (_SC_PAGESIZE); --- -2.21.0 - diff --git a/graphics/gegl/pkg-plist b/graphics/gegl/pkg-plist index 6a0ef8aa6dce..681e4219de3d 100644 --- a/graphics/gegl/pkg-plist +++ b/graphics/gegl/pkg-plist @@ -1,10 +1,8 @@ -bin/gcut bin/gegl bin/gegl-imgcmp include/gegl-%%GEGL_VER%%/gegl-apply.h include/gegl-%%GEGL_VER%%/gegl-audio-fragment.h include/gegl-%%GEGL_VER%%/gegl-buffer-backend.h -include/gegl-%%GEGL_VER%%/gegl-buffer-cl-iterator.h include/gegl-%%GEGL_VER%%/gegl-buffer-enums.h include/gegl-%%GEGL_VER%%/gegl-buffer-iterator.h include/gegl-%%GEGL_VER%%/gegl-buffer-matrix2.h @@ -99,8 +97,8 @@ lib/gegl-%%GEGL_VER%%/jpg-save.so %%CAIRO%%lib/gegl-%%GEGL_VER%%/npd.so lib/gegl-%%GEGL_VER%%/npy-save.so %%CAIRO%%lib/gegl-%%GEGL_VER%%/path.so -%%POPPLER%%lib/gegl-%%GEGL_VER%%/pdf-load.so -%%PIXBUF%%lib/gegl-%%GEGL_VER%%/pixbuf.so +%%PIXBUF%%lib/gegl-%%GEGL_VER%%/pixbuf-load.so +%%PIXBUF%%lib/gegl-%%GEGL_VER%%/pixbuf-save.so lib/gegl-%%GEGL_VER%%/png-load.so lib/gegl-%%GEGL_VER%%/png-save.so lib/gegl-%%GEGL_VER%%/ppm-load.so @@ -108,8 +106,7 @@ lib/gegl-%%GEGL_VER%%/ppm-save.so %%RAW%%lib/gegl-%%GEGL_VER%%/raw-load.so lib/gegl-%%GEGL_VER%%/rgbe-load.so lib/gegl-%%GEGL_VER%%/rgbe-save.so -%%PIXBUF%%lib/gegl-%%GEGL_VER%%/save-pixbuf.so -%%SDL%%lib/gegl-%%GEGL_VER%%/sdl-display.so +%%SDL%%lib/gegl-%%GEGL_VER%%/sdl2-display.so lib/gegl-%%GEGL_VER%%/seamless-clone-compose.so lib/gegl-%%GEGL_VER%%/seamless-clone.so %%LIBRSVG2%%lib/gegl-%%GEGL_VER%%/svg-load.so @@ -125,19 +122,11 @@ lib/gegl-%%GEGL_VER%%/transformops.so lib/girepository-1.0/Gegl-%%GEGL_VER%%.typelib lib/libgegl-%%GEGL_VER%%.so lib/libgegl-%%GEGL_VER%%.so.0 -lib/libgegl-%%GEGL_VER%%.so.0.%%GEGL_MINOR%%.0 +lib/libgegl-%%GEGL_VER%%.so.0.%%GEGL_MINOR%%.1 lib/libgegl-npd-%%GEGL_VER%%.so lib/libgegl-sc-%%GEGL_VER%%.so libdata/pkgconfig/gegl-%%GEGL_VER%%.pc libdata/pkgconfig/gegl-sc-%%GEGL_VER%%.pc -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/2geglbuffer.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/data/surfer.png -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gegl-convert.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gegl-slicer.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geglbuffer-add-image.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/geglbuffer-clock.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/hello-world.c -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/sdl-draw.c share/gir-1.0/Gegl-%%GEGL_VER%%.gir share/locale/bs/LC_MESSAGES/gegl-%%GEGL_VER%%.mo share/locale/ca/LC_MESSAGES/gegl-%%GEGL_VER%%.mo @@ -156,6 +145,7 @@ share/locale/it/LC_MESSAGES/gegl-%%GEGL_VER%%.mo share/locale/ko/LC_MESSAGES/gegl-%%GEGL_VER%%.mo share/locale/lv/LC_MESSAGES/gegl-%%GEGL_VER%%.mo share/locale/mr/LC_MESSAGES/gegl-%%GEGL_VER%%.mo +share/locale/ne/LC_MESSAGES/gegl-%%GEGL_VER%%.mo share/locale/nb/LC_MESSAGES/gegl-%%GEGL_VER%%.mo share/locale/oc/LC_MESSAGES/gegl-%%GEGL_VER%%.mo share/locale/pl/LC_MESSAGES/gegl-%%GEGL_VER%%.mo |