diff options
author | Max Khon <fjoe@FreeBSD.org> | 2003-02-09 20:15:46 +0000 |
---|---|---|
committer | Max Khon <fjoe@FreeBSD.org> | 2003-02-09 20:15:46 +0000 |
commit | 10d26e8e5df631b046f7a92d6335c86dcfb7bb3b (patch) | |
tree | 374f3c95746ba66dcf79ef13f935dcc53869653c /misc/mc/Makefile | |
parent | glade2 no longer depends on libgnomeprintui. Update it accordingly. (diff) |
Update to 4.6.0
Some of new features and improvements are:
- fish (extrnal file system via ssh)
- smbfs
- internal editor works correctly if mc is built without slang
(is built using plain ncurses)
Diffstat (limited to 'misc/mc/Makefile')
-rw-r--r-- | misc/mc/Makefile | 79 |
1 files changed, 26 insertions, 53 deletions
diff --git a/misc/mc/Makefile b/misc/mc/Makefile index d0178c4a3e85..cbf7c4138b02 100644 --- a/misc/mc/Makefile +++ b/misc/mc/Makefile @@ -5,80 +5,53 @@ # $FreeBSD$ # -PORTNAME?= mc -PORTVERSION= 4.5.55 -PORTREVISION?= 5 -CATEGORIES?= misc -MASTER_SITES= ${MASTER_SITE_GNOME} -MASTER_SITE_SUBDIR= sources/mc/4.5 +PORTNAME= mc +PORTVERSION= 4.6.0 +CATEGORIES= misc shells +MASTER_SITES= ${MASTER_SITE_SUNSITE} +MASTER_SITE_SUBDIR= utils/file/managers/mc/ MAINTAINER= fjoe@FreeBSD.org -.if !defined(WITHOUT_ISPELL) -BUILD_DEPENDS= ispell:${PORTSDIR}/textproc/ispell -RUN_DEPENDS= ispell:${PORTSDIR}/textproc/ispell -.endif -.if !defined(WITHOUT_SLANG) -LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang -.endif -.if !defined(WITHOUT_ICONV) -LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv -.endif -.if ${PORTNAME} == "mc" -LIB_DEPENDS+= intl.4:${PORTSDIR}/devel/gettext -.endif +LIB_DEPENDS= intl.4:${PORTSDIR}/devel/gettext USE_GMAKE= yes USE_GNOMENG= yes -.if ${PORTNAME} == "mc" USE_GNOME= glib12 -.else -USE_GNOME= gnomeprefix gnomelibs -.endif USE_REINPLACE= yes GNU_CONFIGURE= yes -.if !defined(WITHOUT_SLANG) -CONFIGURE_ARGS= --with-slang -.else -CONFIGURE_ARGS= --with-ncurses -.endif +CONFIGURE_ARGS= --with-samba --with-configdir=${LOCALBASE}/etc \ + --with-codepagedir=${LOCALBASE}/etc/codepages + .if !defined(WITHOUT_ICONV) -CONFIGURE_ARGS+=--enable-charset --with-libiconv-prefix=${LOCALBASE} +CONFIGURE_ARGS+=--enable-charset +LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv PLIST_SUB= CHARSETS="" .else PLIST_SUB= CHARSETS="@comment " .endif -.if ${PORTNAME} == "mc" -CONFIGURE_ARGS+=--without-gnome + +.if defined(WITHOUT_SLANG) +CONFIGURE_ARGS+=--with-screen=ncurses .else -CONFIGURE_ARGS+=--without-edit +CONFIGURE_ARGS+=--with-screen=slang +CONFIGURE_ENV= CPPFLAGS="-I ${LOCALBASE}/include" \ + LDFLAGS="-ltermcap -L ${LOCALBASE}/lib" +LIB_DEPENDS+= slang.1:${PORTSDIR}/devel/libslang .endif -CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include \ - LDFLAGS="-L${LOCALBASE}/lib -lintl" \ - LOCALBASE=${LOCALBASE} -CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL} -.if ${PORTNAME} == "mc" -PLIST_SUB+= GNOMEMC="@comment " MC="" SHARE_PATH="share" -MAN1= mc.1 mcedit.1 -.else -PLIST_SUB+= GNOMEMC="" MC="@comment " SHARE_PATH="share/gnome" + +.if defined(WITHOUT_SUBSHELL) +CONFIGURE_ARGS+=--without-subshell .endif +MAN1= mc.1 mcedit.1 mcview.1 + 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" - @${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|' \ - ${WRKSRC}/vfs/extfs/urar.in - @${REINPLACE_CMD} -e 's|/usr/bin/\(.*\)zip|${LOCALBASE}/bin/\1zip|' \ - ${WRKSRC}/vfs/extfs/uzip + ${REINPLACE_CMD} -e 's|/usr/bin/zip|${LOCALBASE}/bin/zip|' \ + -e 's|/usr/bin/unzip|${LOCALBASE}/bin/unzip|' \ + ${WRKSRC}/configure -.if ${PORTNAME} == "mc" post-install: @${LN} -sf mc ${PREFIX}/bin/midc -.endif .include <bsd.port.mk> |