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
|
2005-03-13 15:08:19 +01:00
|
|
|
PORTVERSION= 2.9.2
|
2006-02-23 11:40:44 +01:00
|
|
|
PORTREVISION= 2
|
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
|
2006-02-23 11:40:44 +01:00
|
|
|
USE_AUTOTOOLS= libtool:15
|
|
|
|
LIBTOOLFILES= configure kiklib/configure mkf/configure
|
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
|
2006-01-15 17:11:44 +01:00
|
|
|
LIB_DEPENDS+= uim.1:${PORTSDIR}/textproc/uim
|
2004-11-14 16:48:52 +01:00
|
|
|
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
|
|
|
|
|
2002-02-23 14:45:12 +01:00
|
|
|
post-configure:
|
2006-02-23 11:40:44 +01:00
|
|
|
@${CP} ${LIBTOOL} ${WRKSRC}
|
|
|
|
@${REINPLACE_CMD} -e "s,@CGI_BIN@,${PREFIX}/libexec/w3mmlconfig," \
|
2004-12-02 16:53:16 +01:00
|
|
|
${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>
|