From 4d0de816997fd7b9af7ba64b29957c598ab62e63 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Mon, 18 Mar 2002 03:36:35 +0000 Subject: [PATCH] add "--enable-maxmem" configure option PR: 36013 Submitted by: Seva Gluschenko --- graphics/jpeg-mmx/Makefile | 5 +++++ graphics/jpeg/Makefile | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/graphics/jpeg-mmx/Makefile b/graphics/jpeg-mmx/Makefile index 45e9f8fb3788..1c66d07ee418 100644 --- a/graphics/jpeg-mmx/Makefile +++ b/graphics/jpeg-mmx/Makefile @@ -24,6 +24,11 @@ CONFIGURE_ARGS= --enable-shared --enable-static ADDITIONAL_HEADER= jinclude.h jpegint.h +# define J_MAXMEM like "make J_MAXMEM=32" to limit max processing memory to 32Mb +.if defined(J_MAXMEM) +CONFIGURE_ARGS+= --enable-maxmem=$(J_MAXMEM) +.endif + MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 post-install: diff --git a/graphics/jpeg/Makefile b/graphics/jpeg/Makefile index 45e9f8fb3788..1c66d07ee418 100644 --- a/graphics/jpeg/Makefile +++ b/graphics/jpeg/Makefile @@ -24,6 +24,11 @@ CONFIGURE_ARGS= --enable-shared --enable-static ADDITIONAL_HEADER= jinclude.h jpegint.h +# define J_MAXMEM like "make J_MAXMEM=32" to limit max processing memory to 32Mb +.if defined(J_MAXMEM) +CONFIGURE_ARGS+= --enable-maxmem=$(J_MAXMEM) +.endif + MAN1= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 post-install: