aboutsummaryrefslogtreecommitdiffstats
path: root/shells/ibsh/Makefile
blob: fc2ef1d9d315a6fb43e84e7ba704d452f9ed220c (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
# Created by: Vaida Bogdan
# $FreeBSD$

PORTNAME=   ibsh
PORTVERSION=    0.3e
CATEGORIES= shells
MASTER_SITES=   SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}

MAINTAINER= ports@FreeBSD.org
COMMENT=    Restricted unix shell

LICENSE=    GPLv2+
LICENSE_FILE=   ${WRKSRC}/COPYING

USES=       dos2unix gmake
ALL_TARGET= ibsh
INSTALL_TARGET= ibsh_install
MAKE_ARGS=  CC="${CC}" PREFIX="${STAGEDIR}${PREFIX}"

SUB_FILES=  pkg-message
PORTDOCS=   AUTHORS BUGS CONTRIBUTORS COPYING COPYRIGHT ChangeLog \
        INSTALL README TODO VERSION

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's|PATH_MAX|PATH_MAXb|g' ${WRKSRC}/delbadfiles.c ${WRKSRC}/ibsh.h
    @${REINPLACE_CMD} -e 's|/etc/ibsh|${PREFIX}/etc/ibsh|g' ${WRKSRC}/ibsh.h

post-install:
    @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/ibsh

post-install-DOCS-on:
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>