aboutsummaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-06-18 04:44:18 +0800
committerijliao <ijliao@FreeBSD.org>2002-06-18 04:44:18 +0800
commit1caa933ec07b04f3804061fa4c9c6958fb3f98e0 (patch)
tree33f24d6db87920f5a53250977b02ba773078d371 /graphics
parentb3fb6521b7123c5e3d39173fb0300b638ce5a199 (diff)
downloadfreebsd-ports-graphics-1caa933ec07b04f3804061fa4c9c6958fb3f98e0.tar.gz
freebsd-ports-graphics-1caa933ec07b04f3804061fa4c9c6958fb3f98e0.tar.zst
freebsd-ports-graphics-1caa933ec07b04f3804061fa4c9c6958fb3f98e0.zip
Support CFLAGS/LOCALBASE properly
PR: 39433 Submitted by: Ports Fury
Diffstat (limited to 'graphics')
-rw-r--r--graphics/pngquant/Makefile12
-rw-r--r--graphics/pngquant/files/patch-aa22
2 files changed, 8 insertions, 26 deletions
diff --git a/graphics/pngquant/Makefile b/graphics/pngquant/Makefile
index f95b80c1f92..c82256b9e60 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 ce83ae938e4..00000000000
--- 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