diff options
author | nobutaka <nobutaka@FreeBSD.org> | 2004-11-14 23:48:52 +0800 |
---|---|---|
committer | nobutaka <nobutaka@FreeBSD.org> | 2004-11-14 23:48:52 +0800 |
commit | e4637049253f3ab885bbb9a05921a6e0ad0a8ca0 (patch) | |
tree | f94fb807d38bb729eb12f0e57540ac431b1181d5 /x11/mlterm/Makefile | |
parent | e662b051a61cd67210aae6908059ca8110b2d214 (diff) | |
download | freebsd-ports-gnome-e4637049253f3ab885bbb9a05921a6e0ad0a8ca0.tar.gz freebsd-ports-gnome-e4637049253f3ab885bbb9a05921a6e0ad0a8ca0.tar.zst freebsd-ports-gnome-e4637049253f3ab885bbb9a05921a6e0ad0a8ca0.zip |
- Update to 2.9.0.
- Use OPTIONS.
- Add three knobs(WITH_UIM, WITH_M17NLIB, WITH_IIIMF).
Note: IIIMF support is currently broken.
Diffstat (limited to 'x11/mlterm/Makefile')
-rw-r--r-- | x11/mlterm/Makefile | 66 |
1 files changed, 49 insertions, 17 deletions
diff --git a/x11/mlterm/Makefile b/x11/mlterm/Makefile index 0a7647a5e98f..b86efb35f597 100644 --- a/x11/mlterm/Makefile +++ b/x11/mlterm/Makefile @@ -6,8 +6,7 @@ # PORTNAME= mlterm -PORTVERSION= 2.8.0 -PORTREVISION= 1 +PORTVERSION= 2.9.0 CATEGORIES= x11 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -16,22 +15,61 @@ MAINTAINER= nobutaka@FreeBSD.org COMMENT= Multilingual X11 terminal emulator USE_X_PREFIX= yes -USE_GNOME= gdkpixbuf -USE_LIBTOOL_VER=13 +USE_GNOME= gtk20 lthack +USE_INC_LIBTOOL_VER=13 USE_REINPLACE= yes -CONFIGURE_ARGS= --with-imagelib=gdk-pixbuf1 --enable-utmp +USE_PERL5_BUILD=yes +CONFIGURE_ARGS= --with-imagelib=gdk-pixbuf --enable-utmp +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> .if defined(WITH_FRIBIDI) -CONFIGURE_ARGS= --enable-fribidi -LIB_DEPENDS= fribidi.0:${PORTSDIR}/converters/fribidi +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 " .endif INSTALLS_SHLIB= yes MAN1= mlterm.1 mlclient.1 -.include <bsd.port.pre.mk> - .if ${X_WINDOW_SYSTEM:L} == xfree86-3 PKGNAMESUFFIX= -noaa .else @@ -39,18 +77,12 @@ CONFIGURE_ARGS+= --enable-anti-alias LIB_DEPENDS+= Xft.2:${PORTSDIR}/x11-fonts/libXft .endif -pre-everything:: -.if !defined(WITH_FRIBIDI) - @${ECHO_MSG} - @${ECHO_MSG} "You may enable BiDi support by using the" - @${ECHO_MSG} "WITH_FRIBIDI option." - @${ECHO_MSG} -.endif - post-configure: ${REINPLACE_CMD} -e "s,%%PREFIX%%,${PREFIX}," \ -e "s,%%PERL%%,${PERL}," \ ${WRKSRC}/tool/w3mmlconfig/Makefile + ${CP} ${WRKSRC}/libtool ${WRKSRC}/kiklib/ + ${CP} ${WRKSRC}/libtool ${WRKSRC}/mkf/ post-build: (cd ${WRKSRC}/tool/w3mmlconfig; ${MAKE}) |