# $OpenBSD: Makefile,v 1.10 2007/12/06 17:03:56 ajacoutot Exp $

COMMENT=		Z-code interpreter for X11

DISTNAME=		zoom-1.1.2
CATEGORIES=     	games

HOMEPAGE=		http://www.logicalshift.co.uk/unix/zoom/

# GPL
PERMIT_PACKAGE_CDROM=	Yes 
PERMIT_PACKAGE_FTP=	Yes 
PERMIT_DISTFILES_CDROM=	Yes 
PERMIT_DISTFILES_FTP=	Yes 

WANTLIB=		ICE SM X11 Xau Xdmcp Xext Xft Xrender c expat \
			fontconfig freetype m z

MASTER_SITES=		${HOMEPAGE}

LIB_DEPENDS=		png.>=6::graphics/png \
			t1.>=6::devel/t1lib

USE_X11=		Yes
USE_GMAKE=		Yes

CONFIGURE_STYLE=	gnu
CONFIGURE_ENV=		LDFLAGS="-L${LOCALBASE}/lib" \
			CPPFLAGS="-I${LOCALBASE}/include \
				-I${LOCALBASE}/include/libpng"

VMEM_WARNING=		Yes

post-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/zoom
	${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/zoom/README
	${INSTALL_DATA_DIR} ${PREFIX}/share/examples/zoom
	${INSTALL_DATA} ${WRKSRC}/src/zoomrc \
		${PREFIX}/share/examples/zoom/dot.zoomrc

.include <bsd.port.mk>
