ports/shells/bash-completion/Makefile
Tijl Coosemans 624b8729fc Mk/bsd.commands.mk: Use absolute path to define GMAKE
Same as BSDMAKE variable.  It is needed by some ports.

Some ports needed fixes:
- devel/rcs57: Regenerate configure with newer autoconf so it can deal
  with MAKE set to an absolute path.  While here fix issues with
  (un)escaping double quotes.  The warnings about this were in
  WRKSRC/src/conf.err.
- lang/gnu-cobol: Patch configure.ac so the MAKE environment variable
  can contain an absolute path, and define MAKE before it is used in
  AM_INIT_AUTOMAKE.  Remove post-patch patching of configure.  It appears
  to have been fixed upstream.
- math/unuran: Remove post-patch, fixed upstream.
- net-mgmt/kismet: Fix post-patch.

PR:		283534
Exp-run by:	antoine
2024-12-29 12:34:56 +01:00

60 lines
1.7 KiB
Makefile

PORTNAME= bash-completion
PORTVERSION= 2.14.0
PORTEPOCH= 2
CATEGORIES= shells
MASTER_SITES= https://github.com/scop/bash-completion/releases/download/${PORTVERSION}/
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Programmable completion library for Bash
WWW= https://github.com/scop/bash-completion
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
TEST_DEPENDS= runtest:misc/dejagnu \
${LOCALBASE}/lib/tcllib/cmdline/cmdline.tcl:devel/tcllib
USES= autoreconf gmake pathfix tar:xz
GNU_CONFIGURE= yes
NO_ARCH= yes
SUB_FILES= pkg-message
SUB_LIST= RUNFILE=${DATADIR}/bash_completion.sh
PORTSCOUT= limit:^[0-9\.]*$$
OPTIONS_DEFINE= CMAKE_MODULES FREEBSD
OPTIONS_SINGLE= BASH
OPTIONS_SINGLE_BASH= BASH_SHARED BASH_STATIC
OPTIONS_DEFAULT=BASH_SHARED CMAKE_MODULES FREEBSD
OPTIONS_SUB= yes
BASH_SHARED_DESC= Use shells/bash as backend
BASH_STATIC_DESC= Use shells/bash-static as backend
CMAKE_MODULES_DESC= Install bash-completion modules for cmake
FREEBSD_DESC= Add FreeBSD-specific completion
BASH_SHARED_RUN_DEPENDS=bash:shells/bash
BASH_STATIC_RUN_DEPENDS=bash:shells/bash-static
FREEBSD_RUN_DEPENDS= bash-completion-freebsd>=0:shells/bash-completion-freebsd
post-configure:
@${REINPLACE_CMD} \
-e 's|/etc/ssl/openssl.cnf|${PREFIX}& &|g' \
-e 's|/usr/lib\(/aspell\)|${PREFIX}/share\1|g' \
-e 's|/usr/local|${PREFIX}|g' \
-e 's|/usr/ports|${PORTSDIR}|g' \
-e 's|/usr\(/sbin/postconf\)|${PREFIX}\1|g' \
-e 's|/usr/share/info|&:${PREFIX}/info|g' \
-e 's|/var\(/lib/rpm/macros\)|${PREFIX}\1|g' \
${WRKSRC}/completions/*
post-install:
${RM} ${STAGEDIR}${DATADIR}/completions/makepkg
do-test:
.for test in runCompletion runInstall runUnit
-cd ${WRKSRC}/test && bash ${test}
.endfor
.include <bsd.port.mk>