summaryrefslogtreecommitdiff
path: root/devel/isect/Makefile
blob: fce31aa65c43147875b15ce3089ec597cb2b14d6 (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
# $NetBSD: Makefile,v 1.7 2001/06/11 06:34:27 jlam Exp $
#

DISTNAME=	isect-1.0
CATEGORIES=	devel
MASTER_SITES=	ftp://home.netcom.com/pub/users/tgagne/

MAINTAINER=	jlam@netbsd.org
HOMEPAGE=	http://home.netcom.com/~tgagne/
COMMENT=	open source middleware daemon

DEPENDS+=	libwww-5.*:../../www/libwww

GNU_CONFIGURE=	yes
USE_LIBTOOL=	yes
LTCONFIG_OVERRIDE=${WRKSRC}/ltconfig

CPPFLAGS+=	-I${LOCALBASE}/include	# for w3c-libwww/WWWlib.h

DOCDIR=		${PREFIX}/share/doc/isect
EGDIR=		${PREFIX}/share/examples/isect

post-install:
	${INSTALL_DATA_DIR} ${DOCDIR}
	for file in ${WRKSRC}/doc/*.html; do \
		${INSTALL_DATA} $${file} ${DOCDIR}; \
	done

	${INSTALL_DATA_DIR} ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/COPYING ${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/workers/isdecho.c ${EGDIR}

	${SED}	-e "s#@PREFIX@#${PREFIX}#g" \
		-e "s#@ECHO@#${ECHO}#g" \
		${FILESDIR}/isect.sh > ${WRKDIR}/isect.sh
	${INSTALL_SCRIPT} ${WRKDIR}/isect.sh ${PREFIX}/etc/rc.d/isect

	@PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} POST-INSTALL

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