# Ports collection makefile for:	twin
# Date created:				Jul 7, 2002
# Whom:					ijliao
#
# $FreeBSD: ports/x11/twin/Makefile,v 1.9 2003/05/21 15:11:35 will Exp $
#

PORTNAME=	twin
PORTVERSION=	0.4.6
CATEGORIES=	x11
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE} \
		http://linuz.sns.it/~max/twin/
MASTER_SITE_SUBDIR=	twin

MAINTAINER=	samy@kerneled.com
COMMENT=	A text-mode window manager and terminal emulator

RUN_DEPENDS=	bash:${PORTSDIR}/shells/bash2

USE_BISON=	yes
USE_REINPLACE=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ENV=	LDFLAGS="${PTHREAD_LIBS}"
USE_GMAKE=	yes
INSTALLS_SHLIB=	yes
NO_FILTER_SHLIBS=yes
PLIST_SUB=	PORTVERSION="${PORTVERSION}"

MAN1=	twin.1

post-patch:
	@${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|g" ${WRKSRC}/configure

.include <bsd.port.mk>
