Created attachment 150599 [details] optionify, v1 - track webp dep in sdl_image - allow disabling rarely used tiff and webp
Auto-assigned to maintainer mva@FreeBSD.org
(In reply to Jan Beich from comment #0) > - track webp dep in sdl_image Sorry, I forgot it was my local hack.
Created attachment 150600 [details] |poudriere testport| log (10.1R i386) for graphics/sdl_image
Created attachment 150601 [details] |poudriere testport| log (10.1R i386) for graphics/sdl2_image
Created attachment 150602 [details] |poudriere testport| log (8.4R amd64) for graphics/sdl_image JPEG=off PNG=off TIFF=off WEBP=off
Created attachment 150603 [details] |poudriere testport| log (8.4R amd64) for graphics/sdl2_image JPEG=off PNG=off TIFF=off WEBP=off
I'm a bit hesitant about this change, since misconfiguring one of those ports will break lots of consumers in either functionality or at build time. I'm not sure, if the gained flexibility outweighs the amount of issues that may arise with it.
That's a common issue. A few examples that I'm aware where disabling an option may lead to broken build/runtime in consumers. audio/soundtouch (INTEGER_SAMPLES) devel/guichan (SDL) devel/sdl20 (OPENGL) databases/sqlite3 (FTS4, THREADS) graphics/cairo (GLIB, XCB) graphics/gdk-pixbuf2 (PNG) graphics/ImageMagick (THREADS) graphics/py-pillow (JPEG) multimedia/ffmpeg (VDPAU, VAAPI) lang/perl5.* (THREADS) pkg(8) already records options so now we're waiting for bsd.*.mk support. Not sure how similar to Gentoo it'd be. # from rlvm.ebuild RDEPEND="media-libs/libsdl[opengl] >=dev-libs/boost-1.42 media-libs/glew media-libs/sdl-image[jpeg,png] media-libs/sdl-ttf media-libs/sdl-mixer[vorbis] media-libs/libmad >=dev-games/guichan-0.8[opengl,sdl] x11-libs/gtk+:2"
*** Bug 197238 has been marked as a duplicate of this bug. ***
A commit references this bug: Author: mva Date: Sat Feb 7 08:21:47 UTC 2015 New revision: 378574 URL: https://svnweb.freebsd.org/changeset/ports/378574 Log: - Provide OPTION knobs for the LIB_DEPENDS of sdl_image and sdl2_image PR: 195987 Submitted by: jbeich@ Changes: head/graphics/sdl2_image/Makefile head/graphics/sdl_image/Makefile
Committed, thanks!