2001-12-12 10:04:14 +01:00
|
|
|
# New ports collection makefile for: mlterm
|
|
|
|
# Date created: 9 December 2001
|
|
|
|
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mlterm
|
2004-12-02 16:53:16 +01:00
|
|
|
PORTVERSION= 2.9.1
|
2005-03-12 11:54:27 +01:00
|
|
|
PORTREVISION= 1
|
2001-12-12 10:04:14 +01:00
|
|
|
CATEGORIES= x11
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
|
|
|
|
MAINTAINER= nobutaka@FreeBSD.org
|
2003-02-22 15:25:38 +01:00
|
|
|
COMMENT= Multilingual X11 terminal emulator
|
2001-12-12 10:04:14 +01:00
|
|
|
|
|
|
|
USE_X_PREFIX= yes
|
2004-11-14 16:48:52 +01:00
|
|
|
USE_GNOME= gtk20 lthack
|
|
|
|
USE_INC_LIBTOOL_VER=13
|
2002-06-30 17:27:40 +02:00
|
|
|
USE_REINPLACE= yes
|
2004-11-14 16:48:52 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
2004-12-02 16:53:16 +01:00
|
|
|
CONFIGURE_ARGS= --with-imagelib=gdk-pixbuf --enable-utmp \
|
|
|
|
--with-tools="mlclient,mlconfig,mlterm-menu,mlcc,w3mmlconfig"
|
2004-11-14 16:48:52 +01:00
|
|
|
CONFIGURE_ENV= LIBS=-L${LOCALBASE}/lib CFLAGS=-I${LOCALBASE}/include
|
|
|
|
|
|
|
|
OPTIONS= FRIBIDI "Use Fribidi for BiDi rendering" off \
|
|
|
|
UIM "uim support" off \
|
|
|
|
M17NLIB "m17n library support" off \
|
|
|
|
IIIMF "IIIMF support (broken)" off
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
2003-12-08 15:46:05 +01:00
|
|
|
|
|
|
|
.if defined(WITH_FRIBIDI)
|
2004-11-14 16:48:52 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-fribidi
|
|
|
|
LIB_DEPENDS+= fribidi.0:${PORTSDIR}/converters/fribidi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_UIM)
|
|
|
|
CONFIGURE_ARGS+= --enable-uim
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
|
|
|
|
LIB_DEPENDS+= uim.0:${PORTSDIR}/japanese/uim
|
|
|
|
PLIST_SUB+= UIM=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= UIM="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_M17NLIB)
|
|
|
|
CONFIGURE_ARGS+= --enable-m17nlib
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
|
|
|
|
LIB_DEPENDS+= m17n.1:${PORTSDIR}/devel/m17n-lib
|
|
|
|
PLIST_SUB+= M17NLIB=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= M17NLIB="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_IIIMF)
|
|
|
|
.if ${OSVERSION} < 500043
|
|
|
|
EXTRA_PATCHES= ${PATCHDIR}/extra-patch-inputmethod:iiimf:im_iiimf.c
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= --enable-iiimf
|
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CFLAGS=-I${LOCALBASE}/include
|
|
|
|
MAKE_ENV= LIBS_LOCAL="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" CFLAGS_LOCAL="-I${LOCALBASE}/include/iiimf -I${LOCALBASE}/include/iiimf/iiimp"
|
|
|
|
LIB_DEPENDS+= iiimcf.2:${PORTSDIR}/textproc/iiimf-client-lib
|
|
|
|
PLIST_SUB+= IIIMF=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= IIIMF="@comment "
|
2003-12-08 15:46:05 +01:00
|
|
|
.endif
|
|
|
|
|
2001-12-12 10:04:14 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2002-06-30 17:27:40 +02:00
|
|
|
MAN1= mlterm.1 mlclient.1
|
2001-12-12 10:04:14 +01:00
|
|
|
|
2004-07-23 21:10:32 +02:00
|
|
|
.if ${X_WINDOW_SYSTEM:L} == xfree86-3
|
2001-12-12 10:04:14 +01:00
|
|
|
PKGNAMESUFFIX= -noaa
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-anti-alias
|
2004-03-16 23:54:05 +01:00
|
|
|
LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
2003-12-08 15:46:05 +01:00
|
|
|
.endif
|
|
|
|
|
2004-12-02 16:53:16 +01:00
|
|
|
pre-configure:
|
|
|
|
${REINPLACE_CMD} -e "s,%%PERL%%,${PERL}," \
|
|
|
|
${WRKSRC}/tool/w3mmlconfig/Makefile.in
|
|
|
|
|
2002-02-23 14:45:12 +01:00
|
|
|
post-configure:
|
2004-11-14 16:48:52 +01:00
|
|
|
${CP} ${WRKSRC}/libtool ${WRKSRC}/kiklib/
|
|
|
|
${CP} ${WRKSRC}/libtool ${WRKSRC}/mkf/
|
2004-12-02 16:53:16 +01:00
|
|
|
${REINPLACE_CMD} -e "s,@CGI_BIN@,${PREFIX}/libexec/w3mmlconfig," \
|
|
|
|
${WRKSRC}/tool/w3mmlconfig/mlconfig.cgi
|
2002-02-23 14:45:12 +01:00
|
|
|
|
2002-01-29 14:27:13 +01:00
|
|
|
post-install:
|
2002-02-23 14:45:12 +01:00
|
|
|
(cd ${WRKSRC}/tool/w3mmlconfig; ${MAKE} install)
|
2002-01-29 14:27:13 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${PREFIX}/share/doc/ja/mlterm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ja/README.ja ${PREFIX}/share/doc/ja/mlterm
|
|
|
|
.endif
|
|
|
|
|
2001-12-12 10:04:14 +01:00
|
|
|
.include <bsd.port.post.mk>
|