ports/149391: fix for port: x11/mlterm

Timothy Beyer beyert at cs.ucr.edu
Sat Aug 7 09:50:04 UTC 2010

>Number:         149391
>Category:       ports
>Synopsis:       fix for port: x11/mlterm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 07 09:50:04 UTC 2010
>Originator:     Timothy Beyer
>Release:        FreeBSD 8.0-RELEASE-p2 i386
no organization
System: FreeBSD aeonserv.aeonnet 8.0-RELEASE-p2 FreeBSD 8.0-RELEASE-p2 #0: Fri Jan 29 18:00:42 PST 2010 beyert at aeonserv.aeonnet:/usr/src/sys/i386/compile/CUSTOM i386

This patch prevents the following error from happening on my machine during compilation:

/usr/bin/ld: cannot find -lutempter
*** Error code 1

Stop in /usr/ports/x11/mlterm/work/mlterm-3.0.1/kiklib/src.

In this problem report is a patch to the Makefile that turns off libtool and the CONFIGURE_ENV line, which fixed the build problem on my system.  It also has two fewer warnings from portlint than the previous Makefile.  I attempted to preserve as much of the previous design as possible, but I do not know if it preserves all of the features desired by the maintainer, particularly on 9-CURRENT.

Also, this patch defaults to using --with-imagelib-gdk-pixbuf2 instead of --with-imagelib-gdk-pixbuf, and adds the --enable-optimize-redrawing switch.  I think these are probably beneficial.

    Apply the patch
    The included patch,

--- Makefile.diff begins here ---
--- Makefile.orig	2010-07-17 22:33:10.000000000 -0700
+++ Makefile	2010-08-07 01:42:58.000000000 -0700
@@ -15,16 +15,15 @@
 LIB_DEPENDS=	Xft.2:${PORTSDIR}/x11-fonts/libXft
 USE_GNOME=	gtk20 lthack
-USE_AUTOTOOLS=	libtool:22
-LIBTOOLFILES=	configure kiklib/configure mkf/configure
-CONFIGURE_ARGS=	--with-imagelib=gdk-pixbuf --enable-utmp \
+CONFIGURE_ARGS=	--with-imagelib=gdk-pixbuf2 --enable-utmp \
+		--mandir="${LOCALBASE}/man" --enable-optimize-redrawing \
 		--with-tools="mlclient,mlconfig,mlterm-menu,mlcc,w3mmlconfig" \
 OPTIONS=	FRIBIDI	"Use Fribidi for BiDi rendering" off \
 		UIM "uim support (experimental)" off \
@@ -94,7 +93,6 @@
 		${WRKSRC}/kiklib/configure ${WRKSRC}/mkf/configure
 	@${REINPLACE_CMD} -e "s, at CGI_BIN@,${PREFIX}/libexec/w3mmlconfig," \
 .if ${OSVERSION} >= 900004
--- Makefile.diff ends here ---

More information about the freebsd-ports-bugs mailing list