aboutsummaryrefslogtreecommitdiffstats
path: root/textproc/scrollkeeper/Makefile
blob: fdf51c6c3e174421c196f764b436e859f6fbde86 (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
52
53
54
55
56
57
58
59
60
# New ports collection makefile for:    scrollkeeper
# Date created:             6 April 2001
# Whom:                 Rene Hexel <rh@netbsd.org>
#
# $FreeBSD$
#    $MCom: ports/textproc/scrollkeeper/Makefile,v 1.2 2006/09/10 00:51:13 mezz Exp $

PORTNAME=   scrollkeeper
PORTVERSION=    0.3.14
PORTREVISION=   5
PORTEPOCH=  1
CATEGORIES= textproc gnome
MASTER_SITES=   ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/0.3
DIST_SUBDIR=    gnome2

MAINTAINER= gnome@FreeBSD.org
COMMENT=    An Open Document Cataloging Project

BUILD_DEPENDS=  intltool-extract:${PORTSDIR}/textproc/intltool \
        ${LOCALBASE}/share/xml/docbook/${DOCBOOK_VERSION}/docbook.cat:${PORTSDIR}/textproc/docbook-sk \
        ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl
RUN_DEPENDS=    intltool-extract:${PORTSDIR}/textproc/intltool \
        ${LOCALBASE}/share/xml/docbook/${DOCBOOK_VERSION}/docbook.cat:${PORTSDIR}/textproc/docbook-sk \
        ${LOCALBASE}/share/xsl/docbook/xhtml/chunk.xsl:${PORTSDIR}/textproc/docbook-xsl

DOCBOOK_VERSION=    4.1.2

USE_BZIP2=  yes
USE_GETTEXT=    yes
USE_GMAKE=  yes
GNU_CONFIGURE=  yes
USE_BISON=  yes
USE_GNOME=  gnomehack gnomehier gnometarget libxslt intlhack
USE_LDCONFIG=   yes
CONFIGURE_ARGS= --localstatedir=/var --datadir=${PREFIX}/share/gnome \
        --with-omfdirs=${PREFIX}/share/gnome/omf \
        --with-xml-catalog=${LOCALBASE}/share/xml/catalog.ports
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib -lintl" \
        LOCALBASE="${LOCALBASE}"
PLIST_SUB=  LOCALBASE=${LOCALBASE}

MAN1=   scrollkeeper-config.1 scrollkeeper-gen-seriesid.1
MAN5=   scrollkeeper.conf.5
MAN7=   scrollkeeper.7
MAN8=   scrollkeeper-preinstall.8 scrollkeeper-rebuilddb.8 \
    scrollkeeper-update.8

.include <bsd.port.pre.mk>

post-patch:
    @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e   \
        's|[(]LN_S[)] -f -n|(LN_S) -f|g'
    @${REINPLACE_CMD} -e 's|/usr/share/locale|${PREFIX}/share/locale|g' \
        ${WRKSRC}/libs/scrollkeeper.h.in
    @${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
        ${WRKSRC}/extract/dtds/Makefile.in

.include <bsd.port.post.mk>