git: 20c44243c483 - main - misc/mc{,-nox11}: slightly improve the ports' Makefiles (+)
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 10 Aug 2022 11:20:30 UTC
The branch main has been updated by danfe: URL: https://cgit.FreeBSD.org/ports/commit/?id=20c44243c483cda921aba0a776c90ab3f3a284b0 commit 20c44243c483cda921aba0a776c90ab3f3a284b0 Author: Alexey Dokuchaev <danfe@FreeBSD.org> AuthorDate: 2022-08-10 11:19:00 +0000 Commit: Alexey Dokuchaev <danfe@FreeBSD.org> CommitDate: 2022-08-10 11:19:00 +0000 misc/mc{,-nox11}: slightly improve the ports' Makefiles (+) - Do not globally pollute -I/-L with ${LOCALBASE} when handling the NLS option and pass it as the --with-libintl-prefix instead - Drop no longer supported --with-slang-includes configure switch, correct paths are obtained via pkgconf(1) these days - Set PKGNAMESUFFIX together with CONFLICTS_INSTALL in the master so they are always coherent (previously, when the main port is built with X11 option unset it would conflict with itself) --- misc/mc-nox11/Makefile | 1 - misc/mc/Makefile | 11 +++++------ 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/misc/mc-nox11/Makefile b/misc/mc-nox11/Makefile index 1a74dea58767..6f1710a2814a 100644 --- a/misc/mc-nox11/Makefile +++ b/misc/mc-nox11/Makefile @@ -1,5 +1,4 @@ MASTERDIR= ${.CURDIR}/../mc -PKGNAMESUFFIX= -nox11 OPTIONS_EXCLUDE= X11 .include "${MASTERDIR}/Makefile" diff --git a/misc/mc/Makefile b/misc/mc/Makefile index 5e3d88d214c6..1bee416199cd 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -53,16 +53,15 @@ ICONV_CONFIGURE_ENABLE= charset NCURSES_CONFIGURE_ON= --with-screen=ncurses NCURSES_CFLAGS+= -DNCURSES_WIDECHAR -NLS_CONFIGURE_ENABLE= nls +NLS_CONFIGURE_ON= --with-libintl-prefix=${LOCALBASE} +NLS_CONFIGURE_OFF= --disable-nls NLS_USES= gettext -NLS_CPPFLAGS= -I${LOCALBASE}/include -NLS_LDFLAGS= -L${LOCALBASE}/lib SFTP_LIB_DEPENDS= libssh2.so:security/libssh2 SFTP_CONFIGURE_ENABLE= vfs-sftp SLANG_LIB_DEPENDS= libslang.so:devel/libslang2 -SLANG_CONFIGURE_ON= --with-screen=slang --with-slang-includes=${LOCALBASE}/include +SLANG_CONFIGURE_ON= --with-screen=slang SUBSHELL_CONFIGURE_WITH=subshell SUBSHELL_SUB_FILES= pkg-message @@ -70,8 +69,8 @@ SUBSHELL_SUB_FILES= pkg-message X11_CONFIGURE_WITH= x X11_USES= xorg X11_USE= xorg=x11,xext -X11_VARS= CONFLICTS_INSTALL+="mc-nox11" -X11_VARS_OFF= CONFLICTS_INSTALL+="mc" +X11_VARS= CONFLICTS_INSTALL=mc-nox11 +X11_VARS_OFF= CONFLICTS_INSTALL=mc PKGNAMESUFFIX=-nox11 post-patch: @${REINPLACE_CMD} -e 's|clang||' ${WRKSRC}/configure