openbsd-ports/misc/mc/Makefile
kirby 8cf748ba3b update to mc-4.8.20
ok robert@, maintainer
2018-01-08 11:35:28 +00:00

49 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.63 2018/01/08 11:35:28 kirby Exp $
COMMENT= free Norton Commander clone with many useful features
DISTNAME= mc-4.8.20
CATEGORIES= misc
HOMEPAGE= https://www.midnight-commander.org/
MASTER_SITES= ${HOMEPAGE}downloads/
MAINTAINER= Robert Nagy <robert@openbsd.org>
EXTRACT_SUFX= .tar.xz
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c curses iconv intl m pcre pthread glib-2.0 gmodule-2.0 slang
WANTLIB += crypto ssl z ssh2
USE_GMAKE= Yes
BUILD_DEPENDS= security/libssh2
LIB_DEPENDS= devel/glib2 \
devel/libslang
RUN_DEPENDS= archivers/unzip \
archivers/zip \
security/libssh2 \
textproc/gdiff
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-subshell \
--enable-vfs-sftp \
--enable-vfs-smb \
--enable-charset \
--with-slang-includes=${LOCALBASE}/include \
CONFIGURE_ENV= LOCALBASE=${LOCALBASE} \
LIBS="-lm"
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
post-install:
@mv ${WRKINST}${SYSCONFDIR}/mc ${PREFIX}/share/examples
@chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/examples/mc
@find ${PREFIX}/share/examples/mc -type f | \
xargs chmod ${SHAREMODE}
@find ${PREFIX}/share/examples/mc -type d | \
xargs chmod ${DIRMODE}
.include <bsd.port.mk>