pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/graphics/libvips



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Wed Aug 20 16:47:25 UTC 2025

Added Files:
        pkgsrc/graphics/libvips: DESCR Makefile PLIST buildlink3.mk distinfo
            options.mk

Log Message:
Add libvips: Demand-driven, horizontally threaded image processing lib

libvips is a 2D image processing library. Compared to similar libraries, libvips
runs quickly and uses little memory.  libvips is licensed under the LGPL 2.1+

It has around 300 operations covering arithmetic, histograms, convolutions,
morphological operations, frequency filtering, colour, resampling, statistics
and others. It supports a large range of numeric formats, from 8-bit int to
128-bit complex. It supports a good range of image formats, including JPEG,
TIFF, PNG, WebP, FITS, Matlab, OpenEXR, DeepZoom, and OpenSlide.  It can also
load images via ImageMagick or GraphicsMagick.

It has APIs for C and C++ and comes with a Python binding and a command-line
interface. Bindings are available for Ruby, JavaScript and others.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/graphics/libvips/DESCR \
    pkgsrc/graphics/libvips/Makefile pkgsrc/graphics/libvips/PLIST \
    pkgsrc/graphics/libvips/buildlink3.mk pkgsrc/graphics/libvips/distinfo \
    pkgsrc/graphics/libvips/options.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Added files:

