summaryrefslogtreecommitdiff
path: root/www/haskell-cgi/Makefile
blob: 30dca3f843adb161658d63d5f8a79534517904f2 (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
# $NetBSD: Makefile,v 1.13 2015/11/25 12:54:07 jperkin Exp $

DISTNAME=	haskell-cgi-20001206
CATEGORIES=	www
MASTER_SITES=	${MASTER_SITE_LOCAL}

MAINTAINER=	pkgsrc-users@NetBSD.org
# HOMEPAGE=	http://www.informatik.uni-muenchen.de/~Sven.Panne/haskell_libs/CGI.html
COMMENT=	CGI module for the Hugs Haskell 98 interpreter

DEPENDS+=	hugs98-[0-9]*:../../lang/hugs

NO_SRC_ON_FTP=	Already in MASTER_SITE_LOCAL

NO_BUILD=	yes

INSTALLATION_DIRS=	share/hugs/lib

do-configure:
	@for i in ${WRKSRC}/*; do					  \
	${SED} -e 's:\/soft\/bin\/runhugs:'${LOCALBASE}'/bin/runhugs:g' \
	$$i > $$i.tmp && ${MV} $$i.tmp $$i;				  \
	done

do-install:
	${INSTALL_DATA} ${WRKSRC}/CGI.lhs ${DESTDIR}${PREFIX}/share/hugs/lib
	${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/hugs-cgi
	${INSTALL_DATA} ${WRKSRC}/*.cgi ${DESTDIR}${PREFIX}/share/examples/hugs-cgi
	${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/examples/hugs-cgi
	${INSTALL_DATA} ${WRKSRC}/TODO ${DESTDIR}${PREFIX}/share/examples/hugs-cgi

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