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
|
|
|
#
|
|
|
|
|
2000-04-14 10:49:30 +02:00
|
|
|
PORTNAME= mc
|
2001-05-04 23:41:30 +02:00
|
|
|
PORTVERSION= 4.5.54
|
2002-04-12 19:10:20 +02:00
|
|
|
PORTREVISION= 3
|
1995-11-26 11:48:46 +01:00
|
|
|
CATEGORIES= misc
|
1999-01-31 19:12:50 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
1999-12-04 20:08:13 +01:00
|
|
|
MASTER_SITE_SUBDIR= stable/sources/mc
|
1997-06-20 14:22:36 +02:00
|
|
|
|
2001-12-14 10:09:33 +01:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1995-07-16 01:43:35 +02:00
|
|
|
|
2002-04-12 19:10:20 +02:00
|
|
|
LIB_DEPENDS= intl.2:${PORTSDIR}/devel/gettext
|
2000-04-17 02:19:02 +02:00
|
|
|
.if defined(WITH_NCURSES_PORT)
|
2000-11-16 14:14:26 +01:00
|
|
|
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
|
2000-02-13 10:09:53 +01:00
|
|
|
.elif defined(WITH_SLANG)
|
2000-04-16 13:56:27 +02:00
|
|
|
LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
|
2000-02-13 10:09:53 +01:00
|
|
|
BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
|
|
|
|
RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
|
1999-01-31 19:12:50 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2000-10-05 08:23:01 +02:00
|
|
|
USE_GLIB= yes
|
1999-01-31 19:12:50 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2000-02-13 10:09:53 +01:00
|
|
|
.if defined(WITH_SLANG)
|
|
|
|
CONFIGURE_ARGS= --with-slang --without-gnome --with-edit
|
|
|
|
.else
|
1999-01-31 19:12:50 +01:00
|
|
|
CONFIGURE_ARGS= --with-ncurses --without-gnome --without-edit
|
2000-02-13 10:09:53 +01:00
|
|
|
.endif
|
1999-01-31 19:12:50 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-05-04 23:41:30 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib -lintl"
|
1998-09-18 04:29:28 +02:00
|
|
|
|
2001-05-04 23:41:30 +02:00
|
|
|
MAN1= midc.1 mcedit.1
|
1996-11-17 10:06:37 +01:00
|
|
|
MAN8= mcserv.8
|
1995-07-16 01:43:35 +02:00
|
|
|
|
2001-05-04 23:41:30 +02:00
|
|
|
pre-patch:
|
|
|
|
@find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \
|
|
|
|
's|\$\(libdir\)/mc|\$\(datadir\)/mc|g'
|
|
|
|
|
2000-02-13 10:09:53 +01:00
|
|
|
.if defined(WITH_SLANG)
|
|
|
|
PLIST= ${WRKDIR}/PLIST
|
|
|
|
pre-install:
|
2000-10-08 12:23:48 +02:00
|
|
|
@${CAT} ${PKGDIR}/pkg-plist > ${PLIST}
|
2002-01-29 12:48:57 +01:00
|
|
|
@${ECHO_CMD} bin/mcedit >> ${PLIST}
|
2000-02-13 10:09:53 +01:00
|
|
|
.endif
|
1999-12-23 19:37:52 +01:00
|
|
|
|
1995-07-16 01:43:35 +02:00
|
|
|
.include <bsd.port.mk>
|