# Ports collection makefile for:	scale2x
# Date created:			2006/12/01
# Whom:				chinsan
#
# $FreeBSD: ports/graphics/scale2x/Makefile,v 1.4 2009/08/28 17:37:01 linimon Exp $
#

PORTNAME=	scale2x
PORTVERSION=	2.2
CATEGORIES=	graphics
MASTER_SITES=	SF

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Real-time graphics effect able to increase the size of small bitmaps

LIB_DEPENDS=	png.5:${PORTSDIR}/graphics/png

GNU_CONFIGURE=	yes
CPPFLAGS+=	-I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib
CONFIGURE_ENV+=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

PLIST_FILES=	bin/scalex bin/scalerx
MAN1=		scalex.1 scalerx.1

post-patch:
	@${REINPLACE_CMD} -e 's,png.h,libpng/png.h,' ${WRKSRC}/file.h

.include <bsd.port.mk>
