2002-04-02 16:52:20 +00:00
|
|
|
# New ports collection makefile for: pngcquant
|
|
|
|
# Date created: Fri 08 Feb 2002
|
|
|
|
# Whom: Alex Hayward <xelah@xelah.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pngquant
|
2002-06-13 07:14:14 +00:00
|
|
|
PORTVERSION= 1.0
|
2002-06-17 20:44:18 +00:00
|
|
|
PORTREVISION= 1
|
2002-04-02 16:52:20 +00:00
|
|
|
CATEGORIES= graphics
|
2007-02-07 06:31:57 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2004-07-15 16:44:41 +00:00
|
|
|
MASTER_SITE_SUBDIR= png-mng
|
2002-04-02 16:52:20 +00:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
2002-06-13 07:14:14 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
2002-04-02 16:52:20 +00:00
|
|
|
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2004-07-15 16:44:41 +00:00
|
|
|
COMMENT= Converts 32-bit RGBA PNGs into 8-bit RGBA-palette PNGs
|
2002-04-02 16:52:20 +00:00
|
|
|
|
2002-06-17 20:44:18 +00:00
|
|
|
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
|
2002-04-02 16:52:20 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2002-06-17 20:44:18 +00:00
|
|
|
MAKEFILE= Makefile.unx
|
|
|
|
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-lpng -lz -lm -L${LOCALBASE}/lib"
|
|
|
|
|
2004-07-15 16:44:41 +00:00
|
|
|
PORTDOCS= CHANGELOG README
|
|
|
|
PLIST_FILES= bin/pngquant
|
|
|
|
|
2002-04-02 16:52:20 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/pngquant ${PREFIX}/bin
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2002-06-17 20:44:18 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
2002-04-02 16:52:20 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|