summaryrefslogtreecommitdiff
path: root/shells/bash3/Makefile
blob: ae6f97ca9ef10bf4a215031660666e3a4f7242ca (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ex:ts=8
# New ports collection makefile for:	bash
# Date created:		21 August 1994
# Whom:			jkh
#
# $FreeBSD$
#

PORTNAME=	bash
PORTVERSION=	2.05b.004
PORTREVISION?=	0
CATEGORIES=	shells
MASTER_SITES=	${MASTER_SITE_GNU} \
		ftp://ftp.cwru.edu/pub/bash/
MASTER_SITE_SUBDIR=	bash
DISTFILES=	bash-${PORTVERSION:C/\....$//}.tar.gz
.if !defined(NOPORTDOCS)
DISTFILES+=	bash-doc-${PORTVERSION:C/\....$//}.tar.gz
.endif

PATCH_SITES=	ftp://ftp.cwru.edu/pub/bash/bash-2.05b-patches/ \
		${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR=	obrien
PATCHFILES=	bash205b-001 bash205b-002 bash205b-003 bash205b-004

MAINTAINER=	obrien@FreeBSD.org
COMMENT=	The GNU Bourne Again Shell

.include <bsd.port.pre.mk>

WRKSRC=		${WRKDIR}/bash-${PORTVERSION:C/\....$//}
GNU_CONFIGURE=	Yes
CONFIGURE_ARGS=	--with-installed-readline
CONFIGURE_ENV=	LDFLAGS=-static
MAN1=		bash.1 bashbug.1

.if defined(WITH_NET_REDIRECTIONS)
CONFIGURE_ARGS+=	--enable-net-redirections
.endif

pre-extract:
.if !defined(WITH_NET_REDIRECTIONS)
	@${ECHO_MSG} "You can enable support for /dev/(tcp|udp)/host/port redirection by defining WITH_NET_REDIRECTIONS."
.endif

post-install:
	${CP} /etc/shells /etc/shells.bak
	(${GREP} -v ${PREFIX}/bin/bash /etc/shells.bak; ${ECHO_CMD} ${PREFIX}/bin/bash) >/etc/shells
	${RM} /etc/shells.bak
.if !defined(NOPORTDOCS)
	${MKDIR} ${DOCSDIR}
	${INSTALL_MAN}  \
		${WRKDIR}/doc/article.ps  \
		${WRKDIR}/doc/bashref.ps  \
		${DOCSDIR}
	${INSTALL_MAN}  \
		${WRKDIR}/doc/article.txt  \
		${DOCSDIR}
	${BZIP2_CMD} -f ${DOCSDIR}/*.ps
.endif

.include <bsd.port.post.mk>

CONFIGURE_TARGET:=	--build=${CONFIGURE_TARGET}