# New ports collection makefile for:    fortytwo-encore
# Date created:         28 Nov 2006
# Whom:                 dirk.meyer@dinoex.sub.org
#
# $FreeBSD: ports/devel/fortytwo-encore/Makefile,v 1.9 2010/06/05 06:14:25 dinoex Exp $
#

PORTNAME=	encore
PORTVERSION=	0.3.1
PORTREVISION=	1
CATEGORIES=	devel gnustep
MASTER_SITES=	SF/fortytwo/Encore/${PORTVERSION}
PKGNAMEPREFIX=	fortytwo-
DISTFILES=	Encore-${PORTVERSION}-src.tgz \
		Encore-${PORTVERSION}-api-ref.tgz

MAINTAINER=	dinoex@FreeBSD.org
COMMENT=	Utility classes for GNUstep

LICENSE=	LGPL21

USE_GNUSTEP=	yes
USE_GNUSTEP_BACK=	yes
USE_GNUSTEP_BUILD=	yes
USE_GNUSTEP_INSTALL=	yes
DEFAULT_LIBVERSION=	0.1
USE_GNUSTEP_LDCONFIG=	${GNUSTEP_LOCAL_LIBRARIES}

WRKSRC=		${WRKDIR}/Encore
DOCSDIR=	${GNUSTEP_PREFIX}/Local/Library/Documentation/Encore

post-install:
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	@${TAR} -C ${WRKDIR}/Encore-${PORTVERSION}-api-ref -cf - . | \
		${TAR} -C ${DOCSDIR} -xf -
.endif

.include <bsd.port.mk>
