aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/rarian/Makefile
blob: 53160ec9539a3393a8d5da85e36b1fa18bf96174 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
# $FreeBSD$
#   $MCom: ports/textproc/rarian/Makefile,v 1.12 2008/03/09 21:41:22 mezz Exp $

PORTNAME=   rarian
PORTVERSION=    0.8.1
PORTREVISION=   1
CATEGORIES= textproc gnome
MASTER_SITES=   GNOME

MAINTAINER= gnome@FreeBSD.org
COMMENT=    OMF help system based on the Freedesktop specification

BUILD_DEPENDS=  ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
            ${LOCALBASE}/share/xml/docbook/${DOCBOOK_VERSION}:${PORTSDIR}/textproc/docbook-xml \
        bash:${PORTSDIR}/shells/bash
RUN_DEPENDS=    bash:${PORTSDIR}/shells/bash \
            ${LOCALBASE}/bin/getopt:${PORTSDIR}/misc/getopt \
        ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl \
        ${LOCALBASE}/share/xml/docbook/${DOCBOOK_VERSION}:${PORTSDIR}/textproc/docbook-xml

DOCBOOK_VERSION=4.2

CONFLICTS=  scrollkeeper-[0-9]*

USES=       gmake pathfix tar:bzip2
USE_GNOME=  gnomehier libxslt
USE_PYTHON= yes
GNU_CONFIGURE=  yes
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --with-convert-dir=${LOCALBASE}/share/omf \
        --datadir=${PREFIX}/share \
        --localstatedir=/var
CPPFLAGS+=  -I${LOCALBASE}/include
LDFLAGS+=   -L${LOCALBASE}/lib

post-patch:
    @${REINPLACE_CMD} -e 's|/lib/rarian|/db/rarian|' \
        ${WRKSRC}/util/Makefile.in
    @${REINPLACE_CMD} -e 's|@localstatedir@/lib/rarian|@localstatedir@/db/rarian|g ; \
        s|getopt|${LOCALBASE}/bin/getopt|' \
            ${WRKSRC}/util/rarian-sk-config.in \
        ${WRKSRC}/util/rarian-sk-extract.in \
        ${WRKSRC}/util/rarian-sk-rebuild.in \
        ${WRKSRC}/util/rarian-sk-update.in
    @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
            ${WRKSRC}/librarian/rarian-main.c \
        ${WRKSRC}/librarian/rarian-man.c \
        ${WRKSRC}/librarian/rarian-info.c

.include <bsd.port.mk>