2011-03-09 04:31:46 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.39 2011/03/09 09:31:46 robert Exp $
|
2001-05-05 22:29:37 -04:00
|
|
|
|
2010-01-01 14:21:05 -05:00
|
|
|
COMMENT= free Norton Commander clone with many useful features
|
2000-03-22 14:58:12 -05:00
|
|
|
|
2011-03-09 04:31:46 -05:00
|
|
|
DISTNAME= mc-4.7.5.1
|
2010-01-01 14:21:05 -05:00
|
|
|
CATEGORIES= misc
|
2000-02-02 21:11:32 -05:00
|
|
|
|
2010-01-01 14:21:05 -05:00
|
|
|
HOMEPAGE= http://www.midnight-commander.org/
|
2010-03-28 14:28:47 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}downloads/
|
2010-01-01 14:21:05 -05:00
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
2001-03-05 01:36:08 -05:00
|
|
|
|
2010-01-17 13:42:08 -05:00
|
|
|
# GPLv2
|
2000-03-22 14:58:12 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
2006-10-25 09:06:58 -04:00
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
2000-03-22 14:58:12 -05:00
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2010-11-05 04:24:49 -04:00
|
|
|
WANTLIB += c m pcre pthread termcap glib-2.0 gmodule-2.0 slang
|
2000-04-28 19:33:16 -04:00
|
|
|
|
2010-01-01 14:21:05 -05:00
|
|
|
USE_GMAKE= Yes
|
2010-11-05 04:24:49 -04:00
|
|
|
USE_GROFF= Yes
|
2010-01-01 14:21:05 -05:00
|
|
|
|
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.endif
|
|
|
|
|
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2010-11-19 02:23:05 -05:00
|
|
|
LIB_DEPENDS= devel/glib2 \
|
|
|
|
devel/libslang
|
|
|
|
RUN_DEPENDS= archivers/unzip \
|
|
|
|
archivers/zip
|
2010-01-01 14:21:05 -05:00
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= --with-confdir=${SYSCONFDIR}/mc \
|
|
|
|
--with-screeen=slang \
|
|
|
|
--with-subshell \
|
|
|
|
--with-vfs \
|
|
|
|
--with-samba \
|
|
|
|
--enable-charset
|
|
|
|
CONFIGURE_ENV= LOCALBASE=${LOCALBASE} \
|
|
|
|
LIBS="-lm"
|
2004-08-02 12:08:23 -04:00
|
|
|
MODGNU_CONFIG_GUESS_DIRS=${WRKSRC}/config
|
2010-01-01 14:21:05 -05:00
|
|
|
|
|
|
|
post-install:
|
2010-03-28 14:28:47 -04:00
|
|
|
@mv ${WRKINST}${SYSCONFDIR}/mc ${PREFIX}/share/examples
|
2010-01-01 14:21:05 -05:00
|
|
|
@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}
|
2006-10-25 09:06:58 -04:00
|
|
|
|
2000-02-02 21:11:32 -05:00
|
|
|
.include <bsd.port.mk>
|