aboutsummaryrefslogtreecommitdiffstats
path: root/shells/bash3/Makefile
blob: cf82560c341f7f1191d9b96fc19c99f1b15cc800 (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
65
66
67
68
69
70
71
72
73
74
75
76
77
# New ports collection makefile for:    bash3
# Date created:             30 Jul 2004
# Whom:                 Oliver Eikemeier
#
# $FreeBSD$
#

PORTNAME=       bash
PORTVERSION=        3.0
CATEGORIES=     shells
MASTER_SITES=       ${MASTER_SITE_GNU} \
            ftp://ftp.cwru.edu/pub/%SUBDIR%/
MASTER_SITE_SUBDIR= bash

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)
PORTDOCS=       CHANGES COMPAT NEWS POSIX RBASH
.endif

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-separate-helpfiles
PLIST_SUB+=     HELP=""
.endif

.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| /bin| ${PREFIX}/bin|g" ${WRKSRC}/doc/bash.1

pre-install:
    @${SETENV} PKG_PREFIX="${PREFIX}" PKG_DESTDIR="${DESTDIR}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL; \

post-install:
.if !defined(NOPORTDOCS)
    @${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.mk>