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
|
2011-05-28 22:13:20 +02:00
|
|
|
PORTVERSION= 3.0.4
|
2001-12-12 10:04:14 +01:00
|
|
|
CATEGORIES= x11
|
2010-07-18 07:33:10 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/01release/${PORTNAME}-${PORTVERSION}
|
2001-12-12 10:04:14 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
2007-02-02 18:06:25 +01:00
|
|
|
LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
|
|
|
|
|
2008-03-25 00:21:25 +01:00
|
|
|
USE_XORG= sm
|
2004-11-14 16:48:52 +01:00
|
|
|
USE_GNOME= gtk20 lthack
|
2010-12-04 08:34:27 +01:00
|
|
|
USE_AUTOTOOLS= libtool
|
2006-02-23 11:40:44 +01:00
|
|
|
LIBTOOLFILES= configure kiklib/configure mkf/configure
|
2004-11-14 16:48:52 +01:00
|
|
|
USE_PERL5_BUILD=yes
|
2008-08-17 03:10:25 +02:00
|
|
|
USE_GETTEXT= yes
|
2010-10-16 12:27:00 +02:00
|
|
|
CONFIGURE_ARGS= --with-imagelib=gdk-pixbuf2 --enable-utmp \
|
|
|
|
--mandir="${LOCALBASE}/man" --enable-optimize-redrawing \
|
2011-05-28 22:13:20 +02:00
|
|
|
--with-tools="mlclient,mlconfig,mlterm-menu,mlcc,w3mmlconfig,mlimgloader" \
|
2011-05-01 20:32:10 +02:00
|
|
|
--with-type-engines="xcore,xft" \
|
|
|
|
--disable-iiimf
|
|
|
|
CONFIGURE_ENV= LIBS="${LIBS} -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl" CFLAGS="${CFLAGS} -I${LOCALBASE}/include"
|
2010-07-18 07:33:10 +02:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2004-11-14 16:48:52 +01:00
|
|
|
OPTIONS= FRIBIDI "Use Fribidi for BiDi rendering" off \
|
2006-05-21 12:33:59 +02:00
|
|
|
UIM "uim support (experimental)" off \
|
|
|
|
M17NLIB "m17n library support (experimental)" off \
|
2011-04-02 04:28:33 +02:00
|
|
|
SCIM "SCIM support (experimental)" off \
|
|
|
|
IBUS "IBUS support (experimental)" off
|
2004-11-14 16:48:52 +01:00
|
|
|
|
|
|
|
.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
|
2009-08-22 19:36:57 +02:00
|
|
|
LIB_DEPENDS+= fribidi.3:${PORTSDIR}/converters/fribidi
|
2006-05-21 12:33:59 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-fribidi
|
2004-11-14 16:48:52 +01:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_UIM)
|
|
|
|
CONFIGURE_ARGS+= --enable-uim
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
|
2011-05-28 22:13:20 +02:00
|
|
|
LIB_DEPENDS+= uim.8:${PORTSDIR}/textproc/uim
|
2004-11-14 16:48:52 +01:00
|
|
|
PLIST_SUB+= UIM=""
|
|
|
|
.else
|
2006-05-21 12:33:59 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-uim
|
2004-11-14 16:48:52 +01:00
|
|
|
PLIST_SUB+= UIM="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_M17NLIB)
|
|
|
|
CONFIGURE_ARGS+= --enable-m17nlib
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
|
2010-05-03 08:41:03 +02:00
|
|
|
LIB_DEPENDS+= m17n.4:${PORTSDIR}/devel/m17n-lib
|
2004-11-14 16:48:52 +01:00
|
|
|
PLIST_SUB+= M17NLIB=""
|
|
|
|
.else
|
2006-05-21 12:33:59 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-m17nlib
|
2004-11-14 16:48:52 +01:00
|
|
|
PLIST_SUB+= M17NLIB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-12-08 15:46:05 +01:00
|
|
|
|
2006-05-21 12:33:59 +02:00
|
|
|
.if defined(WITH_SCIM)
|
|
|
|
CONFIGURE_ARGS+= --enable-scim
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
|
2007-06-09 05:41:33 +02:00
|
|
|
LIB_DEPENDS+= scim-1.0.10:${PORTSDIR}/textproc/scim
|
2006-05-21 12:33:59 +02:00
|
|
|
PLIST_SUB+= SCIM=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-scim
|
|
|
|
PLIST_SUB+= SCIM="@comment "
|
|
|
|
.endif
|
|
|
|
|
2011-04-02 04:28:33 +02:00
|
|
|
.if defined(WITH_IBUS)
|
|
|
|
CONFIGURE_ARGS+= --enable-ibus
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
|
|
|
|
LIB_DEPENDS+= ibus.2:${PORTSDIR}/textproc/ibus
|
|
|
|
PLIST_SUB+= IBUS=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-ibus
|
|
|
|
PLIST_SUB+= IBUS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2010-03-10 22:35:54 +01:00
|
|
|
.if ${OSVERSION} >= 900004
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-lutempter
|
2010-10-16 12:27:00 +02:00
|
|
|
.else
|
|
|
|
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
|
|
|
|
LIB_DEPENDS+= utempter.0:${PORTSDIR}/sysutils/libutempter
|
2010-03-10 22:35:54 +01:00
|
|
|
.endif
|
|
|
|
|
2007-12-22 16:25:22 +01:00
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GETTEXT= yes
|
2001-12-12 10:04:14 +01:00
|
|
|
|
2002-06-30 17:27:40 +02:00
|
|
|
MAN1= mlterm.1 mlclient.1
|
2001-12-12 10:04:14 +01:00
|
|
|
|
2007-02-11 16:46:06 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e "s,echo aout,echo elf,g" ${WRKSRC}/configure \
|
|
|
|
${WRKSRC}/kiklib/configure ${WRKSRC}/mkf/configure
|
|
|
|
|
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
|
2010-03-10 22:35:54 +01:00
|
|
|
.if ${OSVERSION} >= 900004
|
|
|
|
@${REINPLACE_CMD} -e 's|kik_utmp_bsd|kik_utmp_utmper|' \
|
|
|
|
${WRKSRC}/kiklib/src/Makefile
|
|
|
|
.endif
|
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>
|