blob: d8f0df648acbe671fb9cdef5b8ee05ecfa2d6393 (
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
44
45
46
47
48
49
50
51
52
53
54
55
56
|
# $NetBSD: Makefile,v 1.42 2020/08/03 15:33:45 tnn Exp $
DISTNAME= mksh-R59b
PKGNAME= ${DISTNAME:S/-R/-/}
CATEGORIES= shells
MASTER_SITES= # maintained locally
DISTFILES= # empty
MAINTAINER= jperkin@pkgsrc.org
HOMEPAGE= http://mirbsd.de/mksh
COMMENT= MirBSD Korn Shell
LICENSE= miros
BOOTSTRAP_PKG= yes
NO_CHECKSUM= yes
WRKSRC= ${WRKDIR}/mksh
LIBS.Interix+= -lcrypt
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/examples/mksh
.include "../../mk/bsd.prefs.mk"
#
# If mksh is currently in use as the bootstrap shell then do not enable
# PKG_SHELL as it can cause circular problems (its +INSTALL script will
# require the shell itself). This match is deliberate to catch both of
# the prefixes used during bootstrap, we can't simply use LOCALBASE.
#
.if ${TOOLS_PLATFORM.sh:N?*/bin/mksh}
PKG_SHELL= bin/mksh
.endif
do-extract:
${CP} -R ${FILESDIR} ${WRKSRC}
do-build:
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} LIBS=${LIBS:Q} \
${TOOLS_SHELL} ${WRKSRC}/Build.sh -r
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mksh ${DESTDIR}${PREFIX}/bin/mksh
${INSTALL_MAN} ${WRKSRC}/mksh.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${DESTDIR}${PREFIX}/share/examples/mksh/
# For check-portability's double brackets check.
# This should be patched instead.
CHECK_PORTABILITY_SKIP+= Build.sh
# Uncomment this if you want to run the regression tests
#USE_TOOLS+= perl
#do-test:
# ${WRKSRC}/test.sh -v
.include "../../mk/bsd.pkg.mk"
|