From b1d4751d4c7c958e93d51528e243eb3840cf172c Mon Sep 17 00:00:00 2001
From: "Andrey A. Chernov" <ache@FreeBSD.org>
Date: Wed, 8 Aug 2001 20:02:49 +0000
Subject: [PATCH] Enable 16bit pixels by default since they are enabled by
 default in newer ImageMagick versions. Add WITHOUT_ option to disable them.

Enable modules by default, much smaller executable up to 10Mb runtime.
Add WITHOUT_ option to disable them.

Use IMAGEMAGICK portion for two WITHOUT_ option names mentioned above - it
allows to put them to /etc/make.conf without conflicts.

Add few comments about options
---
 graphics/ImageMagick/Makefile | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/graphics/ImageMagick/Makefile b/graphics/ImageMagick/Makefile
index 9c0a23e62973..f1a9b4ba597a 100644
--- a/graphics/ImageMagick/Makefile
+++ b/graphics/ImageMagick/Makefile
@@ -62,17 +62,18 @@ CONFIGURE_ARGS+=	--with-threads
 CONFIGURE_ARGS+=	--without-threads
 .endif
 
-.if defined(WITH_16BIT_PIXEL)
-CONFIGURE_ARGS+=	--enable-16bit-pixel
-.else
+# Faster, but poor quality
+.if defined(WITHOUT_IMAGEMAGICK_16BIT_PIXEL)
 CONFIGURE_ARGS+=	--disable-16bit-pixel
 .endif
 
+# Produce standard (small) GIFs
 .if defined(HAVE_UNISYS_LICENSE)
 CONFIGURE_ARGS+=	--enable-lzw
 .endif
 
-.if defined(WITH_MODULES)
+# Loadable coders, smaller executable
+.if !defined(WITHOUT_IMAGEMAGICK_MODULES)
 LIB_DEPENDS+=	ltdl.1:${PORTSDIR}/devel/libtool
 LIBTOOLFLAGS=	# none
 CONFIGURE_ARGS+=	--with-modules