# $MidnightBSD: mports/net/tryst-examples/Makefile,v 1.2 2011/01/15 04:02:18 laffer1 Exp $

PORTNAME=	tryst
PORTVERSION=	1.0.8
CATEGORIES=	net gnustep
MASTER_SITES=	${MASTER_SITE_FREEBSD_LOCAL}
MASTER_SITE_SUBDIR=	dinoex
PKGNAMESUFFIX=	-examples${PKGNAMESUFFIX2}
DISTNAME=	tryst-108pl6
EXTRACT_SUFX=	.tgz

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	TBrowser and TChat
LICENSE=	lgpl

USE_GNUSTEP=	yes
USE_GNUSTEP_PREFIX=	yes
USE_GNUSTEP_BACK=	yes
USE_GNUSTEP_BUILD=	yes
USE_GNUSTEP_INSTALL=	yes
USE_GNUSTEP_LOCAL_LIBS+=	Tryst:${TRYST_PORT}

WRKSRC=		${WRKDIR}/Tryst-108.pl6
USE_GNUSTEP_MAKE_DIRS+=	Examples/TBrowser Examples/TChat

TRYST_PORT?=	net/tryst

.if defined(FETCH_MAKESUM)
MASTER_SITES=	http://gnustep.dyndns.org/Downloads/Frameworks/
.endif

.include <bsd.port.pre.mk>

.if (${OSVERSION} < 3004)
LIB_DEPENDS=    dns_sd:${PORTSDIR}/net/mDNSResponder
.endif


# to build on 64bit
post-patch:
	${REINPLACE_CMD} -e 's|-Werror||' \
		${WRKSRC}/Examples/TChat/GNUmakefile.preamble

.include <bsd.port.post.mk>
