diff options
author | ijliao <ijliao@FreeBSD.org> | 2002-06-18 04:44:18 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2002-06-18 04:44:18 +0800 |
commit | 1caa933ec07b04f3804061fa4c9c6958fb3f98e0 (patch) | |
tree | 33f24d6db87920f5a53250977b02ba773078d371 /graphics | |
parent | b3fb6521b7123c5e3d39173fb0300b638ce5a199 (diff) | |
download | freebsd-ports-gnome-1caa933ec07b04f3804061fa4c9c6958fb3f98e0.tar.gz freebsd-ports-gnome-1caa933ec07b04f3804061fa4c9c6958fb3f98e0.tar.zst freebsd-ports-gnome-1caa933ec07b04f3804061fa4c9c6958fb3f98e0.zip |
Support CFLAGS/LOCALBASE properly
PR: 39433
Submitted by: Ports Fury
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/pngquant/Makefile | 12 | ||||
-rw-r--r-- | graphics/pngquant/files/patch-aa | 22 |
2 files changed, 8 insertions, 26 deletions
diff --git a/graphics/pngquant/Makefile b/graphics/pngquant/Makefile index f95b80c1f929..c82256b9e60c 100644 --- a/graphics/pngquant/Makefile +++ b/graphics/pngquant/Makefile @@ -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 @@ EXTRACT_SUFX= .tgz 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 --git a/graphics/pngquant/files/patch-aa b/graphics/pngquant/files/patch-aa deleted file mode 100644 index ce83ae938e47..000000000000 --- a/graphics/pngquant/files/patch-aa +++ /dev/null @@ -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 |