Import www/p5-Catalyst-View-TT-Alloy version 0.00007_1
[dports.git] / textproc / sablotron / Makefile
1 # Created by: Sergey Skvortsov <skv@protey.ru>
2 # $FreeBSD$
3
4 PORTNAME=       Sablot
5 PORTVERSION=    1.0.3
6 PORTREVISION=   4
7 CATEGORIES=     textproc
8 MASTER_SITES=   SF/sablotron/sablotron-${PORTVERSION}
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        XML toolkit implementing XSLT 1.0, XPath 1.0 and DOM Level2
12
13 LICENSE=        MPL GPLv2
14 LICENSE_COMB=   dual
15
16 LIB_DEPENDS=    libexpat.so:textproc/expat2
17
18 OPTIONS_DEFINE= DEBUGGER DISABLE_META DOCS DOCUMENT_ERRORS DOM
19
20 DEBUGGER_DESC=          Enable debugger
21 DISABLE_META_DESC=      Do not output the META html tag
22 DOCUMENT_ERRORS_DESC=   Allow document errors
23 DOM_DESC=               Use DOM
24
25 OPTIONS_DEFAULT=        DOM DOCUMENT_ERRORS
26
27 DEBUGGER_CONFIGURE_ENABLE=      debugger
28 DISABLE_META_CONFIGURE_ON=      --disable-adding-meta
29 DOCS_BUILD_DEPENDS=             p5-XML-Parser>=0:textproc/p5-XML-Parser
30 DOCS_CONFIGURE_ON=              --with-html-dir=${DOCSDIR}
31 DOCS_USES=                      perl5
32 DOCS_USE=                       PERL5=build
33 DOM_CONFIGURE_ENABLE=           dom
34 DOCUMENT_ERRORS_CONFIGURE_ENABLE=       document-errors
35
36 GNU_CONFIGURE=  yes
37 USES=           gmake iconv libtool
38 USE_LDCONFIG=   yes
39 CPPFLAGS+=      -I${LOCALBASE}/include
40 LDFLAGS+=       -L${LOCALBASE}/lib -lexpat ${ICONV_LIB}
41
42 PORTDOCS=       *
43
44 post-patch-DOCS-off:
45         @${REINPLACE_CMD} -e '/^SUBDIRS =/s/apidoc//' ${WRKSRC}/doc/Makefile.in
46
47 post-install:
48         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libsablot.so
49         cd ${WRKSRC} && ${COPYTREE_SHARE} "README README_JS RELEASE \
50                 doc/misc/DEBUGGER doc/misc/NOTES" ${STAGEDIR}${DOCSDIR}
51
52 .include <bsd.port.mk>