ports/87739: Update port: graphics/tif22pnm to 0.12

KATO Tsuguru tkato432 at yahoo.com
Thu Oct 20 17:10:20 UTC 2005


>Number:         87739
>Category:       ports
>Synopsis:       Update port: graphics/tif22pnm to 0.12
>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 Oct 20 17:10:15 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        FreeBSD 4.11-RELEASE-p13 i386
>Organization:
>Environment:
>Description:
- Update to version 0.12

>How-To-Repeat:
>Fix:

diff -urN /usr/ports/graphics/tif22pnm/Makefile graphics/tif22pnm/Makefile
--- /usr/ports/graphics/tif22pnm/Makefile	Tue Apr 12 14:06:29 2005
+++ graphics/tif22pnm/Makefile	Thu Oct 20 23:55:40 2005
@@ -7,18 +7,16 @@
 #
 
 PORTNAME=	tif22pnm
-PORTVERSION=	0.11
+PORTVERSION=	0.12
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.inf.bme.hu/~pts/
 
 MAINTAINER=	ports at FreeBSD.org
 COMMENT=	Converts TIFF- sampled images to PNM image
 
-BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash
 LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png \
 		tiff.4:${PORTSDIR}/graphics/tiff
 
-USE_REINPLACE=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
 CONFIGURE_ARGS=	--with-libtiff-ldir=${LOCALBASE}/lib \
@@ -26,11 +24,15 @@
 
 PLIST_FILES=	bin/png22pnm bin/tif22pnm
 
-post-patch:
-	@${REINPLACE_CMD} -e 's| -O2| ${CFLAGS}|g' ${WRKSRC}/do.sh
+TIF22PNM_SRCS=	ptspnm.c minigimp.c miniglib.c ptstiff3.c tif22pnm.c
+PNG2PNM_SRCS=	png22pnm.c
 
 do-build:
-	@(cd ${WRKSRC} ; ${LOCALBASE}/bin/bash do.sh compile)
+	cd ${WRKSRC} \
+		&& ${CC} ${CFLAGS} -DNDEBUG -I${LOCALBASE}/include \
+		${TIF22PNM_SRCS} -o tif22pnm -L${LOCALBASE}/lib -ltiff \
+		&& ${CC} ${CFLAGS} -DNDEBUG `pkg-config libpng12 --cflags` \
+		${PNG2PNM_SRCS} -o png22pnm `pkg-config libpng12 --libs`
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/png22pnm ${PREFIX}/bin
diff -urN /usr/ports/graphics/tif22pnm/distinfo graphics/tif22pnm/distinfo
--- /usr/ports/graphics/tif22pnm/distinfo	Tue Aug 24 13:34:12 2004
+++ graphics/tif22pnm/distinfo	Thu Oct 20 23:42:27 2005
@@ -1,2 +1,2 @@
-MD5 (tif22pnm-0.11.tar.gz) = 1fde82ce6039e0ca83d7dbaf871ea029
-SIZE (tif22pnm-0.11.tar.gz) = 107002
+MD5 (tif22pnm-0.12.tar.gz) = faeb859e2e01653e6b9fd4db992c02a9
+SIZE (tif22pnm-0.12.tar.gz) = 107567
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list