summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'graphics')
-rw-r--r--graphics/jpeg-mmx/Makefile5
-rw-r--r--graphics/jpeg/Makefile5
2 files changed, 10 insertions, 0 deletions
diff --git a/graphics/jpeg-mmx/Makefile b/graphics/jpeg-mmx/Makefile
index 45e9f8f..1c66d07 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 45e9f8f..1c66d07 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:
OpenPOWER on IntegriCloud