Index: pkgsrc/graphics/libvips/DESCR
diff -u /dev/null pkgsrc/graphics/libvips/DESCR:1.1
--- /dev/null   Wed Aug 20 16:47:25 2025
+++ pkgsrc/graphics/libvips/DESCR       Wed Aug 20 16:47:24 2025
@@ -0,0 +1,12 @@
+libvips is a 2D image processing library. Compared to similar libraries, libvips
+runs quickly and uses little memory.  libvips is licensed under the LGPL 2.1+
+
+It has around 300 operations covering arithmetic, histograms, convolutions,
+morphological operations, frequency filtering, colour, resampling, statistics
+and others. It supports a large range of numeric formats, from 8-bit int to
+128-bit complex. It supports a good range of image formats, including JPEG,
+TIFF, PNG, WebP, FITS, Matlab, OpenEXR, DeepZoom, and OpenSlide.  It can also
+load images via ImageMagick or GraphicsMagick.
+
+It has APIs for C and C++ and comes with a Python binding and a command-line
+interface. Bindings are available for Ruby, JavaScript and others.
Index: pkgsrc/graphics/libvips/Makefile
diff -u /dev/null pkgsrc/graphics/libvips/Makefile:1.1
--- /dev/null   Wed Aug 20 16:47:25 2025
+++ pkgsrc/graphics/libvips/Makefile    Wed Aug 20 16:47:24 2025
@@ -0,0 +1,53 @@
+# $NetBSD: Makefile,v 1.1 2025/08/20 16:47:24 schmonz Exp $
+
+DISTNAME=              vips-8.17.1
+PKGNAME=               lib${DISTNAME}
+CATEGORIES=            graphics
+MASTER_SITES=          ${MASTER_SITE_GITHUB:=libvips/}
+GITHUB_RELEASE=                v${PKGVERSION_NOREV}
+EXTRACT_SUFX=          .tar.xz
+
+MAINTAINER=            base%atomicules.co.uk@localhost
+HOMEPAGE=              https://libvips.github.io/libvips/
+COMMENT=               Demand-driven, horizontally threaded image processing lib
+LICENSE=               gnu-lgpl-v2.1
+
+# disable examples and deprecated interfaces
+MESON_ARGS+=           -Ddeprecated=false -Dexamples=false
+
+USE_TOOLS+=            pkg-config msgfmt xgettext
+USE_LANGUAGES=         c c++
+PYTHON_FOR_BUILD_ONLY= tool
+REPLACE_PYTHON+=       cplusplus/gen-operators.py
+REPLACE_PYTHON+=       doc/gen-function-list.py
+
+PKGCONFIG_OVERRIDE_STAGE=      pre-install
+PKGCONFIG_OVERRIDE+=           output/meson-private/vips-cpp.pc
+PKGCONFIG_OVERRIDE+=           output/meson-private/vips.pc
+
+# disable relro otherwise it'll crash on NetBSD:
+# https://github.com/libvips/libvips/issues/3977 and
+# https://mail-index.netbsd.org/netbsd-bugs/2023/12/26/msg080904.html
+RELRO_SUPPORTED=       no
+
+.include "options.mk"
+
+.include "../../devel/meson/build.mk"
+.include "../../lang/python/application.mk"
+.include "../../lang/python/tool.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/lerc/buildlink3.mk"
+.include "../../graphics/libexif/buildlink3.mk"
+.include "../../graphics/libheif/buildlink3.mk"
+.include "../../graphics/libjxl/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../graphics/libwebp/buildlink3.mk"
+.include "../../graphics/openexr/buildlink3.mk"
+.include "../../graphics/openjpeg/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../print/poppler/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../textproc/libxml2/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/graphics/libvips/PLIST
diff -u /dev/null pkgsrc/graphics/libvips/PLIST:1.1
--- /dev/null   Wed Aug 20 16:47:25 2025
+++ pkgsrc/graphics/libvips/PLIST       Wed Aug 20 16:47:24 2025
@@ -0,0 +1,70 @@
+@comment $NetBSD: PLIST,v 1.1 2025/08/20 16:47:24 schmonz Exp $
+bin/vips
+bin/vipsedit
+bin/vipsheader
+bin/vipsthumbnail
+include/vips/VConnection8.h
+include/vips/VError8.h
+include/vips/VImage8.h
+include/vips/VInterpolate8.h
+include/vips/VRegion8.h
+include/vips/arithmetic.h
+include/vips/basic.h
+include/vips/buf.h
+include/vips/colour.h
+include/vips/connection.h
+include/vips/conversion.h
+include/vips/convolution.h
+include/vips/create.h
+include/vips/dbuf.h
+include/vips/debug.h
+include/vips/draw.h
+include/vips/enumtypes.h
+include/vips/error.h
+include/vips/foreign.h
+include/vips/format.h
+include/vips/freqfilt.h
+include/vips/gate.h
+include/vips/generate.h
+include/vips/header.h
+include/vips/histogram.h
+include/vips/image.h
+include/vips/interpolate.h
+include/vips/memory.h
+include/vips/morphology.h
+include/vips/mosaicing.h
+include/vips/object.h
+include/vips/operation.h
+include/vips/private.h
+include/vips/rect.h
+include/vips/region.h
+include/vips/resample.h
+include/vips/sbuf.h
+include/vips/semaphore.h
+include/vips/thread.h
+include/vips/threadpool.h
+include/vips/transform.h
+include/vips/type.h
+include/vips/util.h
+include/vips/vector.h
+include/vips/version.h
+include/vips/vips.h
+include/vips/vips8
+lib/libvips-cpp.so
+lib/libvips-cpp.so.42
+lib/libvips-cpp.so.42.19.1
+lib/libvips.so
+lib/libvips.so.42
+lib/libvips.so.42.19.1
+lib/pkgconfig/vips-cpp.pc
+lib/pkgconfig/vips.pc
+lib/vips-modules-8.17/vips-heif.${SHLIB_EXT}
+lib/vips-modules-8.17/vips-jxl.${SHLIB_EXT}
+lib/vips-modules-8.17/vips-poppler.${SHLIB_EXT}
+man/man1/vips.1
+man/man1/vipsedit.1
+man/man1/vipsheader.1
+man/man1/vipsprofile.1
+man/man1/vipsthumbnail.1
+share/locale/de/LC_MESSAGES/vips8.17.mo
+share/locale/en_GB/LC_MESSAGES/vips8.17.mo
Index: pkgsrc/graphics/libvips/buildlink3.mk
diff -u /dev/null pkgsrc/graphics/libvips/buildlink3.mk:1.1
--- /dev/null   Wed Aug 20 16:47:25 2025
+++ pkgsrc/graphics/libvips/buildlink3.mk       Wed Aug 20 16:47:24 2025
@@ -0,0 +1,18 @@
+# $NetBSD: buildlink3.mk,v 1.1 2025/08/20 16:47:24 schmonz Exp $
+
+BUILDLINK_TREE+=       libvips
+
+.if !defined(LIBVIPS_BUILDLINK3_MK)
+LIBVIPS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libvips+=        libvips>=8.16.0
+BUILDLINK_PKGSRCDIR.libvips?=  ../../graphics/libvips
+
+.include "../../graphics/libexif/buildlink3.mk"
+.include "../../graphics/libjxl/buildlink3.mk"
+.include "../../graphics/librsvg/buildlink3.mk"
+.include "../../textproc/expat/buildlink3.mk"
+.include "../../devel/glib2/buildlink3.mk"
+.endif # LIBVIPS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libvips
Index: pkgsrc/graphics/libvips/distinfo
diff -u /dev/null pkgsrc/graphics/libvips/distinfo:1.1
--- /dev/null   Wed Aug 20 16:47:25 2025
+++ pkgsrc/graphics/libvips/distinfo    Wed Aug 20 16:47:24 2025
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2025/08/20 16:47:24 schmonz Exp $
+
+BLAKE2s (vips-8.17.1.tar.xz) = 207eb0a2cf9a02de68ee47be4380fdb2d0760ced1eb2c87e8cf94ae103b1a1bf
+SHA512 (vips-8.17.1.tar.xz) = 04962e7d3fb8956c986f3aed7a10c4927195bc555a22c805a5b190c257e9e8b0fe97eddd0eb44e0e7d9047ba5671e96ac88f50a2597caa4f78c84ce1091541ff
+Size (vips-8.17.1.tar.xz) = 29529248 bytes
Index: pkgsrc/graphics/libvips/options.mk
diff -u /dev/null pkgsrc/graphics/libvips/options.mk:1.1
--- /dev/null   Wed Aug 20 16:47:25 2025
+++ pkgsrc/graphics/libvips/options.mk  Wed Aug 20 16:47:24 2025
@@ -0,0 +1,23 @@
+# $NetBSD: options.mk,v 1.1 2025/08/20 16:47:24 schmonz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.libvips
+PKG_SUPPORTED_OPTIONS= tiff introspection
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+# meson will find libs if they are installed,
+# so it makes sense to explicitly disabled them
+# if they are not going to be used
+
+.if !empty(PKG_OPTIONS:Mtiff)
+.include "../../graphics/tiff/buildlink3.mk"
+.else
+MESON_ARGS+= -Dtiff=disabled
+.endif
+
+.if !empty(PKG_OPTIONS:Mintrospection)
+.include "../../devel/gobject-introspection/buildlink3.mk"
+.else
+MESON_ARGS+= -Dintrospection=disabled
+.endif



Home | Main Index | Thread Index | Old Index