aboutsummaryrefslogtreecommitdiff
path: root/textproc/xmlcatmgr/Makefile
blob: d343c55073f3ea80cf3b0c2ac757fa7f9cc87242 (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
# Ports collection makefile for:  xmlcatmgr
# Date created:			  Sat May 24, 2003
# Whom:				  Hiroki Sato <hrs@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	xmlcatmgr
PORTVERSION=	2.2
CATEGORIES=	textproc
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	${PORTNAME}

MAINTAINER=	hrs@FreeBSD.org
COMMENT=	SGML and XML catalog manager

MAN1=		xmlcatmgr.1

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=		DEFAULT_CATALOG_SGML=${CATALOG_PORTS_SGML} \
			DEFAULT_CATALOG_XML=${CATALOG_PORTS_XML}
.if defined(NOPORTDOCS)
CONFIGURE_ARGS+=	--disable-docs
.endif
PKGINSTALL=		${WRKDIR}/pkg-install.sh
PKGDEINSTALL=		${WRKDIR}/pkg-deinstall.sh

COMMONVARS=		${WRKDIR}/commonvars.sh
XMLCATMGR?=		${PREFIX}/bin/xmlcatmgr
CATALOG_MASTER_SGML?=	${PREFIX}/share/sgml/catalog
CATALOG_PORTS_SGML?=	${PREFIX}/share/sgml/catalog.ports
CATALOG_MASTER_XML?=	${PREFIX}/share/xml/catalog
CATALOG_PORTS_XML?=	${PREFIX}/share/xml/catalog.ports

post-build:
	( ${ECHO} '#!/bin/sh'; \
	${ECHO} 'PATH=$${PATH}:/bin:/usr/bin:${LOCALBASE}/bin:${X11BASE}/bin'; \
	${ECHO} 'export PATH;'; \
	) > ${COMMONVARS}
.for V in XMLCATMGR CATALOG_MASTER_SGML CATALOG_MASTER_XML CATALOG_PORTS_SGML CATALOG_PORTS_XML
	${ECHO} '${V}=${${V}}' >> ${COMMONVARS}
.endfor
	${CAT} ${COMMONVARS} ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
	${CAT} ${COMMONVARS} ${FILESDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
	${CHMOD} 0555 ${PKGINSTALL} ${PKGDEINSTALL}

post-install:
	@${PKGINSTALL} ${PKGNAME} POST-INSTALL
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>