aboutsummaryrefslogtreecommitdiffstats
path: root/shells/mksh/Makefile
blob: f4355b7643d570cd40e978e3f7def224c5ea771b (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
30
31
32
33
34
35
36
37
38
# Created by: Andreas Kohn <andreas@syndrom23.de>
# $FreeBSD$

PORTNAME=   mksh
PORTVERSION=    56
PORTREVISION=   1
DISTVERSIONPREFIX=  R
CATEGORIES= shells
MASTER_SITES=   http://www.mirbsd.org/MirOS/dist/mir/mksh/ \
        http://pub.allbsd.org/MirOS/dist/mir/mksh/

MAINTAINER= schaiba@gmail.com
COMMENT=    MirBSD Korn Shell

LICENSE=    ISCL ML
LICENSE_COMB=   multi
LICENSE_GROUPS_ML=  OSI
LICENSE_NAME_ML=    MirOS
LICENSE_TEXT_ML=    Please, read its contents from http://www.mirbsd.org/TaC-mksh.txt
LICENSE_PERMS_ML=   dist-mirror dist-sell pkg-mirror pkg-sell auto-accept

USES=       tar:tgz
WRKSRC=     ${WRKDIR}/${PORTNAME}

OPTIONS_DEFINE= EXAMPLES

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

do-install-EXAMPLES-on:
    ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_DATA} ${WRKSRC}/dot.mkshrc ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>