# New ports collection makefile for:	libwmf
# Date Created:		22 May 1999
# Whom:			Chris Piazza <cpiazza@FreeBSD.org>
#
# $FreeBSD: ports/graphics/libwmf/Makefile,v 1.18 2000/11/12 17:24:55 sumikawa Exp $
#

PORTNAME=	libwmf
PORTVERSION=	0.1.20
CATEGORIES=	graphics
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	wvware

MAINTAINER=	ports@FreeBSD.org

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

WRKSRC=		${WRKDIR}/${PORTNAME}

USE_XLIB=	yes
USE_XPM=	yes
USE_FREETYPE=	yes
INSTALLS_SHLIB=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include/freetype \
		          -I${LOCALBASE}/include" \
		LIBS="-L${LOCALBASE}/lib"

pre-configure:
	(cd ${WRKSRC}; ${LN} -s xgd-1.7.3 xgd)
	(cd ${WRKSRC}/libdib; ${LN} -s ../bytelevel.c)

.include <bsd.port.mk>
