aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/gdome2/Makefile
blob: f59013785428354fcb5e683efca7d77e3907f09e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# New ports collection makefile for:    gdome2
# Date created:     7 July 2001
# Whom:         Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#

PORTNAME=   gdome2
PORTVERSION=    0.7.2
CATEGORIES= textproc
MASTER_SITES=   http://phd.cs.unibo.it/gdome2/tarball/

MAINTAINER= knu@FreeBSD.org

LIB_DEPENDS=    xml2.5:${PORTSDIR}/textproc/libxml2

USE_GLIB=   yes
USE_LIBTOOL=    yes
CONFIGURE_ENV=  GLIB_CONFIG="${GLIB_CONFIG}" CPPFLAGS="-I${LOCALBASE}/include"
PLIST_SUB=  DOCSDIR="share/doc/${DISTNAME}"
INSTALLS_SHLIB= yes

MAN1=   gdome-config.1

post-patch:
    @${PERL} -i -pe 's,^(HTML_DIR *= *).*,$$1\$$(prefix)/share/doc,' ${WRKSRC}/gtk-doc/Makefile.in
    @${FIND} ${WRKSRC} -type f | ${XARGS} ${PERL} -i -pe \
        's,<parser.h>,<libxml/parser.h>,; \
         s,<hash.h>,<libxml/hash.h>,; \
         s,<xmlmemory.h>,<libxml/xmlmemory.h>,; \
         s,<tree.h>,<libxml/tree.h>,; \
         s,<xmlerror.h>,<libxml/xmlerror.h>,; \
         s,<xmlIO.h>,<libxml/xmlIO.h>,; \
         s,<parserInternals.h>,<libxml/parserInternals.h>,; \
         s,<entities.h>,<libxml/entities.h>,'

.include <bsd.port.mk>