summaryrefslogtreecommitdiff
path: root/devel/libwhisker2/Makefile
blob: a23360fa0a7ffed53b6f206eb864ada22774c984 (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
# $NetBSD: Makefile,v 1.13 2016/07/09 06:38:10 wiz Exp $

DISTNAME=	libwhisker2-2.5
PKGREVISION=	3
CATEGORIES=	devel
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=whisker/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://sourceforge.net/projects/whisker/
COMMENT=	Perl module geared specifically for HTTP testing
LICENSE=	2-clause-bsd

DEPENDS+=	p5-Net-SSLeay>=1.20:../../security/p5-Net-SSLeay

USE_TOOLS+=	perl:run
REPLACE_PERL=	scripts/api_demo.pl scripts/crawl_demo.pl \
		scripts/simple_demo.pl scripts/form_demo1.pl \
		scripts/form_demo2.pl scripts/prox.pl

INSTALLATION_DIRS+=	libdata/${PKGBASE} share/doc/${PKGBASE}
INSTALLATION_DIRS+=	share/examples/${PKGBASE}

do-build:
	cd ${WRKSRC} && ${PERL5} Makefile.pl lib

do-install:
	${INSTALL_DATA} ${WRKSRC}/docs/*.txt \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/docs/*.gif \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/KNOWNBUGS \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/README \
		${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
	${INSTALL_DATA} ${WRKSRC}/LW2.pm \
		${DESTDIR}${PREFIX}/libdata/${PKGBASE}

.	for f in ${REPLACE_PERL}
		${INSTALL_SCRIPT} ${WRKSRC}/${f} \
			${DESTDIR}${PREFIX}/share/examples/${PKGBASE}
.	endfor

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