49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
COMMENT= free Norton Commander clone with many useful features
|
|
|
|
DISTNAME= mc-4.8.28
|
|
REVISION= 0
|
|
CATEGORIES= misc
|
|
|
|
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 -exec chmod ${SHAREMODE} {} + -o \
|
|
-type d -exec chmod ${DIRMODE} {} +
|
|
|
|
.include <bsd.port.mk>
|