# New ports collection makefile for:	vp
# Date created:			Apr 13, 2001
# Whom:				Mark Pulford <mark@kyne.com.au>
#
# $FreeBSD: ports/graphics/vp/Makefile,v 1.13 2004/03/16 04:23:50 edwin Exp $
#

PORTNAME=	vp
PORTVERSION=	1.5
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	http://math.smsu.edu/~erik/files/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An image viewer for X

PLIST_FILES=	bin/vp
USE_SDL=	image
USE_GETOPT_LONG=yes
USE_LIBTOOL_VER=13
CPPFLAGS=	-I${LOCALBASE}/include
LDFLAGS=	-L${LOCALBASE}/lib
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}" \
		ac_cv_func_getopt_long=yes
USE_REINPLACE=	yes
MAN1=		vp.1

post-patch:
	${REINPLACE_CMD} 's@ getopt_long/Makefile@@g' ${WRKSRC}/configure

.include <bsd.port.mk>
