aboutsummaryrefslogtreecommitdiff
path: root/shells/esh/Makefile
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2012-12-17 03:33:56 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2012-12-17 03:33:56 +0000
commit84fb9b518055d94169aae99d820216f5ac4421e7 (patch)
treeffecabcdc6419f8c07a63a1ee716b60215aa456b /shells/esh/Makefile
parent7ad795303f93c0ff24554d78dfe8e529376c242f (diff)
downloadports-84fb9b518055d94169aae99d820216f5ac4421e7.tar.gz
ports-84fb9b518055d94169aae99d820216f5ac4421e7.zip
Notes
Diffstat (limited to 'shells/esh/Makefile')
-rw-r--r--shells/esh/Makefile26
1 files changed, 16 insertions, 10 deletions
diff --git a/shells/esh/Makefile b/shells/esh/Makefile
index 536834ae4ae1..acd1472bf65e 100644
--- a/shells/esh/Makefile
+++ b/shells/esh/Makefile
@@ -1,23 +1,29 @@
-# Ports collection Makefile for: esh
-# Date created: 05/20/1999
-# Whom: nectar@FreeBSD.org
-#
+# Created by: nectar@FreeBSD.org
# $FreeBSD$
-#
PORTNAME= esh
PORTVERSION= 0.8.5
CATEGORIES= shells
-MASTER_SITES= http://gd.tuwien.ac.at/opsys/linux/gentoo/distfiles/ \
- http://people.FreeBSD.org/~foxfair/distfiles/
+MASTER_SITES= GENTOO/distfiles
MAINTAINER= ports@FreeBSD.org
COMMENT= The "easy shell", a small shell with Lisp-like syntax
-WRKSRC= ${WRKDIR}/esh
-MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS} -I/usr/include/readline"
+LICENSE= GPLv2
+
+WRKSRC= ${WRKDIR}/${PORTNAME}
+
+USE_READLINE= yes
+MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
+MAKE_JOBS_SAFE= yes
+
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)
@@ -28,6 +34,6 @@ do-install:
@(${GREP} -v ${PREFIX}/bin/esh /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/esh) > /etc/shells
@${RM} /etc/shells.bak
- ${INSTALL_DATA} ${WRKSRC}/doc/esh.info ${PREFIX}/info/esh.info
+ ${INSTALL_DATA} ${WRKSRC}/doc/esh.info ${PREFIX}/${INFO_PATH}
.include <bsd.port.mk>