# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $

PortSystem			1.0

name				x3270
version				3.3.8
categories			x11
maintainers			gmail.com:mark.church
platforms			darwin
description			x3270 is an IBM 3270 terminal emulator for the X Window System.
long_description		x3270 is an IBM 3270 terminal emulator for the X \
				Window System. It runs on most Unix-like operating \
				systems -- e.g., Linux, Mac OS X, Solaris, and Cygwin.\
 \
				x3270 runs over a TELNET connection, emulating either \
				an IBM 3279 (color) or 3278 (monochrome). It supports: \
 \
					* The full TN3270E protocol \
    					* SSL/TLS (via the OpenSSL library) for  \
				  	encrypted sessions \
    					* APL2 characters \
    					* Non-English character sets, including  \
				  	Russian, Turkish, Hebrew and DBCS Chinese  \
				  	and Japanese \
    					* IND\$FILE file transfer \
    					* NVT mode (emulating a color xterm) \
    					* A pop-up keypad for 3270-specific keys \
    					* A scrollbar \
    					* Printer session integration \
    					* Extensive debugging and scripting facilities \
 \
				It does not yet support graphics.
homepage			http://x3270.bgp.nu/index.html
master_sites			sourceforge
master_sites.mirror_subdir	${name}
distfiles			${name}-${version}.tgz
checksums			md5 d707ca1ccad84672981c95ea2c125b62 \
				sha1  076f9efdc90552b01d200d64c739a1d6e8ffb2a9 \
				rmd160 c72f39b57b30951ec447601fbc496447f615e685
worksrcdir			x3270-3.3

configure.args			--bindir=${prefix}/bin \
				--without-pr3287 \
				--disable-dbcs \
				--with-fontdir=${prefix}/lib/x3270/fonts \
				--mandir=${prefix}/share/man

destroot.target         install.byprefix

pre-build {
	reinplace "s|\$(DESTDIR)\$(BINDIR)|\$(DESTDIR)${prefix}/bin|g" \
		${worksrcpath}/Makefile
}

post-activate {
ui_msg "\n
If you wish to use a font other than \"fixed\", activate x3270 fonts by
executing this command:

	/usr/X11R6/bin/xset fp+ ${prefix}/lib/x3270/fonts/

To make the change persist after restarting X11, insert the same command
into your ~/.xinitrc file or the X11 system default file:

	/etc/X11/xinit/xinitrc
\n"
}
