Changeset View
Changeset View
Standalone View
Standalone View
head/shells/bash/Makefile
# Created by: Oliver Eikemeier | # Created by: Oliver Eikemeier | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= bash | PORTNAME= bash | ||||
PATCHLEVEL= 46 | PORTVERSION= 4.4 | ||||
PORTVERSION= 4.3.${PATCHLEVEL:S/^0//g} | PORTREVISION?= 0 | ||||
PORTREVISION?= 1 | |||||
CATEGORIES= shells | CATEGORIES= shells | ||||
MASTER_SITES= GNU/${PORTNAME} | MASTER_SITES= GNU/${PORTNAME} | ||||
DISTNAME= ${PORTNAME}-${PORTVERSION:R} | |||||
DIST_SUBDIR= ${PORTNAME} | DIST_SUBDIR= ${PORTNAME} | ||||
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} | EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} | ||||
PATCH_SITES= GNU/${PORTNAME}/${DISTNAME}-patches/ \ | |||||
ftp://ftp.cwru.edu/pub/${PORTNAME}/${DISTNAME}-patches/ | |||||
PATCHFILES!= /usr/bin/jot -s " " -w \ | |||||
${PORTNAME}${PORTVERSION:R:S/.//g}-%03d \ | |||||
${PATCHLEVEL} 1 ${PATCHLEVEL} | |||||
MAINTAINER= ehaupt@FreeBSD.org | MAINTAINER= ehaupt@FreeBSD.org | ||||
COMMENT= The GNU Project's Bourne Again SHell | COMMENT= GNU Project's Bourne Again SHell | ||||
LICENSE= GPLv3 | LICENSE= GPLv3 | ||||
OPTIONS_DEFINE= IMPLICITCD COLONBREAKSWORDS HELP NLS STATIC SYSLOG DOCS | OPTIONS_DEFINE= COLONBREAKSWORDS HELP NLS STATIC SYSLOG DOCS | ||||
OPTIONS_DEFINE+= IMPORTFUNCTIONS | |||||
OPTIONS_DEFAULT= IMPLICITCD COLONBREAKSWORDS HELP | |||||
IMPLICITCD_DESC= Use directory name alone to cd into it | |||||
COLONBREAKSWORDS_DESC= Colons break words | COLONBREAKSWORDS_DESC= Colons break words | ||||
HELP_DESC= Enable builtin help | HELP_DESC= Enable builtin help | ||||
IMPORTFUNCTIONS_DESC= Import function from env without --import-functions | |||||
USES= bison cpe iconv makeinfo | OPTIONS_DEFAULT= COLONBREAKSWORDS HELP | ||||
USES= bison cpe iconv makeinfo pathfix | |||||
GNU_CONFIGURE= yes | |||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
CPE_VENDOR= gnu | CPE_VENDOR= gnu | ||||
IMPLICITCD_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-implicitcd | |||||
COLONBREAKSWORDS_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-colonbreakswords | COLONBREAKSWORDS_EXTRA_PATCHES= ${PATCHDIR}/extrapatch-colonbreakswords | ||||
# Always apply this for now. The option will modify the default. | |||||
EXTRA_PATCHES+= ${PATCHDIR}/extrapatch-import-functions | |||||
HELP_CONFIGURE_ENABLE= help-builtin | HELP_CONFIGURE_ENABLE= help-builtin | ||||
NLS_CONFIGURE_ENABLE= nls | NLS_CONFIGURE_ENABLE= nls | ||||
NLS_USES= gettext | NLS_USES= gettext | ||||
INFO= bash | INFO= bash | ||||
GNU_CONFIGURE= yes | |||||
PORTDOCS= FAQ INTRO CHANGES COMPAT NEWS POSIX RBASH README \ | PORTDOCS= FAQ INTRO CHANGES COMPAT NEWS POSIX RBASH README \ | ||||
bash.html bashref.html | bash.html bashref.html | ||||
CONFIGURE_ARGS+= --without-bash-malloc \ | CONFIGURE_ARGS+= --without-bash-malloc \ | ||||
--disable-rpath \ | --disable-rpath \ | ||||
--enable-disabled-builtins \ | --enable-disabled-builtins \ | ||||
--with-libiconv-prefix=${ICONV_PREFIX} | --with-libiconv-prefix=${ICONV_PREFIX} | ||||
CFLAGS+= -DUSE_MKTEMP=1 -DUSE_MKSTEMP=1 | |||||
.if empty(PKGNAMESUFFIX) | .if empty(PKGNAMESUFFIX) | ||||
CONFLICTS+= bash-static-[0-9]* | CONFLICTS+= bash-static-[0-9]* | ||||
.else | .else | ||||
CONFLICTS+= bash-[0-9]* | CONFLICTS+= bash-[0-9]* | ||||
.endif | .endif | ||||
.include <bsd.port.options.mk> | .include <bsd.port.options.mk> | ||||
.if ${PORT_OPTIONS:MIMPORTFUNCTIONS} | |||||
CFLAGS+= -DIMPORT_FUNCTIONS_DEF=1 | |||||
.else | |||||
CFLAGS+= -DIMPORT_FUNCTIONS_DEF=0 | |||||
.endif | |||||
.if ${PORT_OPTIONS:MSTATIC} || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ${NOSHARED:tl} != "no") | .if ${PORT_OPTIONS:MSTATIC} || defined(NO_DYNAMICROOT) || (defined(NOSHARED) && ${NOSHARED:tl} != "no") | ||||
CONFIGURE_ARGS+= --enable-static-link | CONFIGURE_ARGS+= --enable-static-link | ||||
.else | .else | ||||
CONFIGURE_ARGS+= --disable-static-link | CONFIGURE_ARGS+= --disable-static-link | ||||
# Bash symbols must be exported in order to link runtime plugins, i.e., | # Bash symbols must be exported in order to link runtime plugins, i.e., | ||||
# "enable -f". (Plugins are not supported for bash-static.) | # "enable -f". (Plugins are not supported for bash-static.) | ||||
CFLAGS+= -Wl,-export-dynamic | CFLAGS+= -Wl,-export-dynamic | ||||
.endif | .endif | ||||
Show All 31 Lines | |||||
ckp: | ckp: | ||||
${MAKE} -DPATCH_DEBUG clean patch | ${MAKE} -DPATCH_DEBUG clean patch | ||||
# requires ftp/ncftp3 | # requires ftp/ncftp3 | ||||
cklatest: | cklatest: | ||||
@${ECHO} -n "Currently at: " | @${ECHO} -n "Currently at: " | ||||
@${MAKE} -V PATCHLEVEL | @${MAKE} -V PATCHLEVEL | ||||
-ncftpls \ | -ncftpls \ | ||||
ftp://ftp.gnu.org/gnu/${PORTNAME}/${PORTNAME}-${PORTVERSION:C/\.[0-9a-z]*$//}-patches/ \ | ftp://ftp.gnu.org/gnu/${PORTNAME}/${PORTNAME}-${PORTVERSION}-patches/ \ | ||||
| fgrep -v .sig | ${TAIL} | | fgrep -v .sig | ${TAIL} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |