aboutsummaryrefslogtreecommitdiffstats
path: root/shells/bash/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'shells/bash/Makefile')
-rw-r--r--shells/bash/Makefile110
1 files changed, 60 insertions, 50 deletions
diff --git a/shells/bash/Makefile b/shells/bash/Makefile
index 0f3fe1dcbf51..cf82560c341f 100644
--- a/shells/bash/Makefile
+++ b/shells/bash/Makefile
@@ -1,67 +1,77 @@
-# ex:ts=8
-# New ports collection makefile for: bash
-# Date created: 21 August 1994
-# Whom: jkh
+# New ports collection makefile for: bash3
+# Date created: 30 Jul 2004
+# Whom: Oliver Eikemeier
#
# $FreeBSD$
#
-PORTNAME= bash
-PORTVERSION= 2.05b.007
-PORTREVISION?= 1
-CATEGORIES= shells
-MASTER_SITES= ${MASTER_SITE_GNU} \
- ftp://ftp.cwru.edu/pub/bash/
+PORTNAME= bash
+PORTVERSION= 3.0
+CATEGORIES= shells
+MASTER_SITES= ${MASTER_SITE_GNU} \
+ ftp://ftp.cwru.edu/pub/%SUBDIR%/
MASTER_SITE_SUBDIR= bash
-DISTFILES= bash-${PORTVERSION:C/\....$//}.tar.gz
+
+MAINTAINER= eik@FreeBSD.org
+COMMENT= The GNU Project's Bourne Again SHell
+
+CONFLICTS= bash-[0-24-9].*
+LATEST_LINK= ${PKGNAMEPREFIX}bash3${PKGNAMESUFFIX}
+
+USE_REINPLACE= yes
+
+MAN1= bash.1 bashbug.1
+INFO= bash
+
+USE_REINPLACE= yes
+GNU_CONFIGURE= yes
+
.if !defined(NOPORTDOCS)
-DISTFILES+= bash-doc-${PORTVERSION:C/\....$//}.tar.gz
+PORTDOCS= CHANGES COMPAT NEWS POSIX RBASH
.endif
-PATCH_SITES= ${MASTER_SITE_GNU} \
- ftp://ftp.cwru.edu/pub/bash/bash-2.05b-patches/ \
- ${MASTER_SITE_LOCAL}
-PATCH_SITE_SUBDIR= bash/bash-2.05b-patches obrien
-PATCHFILES= bash205b-001 bash205b-002 bash205b-003 bash205b-004 \
- bash205b-005 bash205b-006 bash205b-007
-# msg00029.txt msg00031.txt msg00030.txt
-
-MAINTAINER= obrien@FreeBSD.org
-COMMENT= The GNU Bourne Again Shell
-
-.include <bsd.port.pre.mk>
-
-USE_REINPLACE= yes
-WRKSRC= ${WRKDIR}/bash-${PORTVERSION:C/\....$//}
-GNU_CONFIGURE= Yes
-CONFIGURE_ARGS= --with-installed-readline
-.if defined(WANT_STATIC_BASH) || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ( ${NOSHARED} != "no" && ${NOSHARED} != "NO" ))
-CONFIGURE_ENV= LDFLAGS=-static
+CONFIGURE_ARGS= --without-bash-malloc
+
+.if defined(WITHOUT_HELP)
+CONFIGURE_ARGS+= --disable-help-builtin
+PLIST_SUB+= HELP="@comment "
+.elif defined(WITH_INTEGRATED_HELPFILES)
+PLIST_SUB+= HELP="@comment "
.else
-CONFIGURE_ARGS+= --enable-static-link=no
+CONFIGURE_ARGS+= --enable-separate-helpfiles
+PLIST_SUB+= HELP=""
.endif
-MAN1= bash.1 bashbug.1
+
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.else
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.endif
+
+CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+
+CPPFLAGS+= ${PTHREAD_CFLAGS} \
+ -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
post-patch:
- @${REINPLACE_CMD} -e "s,.FN /bin/bash,.FN ${PREFIX}/bin/bash," \
- ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/doc/bash.1
+ @${REINPLACE_CMD} -e "s| /bin| ${PREFIX}/bin|g" ${WRKSRC}/doc/bash.1
+
+pre-install:
+ @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL; \
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
+ @${MKDIR} ${DOCSDIR}
+ @for d in ${PORTDOCS}; do \
+ ${INSTALL_DATA} ${WRKSRC}/$${d} ${DESTDIR}${DOCSDIR}; \
+ done
.endif
+ @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL; \
-.include <bsd.port.post.mk>
-
-CONFIGURE_TARGET:= --build=${CONFIGURE_TARGET}
+.include <bsd.port.mk>