# New ports collection makefile for:	scr2png
# Date created:				18 May 2001
# Whom:					nik
#
# $FreeBSD: ports/graphics/scr2png/Makefile,v 1.5 2003/03/07 06:04:11 ade Exp $
#

PORTNAME=	scr2png
PORTVERSION=	1.1
CATEGORIES=	graphics

MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= nik
NO_WRKSUBDIR=	yes

MAINTAINER=	nik@freebsd.org
COMMENT=	Converts the output of "vidcontrol -p" to PNG

LIB_DEPENDS=	gd.2:${PORTSDIR}/graphics/gd

USE_REINPLACE=	yes

MAN1=		scr2png.1
MANCOMPRESSED=	yes

post-extract:
	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' ${WRKSRC}/Makefile

do-install:	
	@cd ${WRKSRC}; ${MAKE} BINDIR=${PREFIX}/bin SHAREDIR=${PREFIX} install

.include <bsd.port.mk>
