pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Can we make X11 optional for libvips?
Sorry for the delay, but took me some time to re-test things. And also
waited until I wanted to update to 8.17.2
On 04-Oct-2025 21:28:45, Hauke Fath wrote:
I feel your pain... and went, and made it an option. But your 'lighter
weight' is my
% pwd
/u/sources/pkgsrc/graphics/libvips
% make CLEANDEPENDS=yes clean | wc -l
160
%
dependencies, and it looks like one of these also depends* on poppler.
It seems that we need to make libsvg _and_ poppler optional.
The below builds for me on a NetBSD without X11. I could do a pullup
request?
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/libvips/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile 30 Aug 2025 22:45:27 -0000 1.2
+++ Makefile 31 Oct 2025 15:31:54 -0000
@@ -1,6 +1,6 @@
# $NetBSD: Makefile,v 1.2 2025/08/30 22:45:27 wiz Exp $
-DISTNAME= vips-8.17.1
+DISTNAME= vips-8.17.2
PKGNAME= lib${DISTNAME}
PKGREVISION= 1
CATEGORIES= graphics
@@ -41,13 +41,11 @@ RELRO_SUPPORTED= no
.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"
Index: options.mk
===================================================================
RCS file: /cvsroot/pkgsrc/graphics/libvips/options.mk,v
retrieving revision 1.1
diff -u -p -r1.1 options.mk
--- options.mk 20 Aug 2025 16:47:24 -0000 1.1
+++ options.mk 31 Oct 2025 15:37:05 -0000
@@ -21,3 +21,17 @@ MESON_ARGS+= -Dtiff=disabled
.else
MESON_ARGS+= -Dintrospection=disabled
.endif
+
+if !empty(PKG_OPTIONS:Mpoppler)
+.include "../../print/poppler/buildlink3.mk"
+.else
+MESON_ARGS+= -Dpoppler=disabled
+MESON_ARGS+= -Dpoppler-module=disabled
+.endif
+
+if !empty(PKG_OPTIONS:Msvg)
+.include "../../graphics/librsvg/buildlink.mk"
+.else
+MESON_ARGS+= -Drsvg=disabled
+.endif
+
Home |
Main Index |
Thread Index |
Old Index