# New ports collection makefile for:	ctwm
# Date created:		13 November 1994
# Whom:			torstenb
#
# $FreeBSD: ports/x11-wm/ctwm/Makefile,v 1.36 2005/03/17 23:22:13 lesi Exp $
#

PORTNAME=	ctwm
PORTVERSION=	3.6
PORTREVISION=	1
CATEGORIES=	x11-wm
MASTER_SITES=	http://slpc1.epfl.ch/public/software/ctwm/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ctwm-images${EXTRACT_SUFX}

MAINTAINER=	ports@FreeBSD.org
COMMENT=	An extension to twm, with support for multiple virtual screens, etc

BUILD_DEPENDS=	gm4:${PORTSDIR}/devel/m4
RUN_DEPENDS=	gm4:${PORTSDIR}/devel/m4

USE_IMAKE=	yes
USE_XPM=	yes
MAN1=		ctwm.1

post-extract:
	@(cd ${WRKSRC} && ${LN} -s ../xpm xpm)

.include <bsd.port.pre.mk>

.if ${X_WINDOW_SYSTEM:L} == xorg
PLIST_SUB+=	NEWMTREE=""
.else
PLIST_SUB+=	NEWMTREE="@comment "
.endif

.include <bsd.port.post.mk>
