aboutsummaryrefslogtreecommitdiffstats
path: root/shells/mksh/Makefile
blob: 48b6b58bd433a7fcd4f33a28e9ec83aeb4e52347 (plain) (blame)
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
# Created by: Andreas Kohn <andreas@syndrom23.de>
# $FreeBSD$

PORTNAME=   mksh
DISTVERSION=    R48b
CATEGORIES= shells
MASTER_SITES=   http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
        http://pub.allbsd.org/MirOS/dist/mir/mksh/
DISTFILES=  ${PORTNAME}-${DISTVERSION}.tgz

MAINTAINER= miwi@FreeBSD.org
COMMENT=    MirBSD enhanced shell based on pdksh

WRKSRC=     ${WRKDIR}/${PORTNAME}

.include <bsd.port.options.mk>

do-build:
    cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} SHELL=${SH} ${SH} ${WRKSRC}/Build.sh -r -c lto

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mksh ${STAGEDIR}${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/mksh.1 ${STAGEDIR}${MANPREFIX}/man/man1
.if ${PORT_OPTIONS:MEXAMPLES}
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${STAGEDIR}${EXAMPLESDIR}
.endif

.include <bsd.port.mk>