freebsd-ports/x11/mlterm/Makefile

140 lines
3.6 KiB
Makefile
Raw Normal View History

2013-03-09 01:52:53 +01:00
# Created by: MANTANI Nobutaka <nobutaka@nobutaka.com>
# $FreeBSD$
PORTNAME= mlterm
2013-03-09 01:52:53 +01:00
PORTVERSION= 3.1.8
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
2012-06-02 15:12:06 +02:00
LIB_DEPENDS= Xft:${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
USES= gettext pkgconfig perl5
CONFIGURE_ARGS= --with-imagelib=gdk-pixbuf2 --enable-utmp \
2012-06-02 15:12:06 +02:00
--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
2012-10-25 14:34:06 +02:00
OPTIONS_DEFINE= CAIRO FRIBIDI IBUS M17NLIB SCIM SIXEL UIM
CAIRO_DESC= "Use Cairo for type engine (experimental)"
FRIBIDI_DESC= "Use Fribidi for BiDi rendering"
IBUS_DESC= "IBUS support (experimental)"
M17NLIB_DESC= "m17n library support (experimental)"
SCIM_DESC= "SCIM support (experimental)"
SIXEL_DESC= "Sixel graphics support"
UIM_DESC= "uim support (experimental)"
NO_STAGE= yes
.include <bsd.port.pre.mk>
2012-10-25 14:34:06 +02:00
.if ${PORT_OPTIONS:MFRIBIDI}
CONFIGURE_ARGS+= --enable-fribidi
2012-06-02 15:12:06 +02:00
LIB_DEPENDS+= fribidi:${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
2012-10-25 14:34:06 +02:00
.if ${PORT_OPTIONS:MUIM}
CONFIGURE_ARGS+= --enable-uim
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
2012-06-02 15:12:06 +02:00
LIB_DEPENDS+= uim:${PORTSDIR}/textproc/uim
PLIST_SUB+= UIM=""
.else
CONFIGURE_ARGS+= --disable-uim
PLIST_SUB+= UIM="@comment "
.endif
2012-10-25 14:34:06 +02:00
.if ${PORT_OPTIONS:MM17NLIB}
CONFIGURE_ARGS+= --enable-m17nlib
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
2012-06-02 15:12:06 +02:00
LIB_DEPENDS+= m17n:${PORTSDIR}/devel/m17n-lib
PLIST_SUB+= M17NLIB=""
.else
CONFIGURE_ARGS+= --disable-m17nlib
PLIST_SUB+= M17NLIB="@comment "
.endif
2012-10-25 14:34:06 +02:00
.if ${PORT_OPTIONS:MSCIM}
CONFIGURE_ARGS+= --enable-scim
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
2012-06-02 15:12:06 +02:00
LIB_DEPENDS+= scim-1.0:${PORTSDIR}/textproc/scim
PLIST_SUB+= SCIM=""
.else
CONFIGURE_ARGS+= --disable-scim
PLIST_SUB+= SCIM="@comment "
.endif
2012-10-25 14:34:06 +02:00
.if ${PORT_OPTIONS:MIBUS}
2011-04-02 04:28:33 +02:00
CONFIGURE_ARGS+= --enable-ibus
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
2012-06-02 15:12:06 +02:00
LIB_DEPENDS+= ibus-1.0:${PORTSDIR}/textproc/ibus
2011-04-02 04:28:33 +02:00
PLIST_SUB+= IBUS=""
.else
CONFIGURE_ARGS+= --disable-ibus
PLIST_SUB+= IBUS="@comment "
.endif
2012-10-25 14:34:06 +02:00
.if ${PORT_OPTIONS:MCAIRO}
2011-07-30 06:28:40 +02:00
CONFIGURE_ARGS+= --with-type-engines="xcore,xft,cairo"
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
2012-06-02 15:12:06 +02:00
LIB_DEPENDS+= cairo:${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
2012-10-25 14:34:06 +02:00
.if ${PORT_OPTIONS:MSIXEL}
CONFIGURE_ARGS+= --enable-sixel
PLIST_SUB+= SIXEL=""
.else
CONFIGURE_ARGS+= --disable-sixel
PLIST_SUB+= SIXEL="@comment "
.endif
.if ${OSVERSION} >= 900004
MAKE_ENV= LIBS_LOCAL=-lutempter
.else
MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib
2012-06-02 15:12:06 +02:00
LIB_DEPENDS+= utempter:${PORTSDIR}/sysutils/libutempter
.endif
USE_LDCONFIG= 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)
2013-03-09 01:52:53 +01:00
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/ja/README.ja ${DOCSDIR}
2002-01-29 14:27:13 +01:00
.endif
.include <bsd.port.post.mk>