summaryrefslogtreecommitdiff
path: root/devel/isect/Makefile
blob: d66073235dea27cc7e534518b730e9f287157220 (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.5 2001/01/26 05:21:44 hubertf 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/

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

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

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

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"