Date: Sun, 17 Mar 2002 20:10:59 +0300 (MSK) From: Seva Gluschenko <gvs@rinet.ru> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/36013: --enable-maxmem for libjpeg port Message-ID: <200203171710.g2HHAxf53860@gemnet.ru>
next in thread | raw e-mail | index | archive | help
>Number: 36013 >Category: ports >Synopsis: --enable-maxmem for libjpeg port >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Mar 17 09:20:01 PST 2002 >Closed-Date: >Last-Modified: >Originator: Seva Gluschenko >Release: FreeBSD 4.5-STABLE i386 >Organization: Cronyx Plus LLC/ru.rinet LIR >Environment: System: FreeBSD gemnet.ru 4.5-STABLE FreeBSD 4.5-STABLE #3: Sat Mar 16 20:58:28 MSK 2002 root@gemnet.ru:/cl/system/sys/compile/gem i386 >Description: Working on with libjpeg I found that FreeBSD port does not provide any usage of --enable-maxmem configure option. The proposed patch solves this issue. >How-To-Repeat: Try to make libjpeg from ports with maxmem limit. You won't be able to do this without digging into Makefile. >Fix: Apply this patch to port Makefile: cd /usr/ports/graphics/jpeg patch < /path/to/this/file Then use "make J_MAXMEM=nn" to limit memory usage to nn MBytes. --- Makefile.orig Sun Mar 17 19:47:13 2002 +++ Makefile Sun Mar 17 20:01:14 2002 @@ -21,6 +21,11 @@ INSTALLS_SHLIB= yes CONFIGURE_ARGS= --enable-shared --enable-static +# 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: >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200203171710.g2HHAxf53860>