openbsd-ports/misc/mc/Makefile

49 lines
1.2 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.61 2016/11/02 06:46:20 kirby Exp $
COMMENT= free Norton Commander clone with many useful features
2000-03-22 19:58:12 +00:00
DISTNAME= mc-4.8.18
CATEGORIES= misc
HOMEPAGE= http://www.midnight-commander.org/
MASTER_SITES= ${HOMEPAGE}downloads/
MAINTAINER= Robert Nagy <robert@openbsd.org>
EXTRACT_SUFX= .tar.xz
2011-08-23 08:28:42 +00:00
# GPLv2
2000-03-22 19:58:12 +00:00
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c iconv intl m pcre pthread termcap glib-2.0 gmodule-2.0 slang
2014-09-11 09:58:34 +00:00
WANTLIB += crypto ssl z ssh2
USE_GMAKE= Yes
2014-09-11 09:58:34 +00:00
BUILD_DEPENDS= security/libssh2
2010-11-19 07:23:05 +00:00
LIB_DEPENDS= devel/glib2 \
devel/libslang
RUN_DEPENDS= archivers/unzip \
2014-09-11 09:58:34 +00:00
archivers/zip \
security/libssh2 \
textproc/gdiff
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS+= --with-subshell \
--enable-vfs-sftp \
--enable-vfs-smb \
2015-11-10 16:59:33 +00:00
--enable-charset \
--with-slang-includes=${LOCALBASE}/include \
CONFIGURE_ENV= LOCALBASE=${LOCALBASE} \
LIBS="-lm"
2004-08-02 16:08:23 +00:00
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>