Date: Sat, 15 Nov 2003 16:11:09 -0800 (PST) From: Soulburner <freebsd@doghouserepair.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/59313: [patch] Update to graphics/jpgtn port Message-ID: <20031116001109.1C64788@router.local.inet> Resent-Message-ID: <200311160020.hAG0KBMb036394@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 59313 >Category: ports >Synopsis: [patch] Update to graphics/jpgtn port >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Nov 15 16:20:11 PST 2003 >Closed-Date: >Last-Modified: >Originator: Ryan Rogers >Release: FreeBSD 5.1-RELEASE-p10 i386 >Organization: >Environment: System: FreeBSD router.local.inet 5.1-RELEASE-p10 FreeBSD 5.1-RELEASE-p10 #0: Sat Oct 25 09:48:27 PDT 2003 soul@router.local.inet:/usr/obj/usr/src/sys/ROUTER i386 >Description: Currently the jpgtn port (graphics/jpgtn) requires editing of source files to change the minimum and maximum thumbnail size allowed. The following Makefile diff adds the WITH_MINSIZE and WITH_MAXSIZE variables, so no source editing is required by the user. Also, the man page is updated to reflect the selected values. >How-To-Repeat: >Fix: The following patch applied to: # $FreeBSD: ports/graphics/jpgtn/Makefile,v 1.3 2003/03/07 06:04:05 ade Exp $ --- Makefile.diff begins here --- --- Makefile.old Sat Nov 15 15:43:51 2003 +++ Makefile Sat Nov 15 15:37:20 2003 @@ -7,6 +7,7 @@ PORTNAME= jpgtn PORTVERSION= 1.04 +PORTREVISION= 1 CATEGORIES= graphics MASTER_SITES= ${MASTER_SITE_SUNSITE} MASTER_SITE_SUBDIR= apps/graphics/misc @@ -17,5 +18,28 @@ LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg MAN1= jpgtn.1 +USE_REINPLACE= yes + +pre-everything:: + @${ECHO_MSG} "===>" + @${ECHO_MSG} "===> You can control program functionality by defining the following variables:" + @${ECHO_MSG} "===>" +.if !defined(WITH_MAXSIZE) + @${ECHO_MSG} "===> Define WITH_MAXSIZE to set the maximum allowable thumbnail size" +.endif +.if !defined(WITH_MINSIZE) + @${ECHO_MSG} "===> Define WITH_MINSIZE to set the minimum allowable thumbnail size" +.endif + @${ECHO_MSG} "===>" + +post-patch: +.if defined(WITH_MAXSIZE) + @${REINPLACE_CMD} "s/define MAXSIZE[[:blank:]]*256/define MAXSIZE ${WITH_MAXSIZE}/" ${WRKSRC}/jpgtn.h + @${REINPLACE_CMD} "s/allowable range (24-256)/allowable range (24-${WITH_MAXSIZE})/" ${WRKSRC}/jpgtn.1 +.endif +.if defined(WITH_MINSIZE) + @${REINPLACE_CMD} "s/define MINSIZE[[:blank:]]*24/define MINSIZE ${WITH_MINSIZE}/" ${WRKSRC}/jpgtn.h + @${REINPLACE_CMD} "s/allowable range (24-)/allowable range (${WITH_MINSIZE}-/" ${WRKSRC}/jpgtn.1 +.endif .include <bsd.port.mk> --- Makefile.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031116001109.1C64788>