Update mail/geary to version 0.10.0
[dports.git] / textproc / gdome2 / Makefile
1 # Created by: Akinori MUSHA aka knu <knu@idaemons.org>
2 # $FreeBSD$
3
4 PORTNAME=       gdome2
5 PORTVERSION=    0.8.1
6 PORTREVISION=   10
7 CATEGORIES=     textproc
8 MASTER_SITES=   http://gdome2.cs.unibo.it/tarball/
9
10 MAINTAINER=     ports@FreeBSD.org
11 COMMENT=        Gnome DOM Engine
12
13 USES=           pathfix pkgconfig libtool
14 USE_GNOME=      glib20 libxml2
15 GNU_CONFIGURE=  yes
16 CONFIGURE_ENV=  GLIB_CONFIG="${LOCALBASE}/bin/pkg-config glib-2.0"
17 CPPFLAGS+=      -I${LOCALBASE}/include
18 DOCSDIR=        ${PREFIX}/share/doc/${DISTNAME}
19 USE_LDCONFIG=   yes
20 INSTALL_TARGET= install-strip
21
22 OPTIONS_DEFINE= DOCS
23
24 PORTDOCS=       *
25
26 .include <bsd.port.options.mk>
27
28 post-patch:
29 .if ${PORT_OPTIONS:MDOCS}
30         @${REINPLACE_CMD} -E -e \
31                 's,^(HTML_DIR *= *).*,\1\$$(DESTDIR)$$(prefix)/share/doc,' \
32                 ${WRKSRC}/gtk-doc/Makefile.in
33 .else
34         @${REINPLACE_CMD} '/gtk-doc/d' ${WRKSRC}/Makefile.in
35 .endif
36
37         @${FIND} ${WRKSRC} -type f -and \
38                 '(' -name '*.[ch]' -or -name '*.xml' ')' | \
39                 ${XARGS} ${REINPLACE_CMD} -e ' \
40                  s,<parser\.h>,<libxml/parser.h>,; \
41                  s,<hash\.h>,<libxml/hash.h>,; \
42                  s,<xmlmemory\.h>,<libxml/xmlmemory.h>,; \
43                  s,<tree\.h>,<libxml/tree.h>,; \
44                  s,<xmlerror\.h>,<libxml/xmlerror.h>,; \
45                  s,<xmlIO\.h>,<libxml/xmlIO.h>,; \
46                  s,<parserInternals\.h>,<libxml/parserInternals.h>,; \
47                  s,<entities\.h>,<libxml/entities.h>,'
48
49 post-install:
50         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgdome.so
51
52 .include <bsd.port.mk>