RFC: Mk/bsd.jpeg.mk to automagically handle jpeg dependency

Peter Pentchev roam at ringlet.net
Wed Jun 16 08:57:04 UTC 2010

On Tue, Jun 15, 2010 at 10:09:57PM -0300, Mario Sergio Fujikawa Ferreira wrote:
> Hi,
> 	Ever since the addition of graphics/libjpeg-turbo, I had
> been wondering how one could possibly build the whole ports tree
> with it instead of graphics/jpeg. I wanted the choice.
> 	Therefore, I wrote the attached bsd.jpeg.mk as a suggestion.
> 	With it, we just add
> USE_JPEG=	yes
> to any port that requires a jpeg library (either a build or a link
> dependency).

Sounds great!  Thanks for your work!  Just one small worry, see below...

> 	It will automagically detected the already installed jpeg
> port variant (libjpeg-turbo or jpeg) and depend on it. If the user prefers to set the variant, he can do so using
> WITH_JPEG=	jpeg
> or
> WITH_JPEG=	libjpeg-turbo

Is it possible that this will conflict with ports that have a JPEG item
in their OPTIONS list?  There are at least the astro/xplanet, editors/emacs,
graphics/devil, graphics/gdal, graphics/gegl, graphics/grx, graphics/imlib2,
graphics/ocaml-images, graphics/opencv, graphics/podofo, graphics/tumbler,
mail/spamprobe, math/R, multimedia/gmerlin, multimedia/gpac-libgpac,
multimedia/libquicktime, multimedia/spook, multimedia/transcode, x11/aterm,
x11-fm/thunar, x11/mrxvt-devel, and x11-wm/jwm ports that do that, and
there might be more that a simple fgrep -le WITH_JPEG -e WITHOUT_JPEG did
not catch.


Peter Pentchev	roam at space.bg    roam at ringlet.net    roam at FreeBSD.org
PGP key:	http://people.FreeBSD.org/~roam/roam.key.asc
Key fingerprint	FDBA FD79 C26F 3C51 C95E  DF9E ED18 B68D 1619 4553
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20100616/91f4aaf4/attachment.pgp

More information about the freebsd-ports mailing list