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
|
|
|
#
|
|
|
|
|
2000-04-14 08:49:30 +00:00
|
|
|
PORTNAME= mc
|
2002-08-05 21:26:26 +00:00
|
|
|
PORTVERSION= 4.5.55
|
2002-08-11 10:26:09 +00:00
|
|
|
PORTREVISION= 3
|
1995-11-26 10:48:46 +00:00
|
|
|
CATEGORIES= misc
|
1999-01-31 18:12:50 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
1999-12-04 19:08:13 +00:00
|
|
|
MASTER_SITE_SUBDIR= stable/sources/mc
|
1997-06-20 12:22:36 +00:00
|
|
|
|
2002-08-07 19:21:07 +00:00
|
|
|
MAINTAINER= fjoe@FreeBSD.org
|
1995-07-15 23:43:35 +00:00
|
|
|
|
2000-02-13 09:09:53 +00:00
|
|
|
BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
|
2002-08-07 19:21:07 +00:00
|
|
|
LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
|
2002-08-06 10:17:14 +00:00
|
|
|
.if !defined(WITHOUT_SLANG)
|
2002-08-07 19:21:07 +00:00
|
|
|
LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_ICONV)
|
|
|
|
LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
|
2002-08-06 10:17:14 +00:00
|
|
|
.endif
|
1999-01-31 18:12:50 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2002-07-15 17:21:56 +00:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= glib12
|
2002-08-05 22:06:26 +00:00
|
|
|
USE_REINPLACE= yes
|
1999-01-31 18:12:50 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-08-06 10:17:14 +00:00
|
|
|
.if !defined(WITHOUT_SLANG)
|
|
|
|
CONFIGURE_ARGS= --with-slang --without-gnome
|
|
|
|
.else
|
2002-08-05 21:26:26 +00:00
|
|
|
CONFIGURE_ARGS= --with-ncurses --without-gnome
|
2002-08-06 10:17:14 +00:00
|
|
|
.endif
|
2002-08-07 19:21:07 +00:00
|
|
|
.if !defined(WITHOUT_ICONV)
|
|
|
|
CONFIGURE_ARGS+=--enable-charset --with-libiconv-prefix=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2002-08-05 21:26:26 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib -lintl"
|
|
|
|
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
|
|
|
|
|
|
|
|
MAN1= mc.1 mcedit.1
|
|
|
|
|
|
|
|
post-patch:
|
2002-08-05 22:06:26 +00:00
|
|
|
@find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} \
|
|
|
|
-e 's|\$$(libdir)/mc|\$$(datadir)/mc|g' \
|
|
|
|
-e 's|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
|
2002-08-06 10:17:14 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|DRAR=/usr/bin|DRAR=${LOCALBASE}/bin|' \
|
|
|
|
${WRKSRC}/vfs/extfs/urar.in
|
|
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/\(.*\)zip|${LOCALBASE}/bin/\1zip|' \
|
2002-08-07 19:21:07 +00:00
|
|
|
${WRKSRC}/vfs/extfs/uzip
|
2002-08-05 21:26:26 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${LN} -sf mc ${PREFIX}/bin/midc
|
1999-12-23 18:37:52 +00:00
|
|
|
|
1995-07-15 23:43:35 +00:00
|
|
|
.include <bsd.port.mk>
|