diff options
author | tijl <tijl@FreeBSD.org> | 2014-04-25 03:27:33 +0800 |
---|---|---|
committer | tijl <tijl@FreeBSD.org> | 2014-04-25 03:27:33 +0800 |
commit | 18cea553c925bf200de08d993b571c40338701da (patch) | |
tree | 2d5c1e42e3b3086e74aa3d8f57424713ec4005fc /x11 | |
parent | fde1e5fc07b22b92a1794324798f4249fd2bc5d2 (diff) | |
download | freebsd-ports-gnome-18cea553c925bf200de08d993b571c40338701da.tar.gz freebsd-ports-gnome-18cea553c925bf200de08d993b571c40338701da.tar.zst freebsd-ports-gnome-18cea553c925bf200de08d993b571c40338701da.zip |
- Replace libXft dependency with USE_XORG=xft.
- Convert to USES=libtool.
- Add include directories to CPPFLAGS instead of CFLAGS.
- Use LDFLAGS instead of LIBS.
- Remove PTHREAD_LIBS reference.
- Add DOCS option.
- Staging.
- Remove MAKE_ENV. Not needed.
Diffstat (limited to 'x11')
-rw-r--r-- | x11/mlterm/Makefile | 54 | ||||
-rw-r--r-- | x11/mlterm/pkg-plist | 27 |
2 files changed, 22 insertions, 59 deletions
diff --git a/x11/mlterm/Makefile b/x11/mlterm/Makefile index d4aa231745d4..066ce7c2ded1 100644 --- a/x11/mlterm/Makefile +++ b/x11/mlterm/Makefile @@ -3,29 +3,28 @@ PORTNAME= mlterm PORTVERSION= 3.3.2 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= SF/${PORTNAME}/01release/${PORTNAME}-${PORTVERSION} MAINTAINER= nobutaka@FreeBSD.org COMMENT= Multilingual X11 terminal emulator -LIB_DEPENDS= Xft:${PORTSDIR}/x11-fonts/libXft - -USE_XORG= sm -USE_GNOME= gtk20 lthack vte -USE_AUTOTOOLS= libtool -LIBTOOLFILES= configure kiklib/configure mkf/configure +USES= gettext libtool perl5 pkgconfig +USE_XORG= sm xft +USE_GNOME= gtk20 vte +USE_LDCONFIG= yes USE_PERL5= build -USES= gettext pkgconfig perl5 +GNU_CONFIGURE= yes CONFIGURE_ARGS= --with-imagelib=gdk-pixbuf2 --enable-utmp \ --enable-optimize-redrawing \ --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 +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -lintl MAKE_JOBS_UNSAFE= yes -OPTIONS_DEFINE= CAIRO FRIBIDI IBUS M17NLIB SCIM SIXEL UIM +OPTIONS_DEFINE= CAIRO DOCS 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)" @@ -34,8 +33,7 @@ SCIM_DESC= "SCIM support (experimental)" SIXEL_DESC= "Sixel graphics support" UIM_DESC= "uim support (experimental)" -NO_STAGE= yes -.include <bsd.port.pre.mk> +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MFRIBIDI} CONFIGURE_ARGS+= --enable-fribidi @@ -48,7 +46,6 @@ PLIST_SUB+= FRIBIDI="@comment " .if ${PORT_OPTIONS:MUIM} CONFIGURE_ARGS+= --enable-uim -MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib LIB_DEPENDS+= uim:${PORTSDIR}/textproc/uim PLIST_SUB+= UIM="" .else @@ -58,7 +55,6 @@ PLIST_SUB+= UIM="@comment " .if ${PORT_OPTIONS:MM17NLIB} CONFIGURE_ARGS+= --enable-m17nlib -MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib LIB_DEPENDS+= m17n:${PORTSDIR}/devel/m17n-lib PLIST_SUB+= M17NLIB="" .else @@ -68,7 +64,6 @@ PLIST_SUB+= M17NLIB="@comment " .if ${PORT_OPTIONS:MSCIM} CONFIGURE_ARGS+= --enable-scim -MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib LIB_DEPENDS+= scim-1.0:${PORTSDIR}/textproc/scim PLIST_SUB+= SCIM="" .else @@ -78,7 +73,6 @@ PLIST_SUB+= SCIM="@comment " .if ${PORT_OPTIONS:MIBUS} CONFIGURE_ARGS+= --enable-ibus -MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib LIB_DEPENDS+= ibus-1.0:${PORTSDIR}/textproc/ibus PLIST_SUB+= IBUS="" .else @@ -88,7 +82,6 @@ PLIST_SUB+= IBUS="@comment " .if ${PORT_OPTIONS:MCAIRO} CONFIGURE_ARGS+= --with-type-engines="xcore,xft,cairo" -MAKE_ENV= LIBS_LOCAL=-L${LOCALBASE}/lib LIB_DEPENDS+= cairo:${PORTSDIR}/graphics/cairo PLIST_SUB+= CAIRO="" .else @@ -104,23 +97,11 @@ 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 +.if ${OSVERSION} < 900004 LIB_DEPENDS+= utempter:${PORTSDIR}/sysutils/libutempter .endif -USE_LDCONFIG= yes - -MAN1= mlterm.1 mlclient.1 - -post-patch: - @${REINPLACE_CMD} -e "s,echo aout,echo elf,g" ${WRKSRC}/configure \ - ${WRKSRC}/kiklib/configure ${WRKSRC}/mkf/configure - post-configure: - @${CP} ${LIBTOOL} ${WRKSRC} @${REINPLACE_CMD} -e "s,@CGI_BIN@,${PREFIX}/libexec/w3mmlconfig," \ ${WRKSRC}/tool/w3mmlconfig/mlconfig.cgi .if ${OSVERSION} >= 900004 @@ -129,11 +110,10 @@ post-configure: .endif post-install: - (cd ${WRKSRC}/tool/w3mmlconfig; ${MAKE} install) -.if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - ${INSTALL_DATA} ${WRKSRC}/doc/ja/README.ja ${DOCSDIR} -.endif + (cd ${WRKSRC}/tool/w3mmlconfig && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \ + ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET}) + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/doc/ja/README.ja ${STAGEDIR}${DOCSDIR} -.include <bsd.port.post.mk> +.include <bsd.port.mk> diff --git a/x11/mlterm/pkg-plist b/x11/mlterm/pkg-plist index 5852dd3a0186..3f6cb1dce308 100644 --- a/x11/mlterm/pkg-plist +++ b/x11/mlterm/pkg-plist @@ -17,79 +17,62 @@ etc/mlterm/vaafont etc/mlterm/vfont etc/mlterm/xim lib/libkik.a -lib/libkik.la lib/libkik.so lib/libkik.so.15 +lib/libkik.so.15.0.1 lib/libmkf.a -lib/libmkf.la lib/libmkf.so lib/libmkf.so.16 +lib/libmkf.so.16.0.0 lib/libmlterm_core.a -lib/libmlterm_core.la lib/libmlterm_core.so lib/libvte-mlterm.a -lib/libvte-mlterm.la lib/libvte-mlterm.so lib/libvte-mlterm.so.9 +lib/libvte-mlterm.so.9.0.0 lib/mkf/libmkf_8bits.a -lib/mkf/libmkf_8bits.la lib/mkf/libmkf_8bits.so lib/mkf/libmkf_jajp.a -lib/mkf/libmkf_jajp.la lib/mkf/libmkf_jajp.so lib/mkf/libmkf_kokr.a -lib/mkf/libmkf_kokr.la lib/mkf/libmkf_kokr.so lib/mkf/libmkf_zh.a -lib/mkf/libmkf_zh.la lib/mkf/libmkf_zh.so lib/mlterm/libathena.a -lib/mlterm/libathena.la lib/mlterm/libathena.so %%FRIBIDI%%lib/mlterm/libctl_bidi.a -%%FRIBIDI%%lib/mlterm/libctl_bidi.la %%FRIBIDI%%lib/mlterm/libctl_bidi.so %%IBUS%%lib/mlterm/libim-ibus.a -%%IBUS%%lib/mlterm/libim-ibus.la %%IBUS%%lib/mlterm/libim-ibus.so lib/mlterm/libim-kbd.a -lib/mlterm/libim-kbd.la lib/mlterm/libim-kbd.so %%M17NLIB%%lib/mlterm/libim-m17nlib.a -%%M17NLIB%%lib/mlterm/libim-m17nlib.la %%M17NLIB%%lib/mlterm/libim-m17nlib.so %%SCIM%%lib/mlterm/libim-scim.a -%%SCIM%%lib/mlterm/libim-scim.la %%SCIM%%lib/mlterm/libim-scim.so %%UIM%%lib/mlterm/libim-uim.a -%%UIM%%lib/mlterm/libim-uim.la %%UIM%%lib/mlterm/libim-uim.so lib/mlterm/libmotif.a -lib/mlterm/libmotif.la lib/mlterm/libmotif.so lib/mlterm/libmozmodern.a -lib/mlterm/libmozmodern.la lib/mlterm/libmozmodern.so lib/mlterm/libnext.a -lib/mlterm/libnext.la lib/mlterm/libnext.so lib/mlterm/libsample.a -lib/mlterm/libsample.la lib/mlterm/libsample.so lib/mlterm/libsample2.a -lib/mlterm/libsample2.la lib/mlterm/libsample2.so %%CAIRO%%lib/mlterm/libtype_cairo.a -%%CAIRO%%lib/mlterm/libtype_cairo.la %%CAIRO%%lib/mlterm/libtype_cairo.so lib/mlterm/libtype_xft.a -lib/mlterm/libtype_xft.la lib/mlterm/libtype_xft.so libexec/mlterm/mlconfig libexec/mlterm/mlimgloader libexec/mlterm/mlterm-menu libexec/w3mmlconfig/mlconfig-data.pl libexec/w3mmlconfig/mlconfig.cgi +man/man1/mlclient.1.gz +man/man1/mlterm.1.gz %%PORTDOCS%%%%DOCSDIR%%/README %%PORTDOCS%%%%DOCSDIR%%/README.ja share/locale/ar/LC_MESSAGES/mlconfig.mo |