Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 17 Jun 2002 13:21:51 -0700 (PDT)
From:      KATO Tsuguru <tkato@prontomail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/39433: Update port: graphics/pngquant
Message-ID:  <200206172021.g5HKLpQI061029@www.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         39433
>Category:       ports
>Synopsis:       Update port: graphics/pngquant
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jun 17 13:30:02 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.6-RELEASE i386
>Organization:
>Environment:
>Description:
- Support CFLAGS/LOCALBASE properly

Remove file:
files/patch-aa

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/graphics/pngquant/Makefile graphics/pngquant/Makefile
--- /usr/ports/graphics/pngquant/Makefile	Fri Jun 14 19:36:07 2002
+++ graphics/pngquant/Makefile	Fri Jun 14 20:14:38 2002
@@ -7,6 +7,7 @@
 
 PORTNAME=	pngquant
 PORTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	graphics
 MASTER_SITES=	http://www.libpng.org/pub/png/src/ \
 		ftp://ftp.libpng.org/pub/png/src/ \
@@ -16,17 +17,20 @@
 
 MAINTAINER=	ports@FreeBSD.org
 
-LIB_DEPENDS=	png:${PORTSDIR}/graphics/png
+LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png
 
-MAKEFILE=	Makefile.unx
 WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
 
+MAKEFILE=	Makefile.unx
+MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
+		LDFLAGS="-lpng -lz -lm -L${LOCALBASE}/lib"
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${PREFIX}/bin
 .if !defined(NOPORTDOCS)
 	@${MKDIR} ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
-	@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -urN /usr/ports/graphics/pngquant/files/patch-aa graphics/pngquant/files/patch-aa
--- /usr/ports/graphics/pngquant/files/patch-aa	Wed Apr  3 01:52:20 2002
+++ graphics/pngquant/files/patch-aa	Thu Jan  1 09:00:00 1970
@@ -1,22 +0,0 @@
---- Makefile.unx.orig	Fri Feb  8 17:55:47 2002
-+++ Makefile.unx	Fri Feb  8 17:57:53 2002
-@@ -1,13 +1,14 @@
- # Makefile for pngquant
- # GRR 20001222
- 
--CC=gcc
-+CC?=gcc
-+LD=$(CC)
- 
--PNGINC = ../libpng
--PNGLIB = ../libpng
-+PNGINC = /usr/local/include
-+PNGLIB = /usr/local/lib
- 
--ZINC = ../zlib
--ZLIB = ../zlib
-+ZINC = /usr/include
-+ZLIB = /usr/lib
- 
- CFLAGS = -O3 -Wall -I. -I$(PNGINC) -I$(ZINC)
- #LDFLAGS = -L$(PNGLIB) -lpng -L$(ZLIB) -lz -lm

>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?200206172021.g5HKLpQI061029>