# 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.20 2006/11/30 11:51:11 rafan Exp $
#

PORTNAME=	vp
PORTVERSION=	1.6
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	http://math.missouristate.edu/~erik/files/

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

USE_SDL=	image
USE_GETOPT_LONG=	yes
GNU_CONFIGURE=	yes
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"

MAN1=		vp.1
PLIST_FILES=	bin/vp

CPPFLAGS=	-I${LOCALBASE}/include
LDFLAGS=	-L${LOCALBASE}/lib

post-patch:
	@${REINPLACE_CMD} -e 's,/usr/X11R6,${X11BASE},g' ${WRKSRC}/configure

.include <bsd.port.mk>
