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-10-02 16:29:37 +02:00
|
|
|
PORTREVISION= 6
|
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-04-09 17:23:26 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-03-05 18:22:54 +01:00
|
|
|
LIB_DEPENDS= glib-2.0.200:${PORTSDIR}/devel/glib20 \
|
2003-08-25 07:41:38 +02:00
|
|
|
intl.5:${PORTSDIR}/devel/gettext
|
2003-03-05 18:22:54 +01:00
|
|
|
BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
|
1999-01-31 19:12:50 +01:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2002-08-06 00:06:26 +02:00
|
|
|
USE_REINPLACE= yes
|
1999-01-31 19:12:50 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2003-03-05 18:22:54 +01:00
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
2003-02-09 21:15:46 +01:00
|
|
|
|
2003-10-02 16:28:56 +02:00
|
|
|
.if !defined(WITHOUT_SAMBA)
|
|
|
|
CONFIGURE_ARGS+=--with-samba --with-configdir=${LOCALBASE}/etc \
|
|
|
|
--with-codepagedir=${LOCALBASE}/etc/codepages
|
|
|
|
.endif
|
|
|
|
|
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
|
|
|
|
2003-07-10 12:39:38 +02:00
|
|
|
.if !defined(WITH_X11)
|
|
|
|
CONFIGURE_ARGS+=--without-x
|
|
|
|
.endif
|
|
|
|
|
2003-04-09 17:23:26 +02: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 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
|
2003-08-11 21:11:29 +02: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 21:15:46 +01:00
|
|
|
|
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
|
|
|
|
2003-04-09 17:23:26 +02:00
|
|
|
.include <bsd.port.post.mk>
|