openbsd-ports/misc/mc/Makefile
fcambus 6bfc45313b Add debug package for mc.
Discussed with robert@
2019-12-05 14:50:55 +00:00

52 lines
1.2 KiB
Makefile

# $OpenBSD: Makefile,v 1.69 2019/12/05 14:50:55 fcambus Exp $
COMMENT= free Norton Commander clone with many useful features
DISTNAME= mc-4.8.23
CATEGORIES= misc
REVISION= 1
HOMEPAGE= https://www.midnight-commander.org/
MASTER_SITES= ${HOMEPAGE}downloads/
MAINTAINER= Robert Nagy <robert@openbsd.org>
EXTRACT_SUFX= .tar.xz
# GPLv3+
PERMIT_PACKAGE= Yes
WANTLIB += c curses iconv intl m pthread glib-2.0 gmodule-2.0 slang
WANTLIB += crypto ssl z ssh2 util
SEPARATE_BUILD= Yes
USE_GMAKE= Yes
LIB_DEPENDS= devel/glib2 \
devel/libslang \
security/libssh2
RUN_DEPENDS= archivers/unzip \
archivers/zip \
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
DEBUG_PACKAGES= ${BUILD_PACKAGES}
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>