59 lines
1.4 KiB
Makefile
59 lines
1.4 KiB
Makefile
COMMENT = friendly interactive shell
|
|
|
|
V = 3.4.1
|
|
DISTNAME = fish-$V
|
|
|
|
CATEGORIES = shells
|
|
|
|
MAINTAINER = Solene Rapenne <solene@perso.pw>
|
|
|
|
HOMEPAGE = https://fishshell.com/
|
|
|
|
# GPLv2 only
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
EXTRACT_SUFX = .tar.xz
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} c curses intl m pcre2-32
|
|
|
|
MASTER_SITES = https://github.com/fish-shell/fish-shell/releases/download/${V}/
|
|
|
|
# C++11
|
|
COMPILER = base-clang ports-gcc base-gcc
|
|
|
|
MODULES = devel/cmake \
|
|
lang/python
|
|
|
|
BUILD_DEPENDS = devel/gettext,-tools \
|
|
textproc/py-sphinx,python3>=4.0.2
|
|
|
|
LIB_DEPENDS = devel/pcre2 \
|
|
devel/gettext,-runtime
|
|
|
|
RUN_DEPENDS = devel/desktop-file-utils \
|
|
misc/gnugetopt
|
|
|
|
MODPY_ADJ_FILES = share/tools/create_manpage_completions.py \
|
|
share/tools/deroff.py \
|
|
share/tools/web_config/webconfig.py
|
|
|
|
MAKE_FLAGS = V=1
|
|
|
|
CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE}/include" \
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
PORTHOME = ${WRKDIR}
|
|
|
|
post-install:
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
|
${PREFIX}/share/fish/tools/deroff.py
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
|
${PREFIX}/share/fish/tools/create_manpage_completions.py
|
|
${MODPY_BIN} ${MODPY_LIBDIR}/compileall.py \
|
|
${PREFIX}/share/fish/tools/web_config/webconfig.py
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/fish
|
|
mv ${PREFIX}/etc/fish/config.fish ${PREFIX}/share/examples/fish/
|
|
rm -Rf ${PREFIX}/etc/
|
|
|
|
.include <bsd.port.mk>
|