# New ports collection makefile for:	msort
# Date created:		2006-08-11
# Whom:			Gea-Suan Lin <gslin@gslin.org>
#
# $FreeBSD: ports/textproc/msort/Makefile,v 1.2 2006/08/16 06:04:49 clsung Exp $
#

PORTNAME=	msort
PORTVERSION=	8.27
CATEGORIES=	textproc
MASTER_SITES=	http://billposer.org/Software/Downloads/
EXTRACT_SUFX=	.tgz

MAINTAINER=	gslin@gslin.org
COMMENT=	Sorting files in sophisticated ways

BUILD_DEPENDS=	${RUN_DEPENDS}
LIB_DEPENDS=	tre:${PORTSDIR}/textproc/libtre
RUN_DEPENDS=	iwidgets>=0:${PORTSDIR}/x11-toolkits/iwidgets

CONFIGURE_ENV=	LDFLAGS="-L${LOCALBASE}/lib"
GNU_CONFIGURE=	yes
USE_TK=		yes

PLIST_FILES=	bin/msg bin/msort

MAN1=		msort.1

.include <bsd.port.pre.mk>

post-patch:
	${REINPLACE_CMD} -e 's,^#include <alloca.h>,,g' ${WRKSRC}/msort.c
.if ${OSVERSION} < 500035
BROKEN=		Does not build with older versions of FreeBSD
.endif

.include <bsd.port.post.mk>
