summaryrefslogtreecommitdiff
path: root/textproc/scrollkeeper/Makefile
blob: 7b4a6649d271593116df2c57a1e4f7d3ad08fa5a (plain)
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
# $NetBSD: Makefile,v 1.22 2004/03/07 11:50:18 jmmv Exp $
#

DISTNAME=		scrollkeeper-0.3.14
PKGREVISION=		2
CATEGORIES=		textproc
MASTER_SITES=		${MASTER_SITE_SOURCEFORGE:=scrollkeeper/}	\
			${MASTER_SITE_GNOME:=sources/scrollkeeper/0.3/}

MAINTAINER=		tech-pkg@NetBSD.org
HOMEPAGE=		http://scrollkeeper.sourceforge.net/
COMMENT=		Open Document Cataloging Project

BUILD_USES_MSGFMT=	yes
DEPENDS=		docbook-xml>=4.2:../../textproc/docbook-xml

GNU_CONFIGURE=		yes
USE_BUILDLINK3=		yes
USE_GNU_TOOLS+=		make
USE_LIBTOOL=		yes
USE_PKGINSTALL=		yes
USE_PKGLOCALEDIR=	yes

CONFIGURE_ARGS= 	--localstatedir=${SCROLLKEEPER_DATADIR}
CONFIGURE_ARGS+=	--sharedstatedir=${SCROLLKEEPER_DATADIR}
CONFIGURE_ARGS+= 	--sysconfdir=${PKG_SYSCONFDIR}
CONFIGURE_ARGS+= 	--with-partial-db-dir=db
CONFIGURE_ARGS+= 	--with-xml-catalog=${BUILDLINK_PREFIX.xmlcatmgr}/share/xml/catalog

.include "../../mk/bsd.prefs.mk"

.if ${LOCALBASE} == ${X11PREFIX}
CONFIGURE_ARGS+=	--with-omfdirs=${PREFIX}/share/omf
.else
CONFIGURE_ARGS+=	--with-omfdirs=${LOCALBASE}/share/omf:${X11PREFIX}/share/omf
.endif

INSTALL_EXTRA_TMPL+=	${.CURDIR}/INSTALL
DEINSTALL_EXTRA_TMPL+=	${.CURDIR}/INSTALL

SCROLLKEEPER_DATADIR=	${PREFIX}/libdata/scrollkeeper
SCROLLKEEPER_REBUILDDB=	${PREFIX}/bin/scrollkeeper-rebuilddb
FILES_SUBST+=		SCROLLKEEPER_DATADIR="${SCROLLKEEPER_DATADIR}"
FILES_SUBST+=		SCROLLKEEPER_REBUILDDB="${SCROLLKEEPER_REBUILDDB}"

EGDIR=		${PREFIX}/share/examples/scrollkeeper
CONF_FILES=	${EGDIR}/scrollkeeper.conf ${PKG_SYSCONFDIR}/scrollkeeper.conf

XML_CATALOGS=	${PREFIX}/share/xml/scrollkeeper/dtds/scrollkeeper-cl.dtd
XML_CATALOGS+=	${PREFIX}/share/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../textproc/libxml2/buildlink3.mk"
.include "../../textproc/libxslt/buildlink3.mk"
.include "../../textproc/intltool/buildlink3.mk"
.include "../../textproc/xmlcatmgr/buildlink3.mk"

.include "../../mk/bsd.pkg.mk"