# New ports collection makefile for:	ccscript
# Date created:				26 July 2000
# Whom:					David Sugar <dyfet@gnu.org>
#
# $FreeBSD: ports/lang/ccscript/Makefile,v 1.1 2000/07/28 10:45:43 sobomax Exp $
#
# Copyright (c) 1999-2001 by Open Source Telecom Corporation. 
# Verbatim copying and distribution of this entire file is permitted
# in any medium, provided this notice is preserved. 

PORTNAME=	ccscript
PORTVERSION=	@VERSION@
CATEGORIES=	lang
MASTER_SITES=	ftp://www.gnu.org/gnu/ccscript/

MAINTAINER=	dyfet@gnu.org

BUILD_DEPENDS=	doxygen:${PORTSDIR}/devel/doxygen \
                automake:${PORTSDIR}/devel/automake

LIB_DEPENDS=	ccext2:${PORTSDIR}/devel/commoncpp2

USE_GMAKE=	yes
USE_CONFIGURE=	no
USE_LIBTOOL=	yes
USE_AUTOCONF=	no
INSTALLS_SHLIB=	yes

post-extract:
#	@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
#		's|-release \$$\(LT_RELEASE\)||g'

	(cd ${WRKSRC} ; ./reconfig)
	(cd ${WRKSRC} ; ./configure)
	(cd ${WRKSRC}/doc ; doxygen Doxyfile)
	(cd ${WRKSRC}/doc ; doxygen Doxyman)

post-install:
	(cd ${WRKSRC} ; make man)
#.if !defined(NOPORTDOCS)
#	${MKDIR} ${PREFIX}/share/doc/ccscript
#	${INSTALL_MAN} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/ccscript
#.endif

.include <bsd.port.mk>
