# New ports collection makefile for:   	flwm
# Date created:				12 February 1999
# Whom:                			Dima Sivachenko <dima@chg.ru>
#
# $FreeBSD: ports/x11-wm/flwm/Makefile,v 1.21 2008/08/19 09:32:52 linimon Exp $
#

PORTNAME=	flwm
PORTVERSION=	1.00
PORTREVISION=	2
CATEGORIES=	x11-wm
MASTER_SITES=	${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	gj
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@FreeBSD.org
COMMENT=	The Fast Light Window Manager

DEPRECATED=	Project is dead, and uses obsolete version of fltk
EXPIRATION_DATE=	2008-10-19

LIB_DEPENDS=	fltk.1:${PORTSDIR}/x11-toolkits/fltk

MAKE_ENV+=	PTHREAD_LIBS=${PTHREAD_LIBS}

GNU_CONFIGURE=	yes
MAN1=		flwm.1
PLIST_FILES=	bin/flwm

.include <bsd.port.pre.mk>

# could be a problem if both versions of freetype are installed
.if exists(${LOCALBASE}/include/freetype1/freetype/freetype.h)
CONFIGURE_ARGS= --includedir="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype1"
.elif exists(${LOCALBASE}/include/freetype2/freetype/freetype.h)
CONFIGURE_ARGS= --includedir="-I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2"
.endif

.include <bsd.port.post.mk>
