aboutsummaryrefslogtreecommitdiffstats
path: root/shells/esh/Makefile
blob: 6af15a4e7d6eb8f385c1cee771e74d6f6bda3967 (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
# Created by: nectar@FreeBSD.org
# $FreeBSD$

PORTNAME=   esh
PORTVERSION=    0.8.5
CATEGORIES= shells
MASTER_SITES=   GENTOO/distfiles

MAINTAINER= ports@FreeBSD.org
COMMENT=    The "easy shell", a small shell with Lisp-like syntax

LICENSE=    GPLv2

WRKSRC=     ${WRKDIR}/${PORTNAME}

USES=       readline
MAKE_ARGS=  CC="${CC}" CFLAGS="${CFLAGS} ${CPPFLAGS}"

INFO=       esh

post-patch:
    @${REINPLACE_CMD} -e \
        's|<readline.h>|<readline/readline.h>| ; \
        s|<history.h>|<readline/history.h>|' ${WRKSRC}/read-rl.c

pre-build:
    @(cd ${WRKSRC} && ${MAKE} clean)

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/esh ${STAGEDIR}${PREFIX}/bin/esh
    ${INSTALL_DATA} ${WRKSRC}/doc/esh.info ${STAGEDIR}${PREFIX}/${INFO_PATH}

.include <bsd.port.mk>