Date: Thu, 23 Sep 2004 12:34:39 -0400 (EDT) From: Michael Johnson <ahze@ahze.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: dinoex@FreeBSD.org Subject: ports/72039: [PATCH] graphics/tiff: [Add LZW-kit] Message-ID: <200409231634.i8NGYdLa025153@blueheron.ahze.net> Resent-Message-ID: <200409231640.i8NGeIAX019069@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 72039 >Category: ports >Synopsis: [PATCH] graphics/tiff: [Add LZW-kit] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Thu Sep 23 16:40:18 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Michael Johnson >Release: FreeBSD 5.3-BETA3 i386 >Organization: >Environment: System: FreeBSD blueheron.ahze.net 5.3-BETA3 FreeBSD 5.3-BETA3 #66: Tue Sep 7 12:56:04 EDT >Description: - Enable LZW compression kit for users who are able to use LZW Port maintainer (dinoex@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- tiff-3.6.1_2.patch begins here --- Index: Makefile =================================================================== RCS file: /home/ncvs/ports/graphics/tiff/Makefile,v retrieving revision 1.44 diff -u -r1.44 Makefile --- Makefile 22 Sep 2004 02:49:17 -0000 1.44 +++ Makefile 23 Sep 2004 16:30:10 -0000 @@ -13,13 +13,22 @@ CATEGORIES= graphics MASTER_SITES= ftp://ftp.remotesensing.org/pub/libtiff/ \ http://libtiff.maptools.org/dl/ -DISTNAME= ${PORTNAME}-v${PORTVERSION} +DISTFILES= ${PORTNAME}-v${PORTVERSION}.tar.gz +.if defined(WITH_TIFF_LZW_KIT) +DISTFILES+= ${LZW_DIST} +.endif MAINTAINER= dinoex@FreeBSD.org COMMENT= Tools and library routines for working with TIFF images LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg +LZKIT= libtiff-lzw-compression-kit +LZKIT_VER= 1.5 +LZW_DIST= ${LZKIT}-${LZKIT_VER}.tar.gz + +WRKSRC= ${WRKDIR}/${PORTNAME}-v${PORTVERSION} + INSTALLS_SHLIB= yes HAS_CONFIGURE= yes CONFIGURE_ARGS= --with-ZIP --with-JPEG \ @@ -113,4 +122,30 @@ TIFFtile.3t TIFFTileRowSize.3t \ TIFFtile.3t TIFFVTileSize.3t -.include <bsd.port.mk> +.include <bsd.port.pre.mk> + +.if defined(WITH_TIFF_LZW_KIT) +RESTRICTED= "Redistribution not allowed" + +.if !exists(${DISTDIR}/${LZW_DIST}) +IGNORE= Due to patent enforcement from Unisys you must manually\ + fetch ${LZW_DIST} from ftp://ftp.remotesensing.org/libtiff\ + To use this patch legally you must live in a country where the patent\ + does not apply or you must obtain a license from Unisys +.endif +.endif + +pre-everything:: +.if !defined(WITH_TIFF_LZW_KIT) + @${ECHO_MSG} "===>" + @${ECHO_MSG} "===> Enable LZW Compression by defining" + @${ECHO_MSG} "===> WITH_TIFF_LZW_KIT" + @${ECHO_MSG} "===>" +.endif + +post-patch: +.if defined(WITH_TIFF_LZW_KIT) + @${CP} -f ${WRKDIR}/${LZKIT}-${LZKIT_VER}/tif_lzw.c ${WRKSRC}/libtiff +.endif + +.include <bsd.port.post.mk> Index: distinfo =================================================================== RCS file: /home/ncvs/ports/graphics/tiff/distinfo,v retrieving revision 1.15 diff -u -r1.15 distinfo --- distinfo 26 Feb 2004 05:22:28 -0000 1.15 +++ distinfo 23 Sep 2004 16:20:03 -0000 @@ -1,2 +1,4 @@ MD5 (tiff-v3.6.1.tar.gz) = b3f0ee7617593c2703755672fb1bfed3 SIZE (tiff-v3.6.1.tar.gz) = 1072165 +MD5 (libtiff-lzw-compression-kit-1.5.tar.gz) = 2cd1c94d237d47104106de3bf4f08baa +SIZE (libtiff-lzw-compression-kit-1.5.tar.gz) = 9646 --- tiff-3.6.1_2.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409231634.i8NGYdLa025153>