# $Id: Portfile,v 1.3 2005/10/19 08:10:17 blb Exp $

PortSystem			1.0
name				mlterm
version				2.9.2
categories			x11
maintainers			blb@opendarwin.org
description			Multi-lingual X11 terminal emulator
long_description \
	mlterm is a multi-lingual terminal emulator written from scratch, which \
	supports various character sets and encodings in the world and complex \
	characters such as double width for East Asian, combining for Thai, \
	Vietnamese, and so on, and bi-direction for Arabic and Hebrew.  Indic \
	scripts in ISCII encoding are experimentally supported using libind \
	library.  It also supports various unique feature such as anti-alias \
	using FreeType, multiple XIM, multiple windows, scrollbar API, scroll by \
	mouse wheel, automatic selection of encoding, daemon mode, and so on.

platforms			darwin

homepage			http://mlterm.sourceforge.net/
master_sites		sourceforge

checksums			md5 be561bfe646a112ce7400b9d0db41e82 \
					sha1 d71f07bb38553a7cae927f15b8d0a20a165eebe7

configure.args		--mandir=${prefix}/share/man

post-destroot {
	xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name}
	eval file copy [glob ${worksrcpath}/doc/*] \
		${destroot}/${prefix}/share/doc/${name}
}

# Enable antialiasing support
variant antialias {
	depends_lib-append		lib:libfreetype.6.3.5:freetype
	configure.args-append	--enable-anti-alias
}

# Enable bidirectional support
variant bidi {
	depends_lib-append		lib:libfribidi:fribidi
	configure.args-append	--enable-fribidi
}

# Enable background image support
variant bgImages {
	depends_lib-append		lib:libImlib.1:imlib
	configure.args-append	--with-imagelib=imlib
}

# Enable building of mlconfig and mlterm-menu (auto-detected, so no
# configure.args changes)
variant gtk2 {
	depends_lib-append		lib:libgtk.2:gtk2
}

