d6af1d9eaf08723eadbfd27cd08fcd9a7dec6245
[pkgsrc.git] / shells / scsh / Makefile
1 # $NetBSD: Makefile,v 1.39 2008/11/28 11:45:40 obache Exp $
2
3 DISTNAME=               scsh-0.6.7
4 CATEGORIES=             shells lang
5 MASTER_SITES=           http://ftp.scsh.net/pub/scsh/0.6/  \
6                         ${MASTER_SITE_SOURCEFORGE:=scsh/}
7
8 MAINTAINER=     pkgsrc-users@NetBSD.org
9 HOMEPAGE=               http://www.scsh.net/
10 COMMENT=                Unix shell embedded into Scheme, with access to all Posix calls
11
12 NOT_FOR_PLATFORM=       *-*-alpha       # Needs scheme
13
14 GNU_CONFIGURE=          yes
15
16 BUILD_TARGET=           enough
17 TEST_TARGET=            check
18
19 PKG_SHELL=              bin/scsh
20
21 INSTALLATION_DIRS=      share/doc
22
23 # Build references from dumped environment variables is not a problem.
24 CHECK_WRKREF_SKIP+=     lib/scsh/scsh.image
25 CHECK_WRKREF_SKIP+=     lib/scsh/stripped-scsh.image
26
27 post-configure:
28         cd ${WRKSRC}/scsh/bsd; ${SED} -e '/LIBGEN/d' sysdep.h >xx ; ${MV} xx sysdep.h
29
30 post-install:
31         @strip ${PREFIX}/bin/scsh
32         (cd ${WRKSRC} ; \
33          ${INSTALL_DATA} README RELEASE COPYING ${PREFIX}/lib/scsh/doc)
34         ${RM} -f ${PREFIX}/share/doc/scsh
35         ${LN} -fs ${PREFIX}/lib/scsh/doc ${PREFIX}/share/doc/scsh
36
37 .include "../../mk/bsd.pkg.mk"