1995-07-15 23:43:35 +00:00
|
|
|
# New ports collection makefile for: mc
|
|
|
|
# Date created: 15 Jul 1995
|
1999-08-31 06:53:31 +00:00
|
|
|
# Whom: torstenb@FreeBSD.org
|
1995-07-15 23:43:35 +00:00
|
|
|
#
|
1999-08-25 07:23:21 +00:00
|
|
|
# $FreeBSD$
|
1995-07-15 23:43:35 +00:00
|
|
|
#
|
|
|
|
|
2003-02-09 20:15:46 +00:00
|
|
|
PORTNAME= mc
|
|
|
|
PORTVERSION= 4.6.0
|
2004-02-04 04:36:30 +00:00
|
|
|
PORTREVISION= 7
|
2003-02-09 20:15:46 +00:00
|
|
|
CATEGORIES= misc shells
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= utils/file/managers/mc/
|
1997-06-20 12:22:36 +00:00
|
|
|
|
2002-08-07 19:21:07 +00:00
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
2003-02-18 11:54:56 +00:00
|
|
|
COMMENT= Midnight Commander, a free Norton Commander Clone
|
1995-07-15 23:43:35 +00:00
|
|
|
|
2003-03-05 17:22:54 +00:00
|
|
|
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
|
1999-01-31 18:12:50 +00:00
|
|
|
|
2004-02-04 04:36:30 +00:00
|
|
|
USE_GETTEXT= yes
|
1999-01-31 18:12:50 +00:00
|
|
|
USE_GMAKE= yes
|
2002-08-05 22:06:26 +00:00
|
|
|
USE_REINPLACE= yes
|
2003-12-18 18:48:30 +00:00
|
|
|
USE_GNOME= glib20
|
1999-01-31 18:12:50 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2003-02-09 20:15:46 +00:00
|
|
|
|
2004-02-04 05:25:22 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-10-02 14:28:56 +00:00
|
|
|
.if !defined(WITHOUT_SAMBA)
|
|
|
|
CONFIGURE_ARGS+=--with-samba --with-configdir=${LOCALBASE}/etc \
|
|
|
|
--with-codepagedir=${LOCALBASE}/etc/codepages
|
|
|
|
.endif
|
|
|
|
|
2002-08-07 19:21:07 +00:00
|
|
|
.if !defined(WITHOUT_ICONV)
|
2003-02-09 20:15:46 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-charset
|
|
|
|
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
|
2002-08-11 12:00:46 +00:00
|
|
|
PLIST_SUB= CHARSETS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB= CHARSETS="@comment "
|
|
|
|
.endif
|
2003-02-09 20:15:46 +00:00
|
|
|
|
2003-07-10 10:39:38 +00:00
|
|
|
.if !defined(WITH_X11)
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
|
|
|
.endif
|
|
|
|
|
2003-04-09 15:23:26 +00:00
|
|
|
.if ${ARCH} == "alpha"
|
|
|
|
#
|
|
|
|
# something is wrong with slang on alpha: mc enters an infinite loop
|
|
|
|
# when calling has_colors() during terminal init (colors.c:250)
|
|
|
|
WITHOUT_SLANG= yes
|
|
|
|
.endif
|
|
|
|
|
2003-02-09 20:15:46 +00:00
|
|
|
.if defined(WITHOUT_SLANG)
|
|
|
|
CONFIGURE_ARGS+=--with-screen=ncurses
|
2002-08-11 12:36:24 +00:00
|
|
|
.else
|
2003-02-09 20:15:46 +00:00
|
|
|
CONFIGURE_ARGS+=--with-screen=slang
|
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I ${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-ltermcap -L ${LOCALBASE}/lib"
|
|
|
|
LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
|
2002-08-07 19:21:07 +00:00
|
|
|
.endif
|
2003-02-09 20:15:46 +00:00
|
|
|
|
|
|
|
.if defined(WITHOUT_SUBSHELL)
|
|
|
|
CONFIGURE_ARGS+=--without-subshell
|
2002-08-11 12:00:46 +00:00
|
|
|
.endif
|
2002-08-05 21:26:26 +00:00
|
|
|
|
2003-02-09 20:15:46 +00:00
|
|
|
MAN1= mc.1 mcedit.1 mcview.1
|
2003-08-11 19:11:29 +00:00
|
|
|
_MAN1= mc.1
|
|
|
|
_MANLANG= es hu it pl ru.KOI8-R
|
|
|
|
.for lang in ${_MANLANG}
|
|
|
|
_MANPAGES+= ${_MAN1:S%^%${MAN1PREFIX}/man/${lang}/man1/%}
|
|
|
|
.endfor
|
2003-02-09 20:15:46 +00:00
|
|
|
|
2002-08-05 21:26:26 +00:00
|
|
|
post-patch:
|
2003-02-26 17:06:16 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/zip|${LOCALBASE}/bin/zip|' \
|
2003-02-09 20:15:46 +00:00
|
|
|
-e 's|/usr/bin/unzip|${LOCALBASE}/bin/unzip|' \
|
|
|
|
${WRKSRC}/configure
|
2002-08-05 21:26:26 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${LN} -sf mc ${PREFIX}/bin/midc
|
1999-12-23 18:37:52 +00:00
|
|
|
|
2003-04-09 15:23:26 +00:00
|
|
|
.include <bsd.port.post.mk>
|