1995-07-16 01:43:35 +02:00
|
|
|
# New ports collection makefile for: mc
|
|
|
|
# Date created: 15 Jul 1995
|
1999-08-31 08:53:31 +02:00
|
|
|
# Whom: torstenb@FreeBSD.org
|
1995-07-16 01:43:35 +02:00
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
1995-07-16 01:43:35 +02:00
|
|
|
#
|
|
|
|
|
2003-02-09 21:15:46 +01:00
|
|
|
PORTNAME= mc
|
|
|
|
PORTVERSION= 4.6.0
|
2003-02-26 18:06:16 +01:00
|
|
|
PORTREVISION= 1
|
2003-02-09 21:15:46 +01:00
|
|
|
CATEGORIES= misc shells
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= utils/file/managers/mc/
|
1997-06-20 14:22:36 +02:00
|
|
|
|
2002-08-07 21:21:07 +02:00
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
2003-02-18 12:54:56 +01:00
|
|
|
COMMENT= Midnight Commander, a free Norton Commander Clone
|
1995-07-16 01:43:35 +02:00
|
|
|
|
2003-02-09 21:15:46 +01:00
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
1999-01-31 19:12:50 +01:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2002-07-15 19:21:56 +02:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= glib12
|
2002-08-06 00:06:26 +02:00
|
|
|
USE_REINPLACE= yes
|
1999-01-31 19:12:50 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-02-09 21:15:46 +01:00
|
|
|
CONFIGURE_ARGS= --with-samba --with-configdir=${LOCALBASE}/etc \
|
|
|
|
--with-codepagedir=${LOCALBASE}/etc/codepages
|
|
|
|
|
2002-08-07 21:21:07 +02:00
|
|
|
.if !defined(WITHOUT_ICONV)
|
2003-02-09 21:15:46 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-charset
|
|
|
|
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
|
2002-08-11 14:00:46 +02:00
|
|
|
PLIST_SUB= CHARSETS=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB= CHARSETS="@comment "
|
|
|
|
.endif
|
2003-02-09 21:15:46 +01:00
|
|
|
|
|
|
|
.if defined(WITHOUT_SLANG)
|
|
|
|
CONFIGURE_ARGS+=--with-screen=ncurses
|
2002-08-11 14:36:24 +02:00
|
|
|
.else
|
2003-02-09 21:15:46 +01: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 21:21:07 +02:00
|
|
|
.endif
|
2003-02-09 21:15:46 +01:00
|
|
|
|
|
|
|
.if defined(WITHOUT_SUBSHELL)
|
|
|
|
CONFIGURE_ARGS+=--without-subshell
|
2002-08-11 14:00:46 +02:00
|
|
|
.endif
|
2002-08-05 23:26:26 +02:00
|
|
|
|
2003-02-09 21:15:46 +01:00
|
|
|
MAN1= mc.1 mcedit.1 mcview.1
|
|
|
|
|
2002-08-05 23:26:26 +02:00
|
|
|
post-patch:
|
2003-02-26 18:06:16 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/zip|${LOCALBASE}/bin/zip|' \
|
2003-02-09 21:15:46 +01:00
|
|
|
-e 's|/usr/bin/unzip|${LOCALBASE}/bin/unzip|' \
|
|
|
|
${WRKSRC}/configure
|
2002-08-05 23:26:26 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${LN} -sf mc ${PREFIX}/bin/midc
|
1999-12-23 19:37:52 +01:00
|
|
|
|
1995-07-16 01:43:35 +02:00
|
|
|
.include <bsd.port.mk>
|