freebsd-ports/x11/mlterm/Makefile

134 lines
3.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: mlterm
# Date created: 9 December 2001
# Whom: MANTANI Nobutaka <nobutaka@nobutaka.com>
#
# $FreeBSD$
#
PORTNAME= mlterm
2012-04-29 17:46:59 +02:00
PORTVERSION= 3.1.0
2012-06-01 07:26:28 +02:00
PORTREVISION= 1
CATEGORIES= x11
MASTER_SITES= SF/${PORTNAME}/01release/${PORTNAME}-${PORTVERSION}
MAINTAINER= nobutaka@FreeBSD.org
2003-02-22 15:25:38 +01:00
COMMENT= Multilingual X11 terminal emulator
LIB_DEPENDS= Xft.2:${PORTSDIR}/x11-fonts/libXft
USE_XORG= sm
USE_GNOME= gtk20 lthack vte
2010-12-04 08:34:27 +01:00
USE_AUTOTOOLS= libtool
LIBTOOLFILES= configure kiklib/configure mkf/configure
USE_PERL5_BUILD=yes
USE_GETTEXT= yes
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" \
--disable-iiimf
CONFIGURE_ENV= LIBS="${LIBS} -L${LOCALBASE}/lib ${PTHREAD_LIBS} -lintl"
CFLAGS+= -I${LOCALBASE}/include
MAKE_JOBS_UNSAFE= yes
OPTIONS= FRIBIDI "Use Fribidi for BiDi rendering" off \
UIM "uim support (experimental)" off \
M17NLIB "m17n library support (experimental)" off \
2011-04-02 04:28:33 +02:00
SCIM "SCIM support (experimental)" off \
2011-07-30 06:28:40 +02:00
IBUS "IBUS support (experimental)" off \
CAIRO "Use Cairo for type engine (experimental)" off
.include <bsd.port.pre.mk>
.if defined(WITH_FRIBIDI)
CONFIGURE_ARGS+= --enable-fribidi
2009-08-22 19:36:57 +02:00
LIB_DEPENDS+= fribidi.3:${PORTSDIR}/converters/fribidi
2011-10-10 16:42:28 +02:00
PLIST_SUB+= FRIBIDI=""
.else
CONFIGURE_ARGS+= --disable-fribidi
2011-10-10 16:42:28 +02:00
PLIST_SUB+= FRIBIDI="@comment "
.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
PLIST_SUB+= UIM=""
.else
CONFIGURE_ARGS+= --disable-uim
PLIST_SUB+= UIM="@comment "
.endif
.if defined(WITH_M17NLIB)
CONFIGURE_ARGS+= --enable-m17nlib
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
LIB_DEPENDS+= m17n.4:${PORTSDIR}/devel/m17n-lib
PLIST_SUB+= M17NLIB=""
.else
CONFIGURE_ARGS+= --disable-m17nlib
PLIST_SUB+= M17NLIB="@comment "
.endif
.if defined(WITH_SCIM)
CONFIGURE_ARGS+= --enable-scim
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
LIB_DEPENDS+= scim-1.0.10:${PORTSDIR}/textproc/scim
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-1.0.400:${PORTSDIR}/textproc/ibus
2011-04-02 04:28:33 +02:00
PLIST_SUB+= IBUS=""
.else
CONFIGURE_ARGS+= --disable-ibus
PLIST_SUB+= IBUS="@comment "
.endif
2011-07-30 06:28:40 +02:00
.if defined(WITH_CAIRO)
CONFIGURE_ARGS+= --with-type-engines="xcore,xft,cairo"
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
LIB_DEPENDS+= cairo.2:${PORTSDIR}/graphics/cairo
2011-10-10 16:42:28 +02:00
PLIST_SUB+= CAIRO=""
2011-07-30 06:28:40 +02:00
.else
CONFIGURE_ARGS+= --with-type-engines="xcore,xft"
2011-10-10 16:42:28 +02:00
PLIST_SUB+= CAIRO="@comment "
2011-07-30 06:28:40 +02:00
.endif
.if ${OSVERSION} >= 900004
MAKE_ENV= LIBS_LOCAL=-lutempter
.else
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
LIB_DEPENDS+= utempter.0:${PORTSDIR}/sysutils/libutempter
.endif
USE_LDCONFIG= yes
USE_GETTEXT= yes
2002-06-30 17:27:40 +02:00
MAN1= mlterm.1 mlclient.1
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:
@${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
.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
.include <bsd.port.post.mk>