# New ports collection makefile for:	eterm
# Date created:        24th December 2000
# Whom:                Michael C. Wu
# $FreeBSD$

PORTNAME=	eterm
PORTVERSION=	0.9
CATEGORIES=	chinese x11
MASTER_SITES=	ftp://ftp.enlightenment.org/pub/enlightenment/Eterm/ \
		ftp://ftp.dti.ad.jp/pub/X/enlightenment/Eterm/ \
		ftp://ftp.kddlabs.co.jp/.10/X11/window_manager/enlightenment/Eterm/ \
		ftp://ftp.sogang.ac.kr/.c/tools/X11/Enlightenment/Eterm/
DISTNAME=	Eterm-${PORTVERSION}

MAINTAINER=	keichii@iteration.net

BUILD_DEPENDS=	man2html:${PORTSDIR}/textproc/man2html
RUN_DEPENDS=	${X11BASE}/lib/X11/fonts/local/kc15f.pcf.gz:${PORTSDIR}/chinese/kcfonts

USE_GMAKE=	yes
USE_X_PREFIX=	yes
USE_IMLIB=	yes
USE_LIBTOOL=	yes
CONFIGURE_ARGS=	--enable-trans=imlib --enable-multi-charset=big5 \
		--enable-xim --with-theme-update

CONFIGURE_ENV=	LIBS="-lxpg4"

MAN1=		Eterm.1
INSTALLS_SHLIB=	yes

post-install:
	@${CHMOD} 4711 ${PREFIX}/bin/Eterm
.if !defined(NOPORTDOCS)
	@${MKDIR} ${PREFIX}/share/doc/Eterm
	@${INSTALL_DATA} ${WRKSRC}/ReleaseNotes ${PREFIX}/share/doc/Eterm
	@${INSTALL_DATA} ${WRKSRC}/doc/Eterm.1.html ${PREFIX}/share/doc/Eterm
	@${INSTALL_DATA} ${WRKSRC}/doc/Eterm_reference.html ${PREFIX}/share/doc/Eterm
	@${INSTALL_DATA} ${WRKSRC}/doc/Eterm.tcap ${PREFIX}/share/doc/Eterm
	@${INSTALL_DATA} ${WRKSRC}/doc/Eterm.ti ${PREFIX}/share/doc/Eterm
.endif
	@${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>
