summaryrefslogtreecommitdiff
path: root/misc/mc/Makefile
diff options
context:
space:
mode:
authorMax Khon <fjoe@FreeBSD.org>2002-08-11 12:57:32 +0000
committerMax Khon <fjoe@FreeBSD.org>2002-08-11 12:57:32 +0000
commit283fbbd0b1abf9fd85350935ceaa9005c485b70f (patch)
tree3eb985b7c7d002d2adc79ec0fcf334816e22e312 /misc/mc/Makefile
parentThis port is no longer used in GNOME so take maintainership and (diff)
- add WITHOUT_ISPELL knob, RUN_DEPENDS on ispell
- do not install midc -> mc symlink if gnomemc is being built
Diffstat (limited to '')
-rw-r--r--misc/mc/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile
index 3e482d8d72c4..4f513e8ad3f1 100644
--- a/misc/mc/Makefile
+++ b/misc/mc/Makefile
@@ -14,8 +14,10 @@ MASTER_SITE_SUBDIR= stable/sources/mc
MAINTAINER= fjoe@FreeBSD.org
+.if !defined(WITHOUT_ISPELL)
BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
-LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
+RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell
+.endif
.if !defined(WITHOUT_SLANG)
LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang
.endif
@@ -27,6 +29,7 @@ USE_GMAKE= yes
USE_GNOMENG= yes
.if ${PORTNAME} == "mc"
USE_GNOME= glib12
+LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext
.else
USE_GNOME= gnomeprefix gnomelibs
.endif
@@ -62,7 +65,7 @@ post-patch:
@find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} \
-e 's|\$$(libdir)/mc|\$$(datadir)/mc|g' \
-e 's|\$$(datadir)/locale|\$$(prefix)/share/locale|g'
-.if ${PORTNAME} != "mc
+.if ${PORTNAME} != "mc"
@${REINPLACE_CMD} -e 's|^SUBDIRS = intl po vfs edit src lib doc|SUBDIRS = intl po vfs lib|' ${WRKSRC}/Makefile.in
.endif
@${REINPLACE_CMD} -e 's|DRAR=/usr/bin|DRAR=${LOCALBASE}/bin|' \
@@ -70,7 +73,9 @@ post-patch:
@${REINPLACE_CMD} -e 's|/usr/bin/\(.*\)zip|${LOCALBASE}/bin/\1zip|' \
${WRKSRC}/vfs/extfs/uzip
+.if ${PORTNAME} == "mc"
post-install:
@${LN} -sf mc ${PREFIX}/bin/midc
+.endif
.include <bsd.port.mk>