1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/misc/mc/Makefile
Rusmir Dusko f202310163 - Update to 4.8.10
- Use the new format for LIB_DEPENDS
- Remove PORTDATA use full pkg-plist
- Add DOCS and NCURSES Options
- Add EDITOR to default Options
- Remove NLS and EDIT from default Options
- Support STAGEDIR and add OPTIONS_SUB
- Add DOCS
- Remove obsolete REINPLACE_CMD
- Add patch, resolve Syntax error

PR:		ports/181364
Submitted by:	nemysis (self)
Approved by:	pawel / wg (mentors, implicit), maintainer timeout
2013-10-21 21:07:18 +00:00

93 lines
2.0 KiB
Makefile

# Created by: torstenb@FreeBSD.org
# $FreeBSD$
PORTNAME= mc
PORTVERSION= 4.8.10
PORTREVISION= 0
CATEGORIES= misc shells
MASTER_SITES= http://ftp.osuosl.org/pub/midnightcommander/
MAINTAINER= fjoe@FreeBSD.org
COMMENT= Midnight Commander, a free Norton Commander Clone
LICENSE= GPLv3
LIB_DEPENDS= libssh2.so:${PORTSDIR}/security/libssh2
CONFLICTS= mc-light-4*
USE_XZ= yes
USES= gmake perl5 pkgconfig
USE_GNOME= glib20
GNU_CONFIGURE= yes
CONFIGURE_ENV= ZIP=${UNZIP_CMD} UNZIP=${UNZIP_CMD}
USE_AUTOTOOLS= libtool
OPTIONS_DEFINE= DOCS EDITOR ICONV NLS SMB SUBSHELL X11
OPTIONS_SINGLE= SCREEN
OPTIONS_SINGLE_SCREEN= SLANG NCURSES
OPTIONS_DEFAULT= EDITOR ICONV SLANG SMB SUBSHELL X11
EDITOR_DESC= Build with internal editor
SUBSHELL_DESC= Build with subshell support
OPTIONS_SUB= yes
EDITOR_CONFIGURE_WITH= internal-edit
ICONV_USES= iconv
ICONV_CONFIGURE_ENABLE= charset
NLS_CONFIGURE_ENABLE= nls
NLS_USES= gettext
SLANG_LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2
SMB_CONFIGURE_ENABLE= vfs-smb configdir=${LOCALBASE}/etc \
codepagedir=${LOCALBASE}/etc/codepages
SUBSHELL_CONFIGURE_WITH= subshell
X11_CONFIGURE_ENABLE= x
PORTDOCS= *
DOCSRCDIR1= ${WRKSRC}
DOC_FILES1= AUTHORS NEWS README
DOCSRCDIR2= ${WRKSRC}/doc
DOCSDIR2= ${DOCSDIR}/doc
DOC_FILES2= FAQ HACKING MAINTAINERS *.txt TODO
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
.endif
.if${PORT_OPTIONS:MX11}
USE_XORG= x11 xext
.endif
.if ${PORT_OPTIONS:MSLANG}
CONFIGURE_ARGS+=--with-screen=slang --with-slang-includes=${LOCALBASE}/include
.endif
.if ${PORT_OPTIONS:MNCURSES}
CONFIGURE_ARGS+=--with-screen=ncurses --with-ncurses-includes=${LOCALBASE}/include
.endif
post-patch:
@${REINPLACE_CMD} -e 's|SUBDIRS = intl|SUBDIRS =|' ${WRKSRC}/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${STAGEDIR}${DOCSDIR}
@${MKDIR} ${STAGEDIR}${DOCSDIR2}
${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${STAGEDIR}${DOCSDIR2}
.include <bsd.port.mk>