1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-23 09:10:43 +00:00

Support CFLAGS/LOCALBASE properly

PR:		39433
Submitted by:	Ports Fury
This commit is contained in:
Ying-Chieh Liao 2002-06-17 20:44:18 +00:00
parent 8fc8bed0c3
commit b4da42094e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=61457
2 changed files with 8 additions and 26 deletions

View File

@ -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
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
MAKEFILE= Makefile.unx
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
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>

View File

@ -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