the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: mlterm
Version: 2.9.3
Revision: 105
License: BSD
Maintainer: Todai Fink Team
Description: Multilingual terminal emulator on X11
BuildDepends: <<
glitz, expat1, cairo (>= 1.6-1), fontconfig2-dev (>= 2.4.1-1), freetype219 (>= 2.3.5-1),
fribidi, fribidi-dev, libjpeg, libpng3, libtiff, giflib,
x11-dev, xft2-dev (>= 2.1.2-5),
gtk+2-dev (>= 2.12.0-1), atk1 (>= 1.20.0-1), glib2-dev (>= 2.14.0-1), pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1),
libgettext3-dev, gettext-tools (>= 0.14.5-3), libiconv-dev,
pkgconfig (>= 0.21-1), autoconf, libtool14, automake1.9
<<
Depends: <<
%N-shlibs (= %v-%r),
fribidi-shlibs, libjpeg-shlibs, libpng3-shlibs, libtiff-shlibs, giflib-shlibs,
x11-shlibs, xft2-shlibs,
gtk+2 (>= 2.12.0-1), atk1-shlibs (>= 1.20.0-1), glib2-shlibs (>= 2.14.0-1), pango1-xft2-ft219-shlibs (>= 1.18.4-4),
libgettext3-shlibs, libiconv
<<
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 20188c0981a49dbb95c3ff5b8eb25365
PatchScript: <<
#!/bin/sh -ex
patch -p1 < %a/%n.patch
for dir in . mkf kiklib; do (
cd $dir
%p/bin/libtoolize --force
rm -f aclocal.m4
%p/bin/aclocal
%p/bin/autoconf
) || exit $?
done
for mk in `find . -name Makefile.in -or -name Makefile.in.in`; do
echo 'datarootdir=@datarootdir@' >> $mk
done
<<
ConfigureParams: --enable-shared --with-imagelib=gdk-pixbuf --enable-fribidi --enable-ind --prefix=%p --libexecdir=%p/lib/mlterm --infodir=%p/share/info --mandir=%p/share/man --with-libiconv-prefix=%p --with-libintl-prefix=%p --enable-anti-alias --disable-dependency-tracking
CompileScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:%p/lib/xft2/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
./configure %c
make
<<
InstallScript: <<
make -j1 install DESTDIR=%d
install -d -m 755 %i/share/doc
/bin/cp -R doc %i/share/doc/%n
install -d -m 755 %i/share/doc/%n/etc
install -m 644 etc/main.ja etc/font.ja %i/share/doc/%n/etc
<<
ConfFiles: <<
%p/etc/mlterm/color
%p/etc/mlterm/main
%p/etc/mlterm/menu
%p/etc/mlterm/termcap
%p/etc/mlterm/vaafont
%p/etc/mlterm/xim
%p/etc/mlterm/aafont
%p/etc/mlterm/font
%p/etc/mlterm/key
%p/etc/mlterm/taafont
%p/etc/mlterm/tfont
%p/etc/mlterm/vfont
<<
SplitOff: <<
Package: %N-shlibs
Replaces: %N (<= 2.9.3-4)
Depends: x11-shlibs
Files: lib/libkik.*.dylib lib/libmkf.*.dylib lib/mlterm/lib*.so
Shlibs: <<
%p/lib/libkik.10.dylib 11.0.0 %n (>= 2.9.3-5)
%p/lib/libmkf.13.dylib 14.0.0 %n (>= 2.9.3-5)
<<
Description: Shared libraries of mlterm
DocFiles: README LICENCE ABOUT-NLS
<<
DocFiles: README LICENCE ABOUT-NLS
DescPort: <<
This package depends on the freetype and fontconfig contained in
the installed X11 indirectly due to xft2. It means, for example,
the binary built with Apple's X11 might not run where xorg is installed.
In contrast, it is generally safe to link the mlterm against another
version of the freetype or fontconfig is generally safe as long as
twolevel_namespace is used. It may happen if the m17n-lib support is
enabled in future. If it happens, don't forget to add the appropreate
libraries to BuildDepends and help the configure to find them.
Autoconf 2.5 or higher is needed to update libtool to build dynamically
loadable scrollbar modules. M4 files shipped with gettext-tools 0.14.x
is used in this step.
We define datarootdir in makefiles to prevent warnings by autoconf >= 2.6.
MacOS X >= 10.4 has posix_openpt() but needs ioctl(TIOCSTTY) instead of
open(slavetty) to acquire a controlling tty. The patch to
kik_pty_streams.c solves the problem. MacOS X <= 10.3 only has the
traditional BSD ptys and does not affected by the problem.
<<
Homepage: http://mlterm.sourceforge.net/
diff -Naur mlterm-2.9.3.orig/configure.in mlterm-2.9.3/configure.in
--- mlterm-2.9.3.orig/configure.in 2006-05-07 10:31:09.000000000 +0000
+++ mlterm-2.9.3/configure.in 2007-04-14 07:03:54.000000000 +0000
@@ -31,6 +31,7 @@
dnl The ugly part should be replaced by:
dnl AC_PATH_TOOL(PKG_CONFIG, pkg-config)
+m4_ifdef([m4_pattern_allow], [m4_pattern_allow([PKG_CONFIG_.*])])
if test x"${build}" != x"${host}"; then
AC_CHECK_TOOL(CC, gcc)
AC_CHECK_TOOL(AR, ar)
diff -Naur mlterm-2.9.3.orig/kiklib/configure.in mlterm-2.9.3/kiklib/configure.in
--- mlterm-2.9.3.orig/kiklib/configure.in 2006-04-05 16:26:54.000000000 +0000
+++ mlterm-2.9.3/kiklib/configure.in 2007-04-14 07:31:26.000000000 +0000
@@ -251,7 +251,6 @@
else
AC_CHECK_FUNC( posix_openpt,
[
- AC_DEFINE(HAVE_POSIX_OPENPT,,"HAVE_POSIX_OPENPT")
kik_cv_pty=streams
], [
if test -c /dev/ptmx ; then
@@ -263,6 +262,9 @@
AC_MSG_RESULT($kik_cv_pty)
PTY_NAME="${kik_cv_pty}"
AC_SUBST(PTY_NAME)
+if test "x$ac_cv_func_posix_openpt" = xyes; then
+ AC_DEFINE(HAVE_POSIX_OPENPT,,"HAVE_POSIX_OPENPT")
+fi
#
diff -Naur mlterm-2.9.3.orig/kiklib/src/kik_pty_streams.c mlterm-2.9.3/kiklib/src/kik_pty_streams.c
--- mlterm-2.9.3.orig/kiklib/src/kik_pty_streams.c 2005-11-21 14:24:03.000000000 +0000
+++ mlterm-2.9.3/kiklib/src/kik_pty_streams.c 2007-04-29 03:09:10.000000000 +0000
@@ -2,6 +2,9 @@
* $Id: kik_pty_streams.c,v 1.20 2005/11/21 14:24:03 h_minami Exp $
*/
+#if defined(__APPLE__) && defined(__MACH__) /* MacOS X */
+# define _APPLE_C_SOURCE
+#else
/* ptsname/grantpt/unlockpt are not available without _XOPEN_SOURCE
* on GNU libc based systems. (It may have some ill side-effect though) */
#define _XOPEN_SOURCE 500
@@ -12,6 +15,7 @@
/* for solaris */
#define __EXTENSIONS__
+#endif /* not MacOS X */
#include "kik_pty.h"
@@ -244,6 +248,12 @@
}
#endif /*TIOCNOTTY*/
#endif /*HAVE_SETSID*/
+#ifdef TIOCSCTTY /* BSD (in addition Linux also knows TIOCSCTTY) */
+ if(ioctl(*slave, TIOCSCTTY, NULL) < 0)
+ {
+ return -1 ;
+ }
+#else /* no TIOCSCTTY (SysV) */
fd = open("/dev/tty", O_RDWR | O_NOCTTY);
if (fd >= 0)
{
@@ -260,6 +270,7 @@
return -1;
}
close(fd);
+#endif /* no TIOCSCTTY (SysV) */
dup2( *slave , 0) ;
dup2( *slave , 1) ;
diff -Naur mlterm-2.9.3.orig/tool/mlconfig/po/Makefile.in.in mlterm-2.9.3/tool/mlconfig/po/Makefile.in.in
--- mlterm-2.9.3.orig/tool/mlconfig/po/Makefile.in.in 2003-01-12 10:08:51.000000000 +0000
+++ mlterm-2.9.3/tool/mlconfig/po/Makefile.in.in 2005-04-02 17:29:55.000000000 +0000
@@ -26,8 +26,7 @@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
-MKINSTALLDIRS = @MKINSTALLDIRS@
-mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
+mkinstalldirs = @MKINSTALLDIRS@
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@
Package: mlterm
Version: 2.9.3
Revision: 105
License: BSD
Maintainer: Todai Fink Team
Description: Multilingual terminal emulator on X11
BuildDepends: <<
glitz, expat1, cairo (>= 1.6-1), fontconfig2-dev (>= 2.4.1-1), freetype219 (>= 2.3.5-1),
fribidi, fribidi-dev, libjpeg, libpng3, libtiff, giflib,
x11-dev, xft2-dev (>= 2.1.2-5),
gtk+2-dev (>= 2.12.0-1), atk1 (>= 1.20.0-1), glib2-dev (>= 2.14.0-1), pango1-xft2-ft219-dev (>= 1.18.4-4), pixman (>= 0.10.0-1),
libgettext3-dev, gettext-tools (>= 0.14.5-3), libiconv-dev,
pkgconfig (>= 0.21-1), autoconf, libtool14, automake1.9
<<
Depends: <<
%N-shlibs (= %v-%r),
fribidi-shlibs, libjpeg-shlibs, libpng3-shlibs, libtiff-shlibs, giflib-shlibs,
x11-shlibs, xft2-shlibs,
gtk+2 (>= 2.12.0-1), atk1-shlibs (>= 1.20.0-1), glib2-shlibs (>= 2.14.0-1), pango1-xft2-ft219-shlibs (>= 1.18.4-4),
libgettext3-shlibs, libiconv
<<
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 20188c0981a49dbb95c3ff5b8eb25365
PatchScript: <<
#!/bin/sh -ex
patch -p1 < %a/%n.patch
for dir in . mkf kiklib; do (
cd $dir
%p/bin/libtoolize --force
rm -f aclocal.m4
%p/bin/aclocal
%p/bin/autoconf
) || exit $?
done
for mk in `find . -name Makefile.in -or -name Makefile.in.in`; do
echo 'datarootdir=@datarootdir@' >> $mk
done
<<
ConfigureParams: --enable-shared --with-imagelib=gdk-pixbuf --enable-fribidi --enable-ind --prefix=%p --libexecdir=%p/lib/mlterm --infodir=%p/share/info --mandir=%p/share/man --with-libiconv-prefix=%p --with-libintl-prefix=%p --enable-anti-alias --disable-dependency-tracking
CompileScript: <<
#!/bin/sh -ev
export PKG_CONFIG_PATH="%p/lib/pango-ft219/lib/pkgconfig:%p/lib/fontconfig2/lib/pkgconfig:%p/lib/freetype219/lib/pkgconfig:%p/lib/xft2/lib/pkgconfig:$PKG_CONFIG_PATH" FREETYPE_CONFIG=%p/lib/freetype219/bin/freetype-config
./configure %c
make
<<
InstallScript: <<
make -j1 install DESTDIR=%d
install -d -m 755 %i/share/doc
/bin/cp -R doc %i/share/doc/%n
install -d -m 755 %i/share/doc/%n/etc
install -m 644 etc/main.ja etc/font.ja %i/share/doc/%n/etc
<<
ConfFiles: <<
%p/etc/mlterm/color
%p/etc/mlterm/main
%p/etc/mlterm/menu
%p/etc/mlterm/termcap
%p/etc/mlterm/vaafont
%p/etc/mlterm/xim
%p/etc/mlterm/aafont
%p/etc/mlterm/font
%p/etc/mlterm/key
%p/etc/mlterm/taafont
%p/etc/mlterm/tfont
%p/etc/mlterm/vfont
<<
SplitOff: <<
Package: %N-shlibs
Replaces: %N (<= 2.9.3-4)
Depends: x11-shlibs
Files: lib/libkik.*.dylib lib/libmkf.*.dylib lib/mlterm/lib*.so
Shlibs: <<
%p/lib/libkik.10.dylib 11.0.0 %n (>= 2.9.3-5)
%p/lib/libmkf.13.dylib 14.0.0 %n (>= 2.9.3-5)
<<
Description: Shared libraries of mlterm
DocFiles: README LICENCE ABOUT-NLS
<<
DocFiles: README LICENCE ABOUT-NLS
DescPort: <<
This package depends on the freetype and fontconfig contained in
the installed X11 indirectly due to xft2. It means, for example,
the binary built with Apple's X11 might not run where xorg is installed.
In contrast, it is generally safe to link the mlterm against another
version of the freetype or fontconfig is generally safe as long as
twolevel_namespace is used. It may happen if the m17n-lib support is
enabled in future. If it happens, don't forget to add the appropreate
libraries to BuildDepends and help the configure to find them.
Autoconf 2.5 or higher is needed to update libtool to build dynamically
loadable scrollbar modules. M4 files shipped with gettext-tools 0.14.x
is used in this step.
We define datarootdir in makefiles to prevent warnings by autoconf >= 2.6.
MacOS X >= 10.4 has posix_openpt() but needs ioctl(TIOCSTTY) instead of
open(slavetty) to acquire a controlling tty. The patch to
kik_pty_streams.c solves the problem. MacOS X <= 10.3 only has the
traditional BSD ptys and does not affected by the problem.
<<
Homepage: http://mlterm.sourceforge.net/
diff -Naur mlterm-2.9.3.orig/configure.in mlterm-2.9.3/configure.in
--- mlterm-2.9.3.orig/configure.in 2006-05-07 10:31:09.000000000 +0000
+++ mlterm-2.9.3/configure.in 2007-04-14 07:03:54.000000000 +0000
@@ -31,6 +31,7 @@
dnl The ugly part should be replaced by:
dnl AC_PATH_TOOL(PKG_CONFIG, pkg-config)
+m4_ifdef([m4_pattern_allow], [m4_pattern_allow([PKG_CONFIG_.*])])
if test x"${build}" != x"${host}"; then
AC_CHECK_TOOL(CC, gcc)
AC_CHECK_TOOL(AR, ar)
diff -Naur mlterm-2.9.3.orig/kiklib/configure.in mlterm-2.9.3/kiklib/configure.in
--- mlterm-2.9.3.orig/kiklib/configure.in 2006-04-05 16:26:54.000000000 +0000
+++ mlterm-2.9.3/kiklib/configure.in 2007-04-14 07:31:26.000000000 +0000
@@ -251,7 +251,6 @@
else
AC_CHECK_FUNC( posix_openpt,
[
- AC_DEFINE(HAVE_POSIX_OPENPT,,"HAVE_POSIX_OPENPT")
kik_cv_pty=streams
], [
if test -c /dev/ptmx ; then
@@ -263,6 +262,9 @@
AC_MSG_RESULT($kik_cv_pty)
PTY_NAME="${kik_cv_pty}"
AC_SUBST(PTY_NAME)
+if test "x$ac_cv_func_posix_openpt" = xyes; then
+ AC_DEFINE(HAVE_POSIX_OPENPT,,"HAVE_POSIX_OPENPT")
+fi
#
diff -Naur mlterm-2.9.3.orig/kiklib/src/kik_pty_streams.c mlterm-2.9.3/kiklib/src/kik_pty_streams.c
--- mlterm-2.9.3.orig/kiklib/src/kik_pty_streams.c 2005-11-21 14:24:03.000000000 +0000
+++ mlterm-2.9.3/kiklib/src/kik_pty_streams.c 2007-04-29 03:09:10.000000000 +0000
@@ -2,6 +2,9 @@
* $Id: kik_pty_streams.c,v 1.20 2005/11/21 14:24:03 h_minami Exp $
*/
+#if defined(__APPLE__) && defined(__MACH__) /* MacOS X */
+# define _APPLE_C_SOURCE
+#else
/* ptsname/grantpt/unlockpt are not available without _XOPEN_SOURCE
* on GNU libc based systems. (It may have some ill side-effect though) */
#define _XOPEN_SOURCE 500
@@ -12,6 +15,7 @@
/* for solaris */
#define __EXTENSIONS__
+#endif /* not MacOS X */
#include "kik_pty.h"
@@ -244,6 +248,12 @@
}
#endif /*TIOCNOTTY*/
#endif /*HAVE_SETSID*/
+#ifdef TIOCSCTTY /* BSD (in addition Linux also knows TIOCSCTTY) */
+ if(ioctl(*slave, TIOCSCTTY, NULL) < 0)
+ {
+ return -1 ;
+ }
+#else /* no TIOCSCTTY (SysV) */
fd = open("/dev/tty", O_RDWR | O_NOCTTY);
if (fd >= 0)
{
@@ -260,6 +270,7 @@
return -1;
}
close(fd);
+#endif /* no TIOCSCTTY (SysV) */
dup2( *slave , 0) ;
dup2( *slave , 1) ;
diff -Naur mlterm-2.9.3.orig/tool/mlconfig/po/Makefile.in.in mlterm-2.9.3/tool/mlconfig/po/Makefile.in.in
--- mlterm-2.9.3.orig/tool/mlconfig/po/Makefile.in.in 2003-01-12 10:08:51.000000000 +0000
+++ mlterm-2.9.3/tool/mlconfig/po/Makefile.in.in 2005-04-02 17:29:55.000000000 +0000
@@ -26,8 +26,7 @@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
-MKINSTALLDIRS = @MKINSTALLDIRS@
-mkinstalldirs = $(SHELL) `case "$(MKINSTALLDIRS)" in /*) echo "$(MKINSTALLDIRS)" ;; *) echo "$(top_builddir)/$(MKINSTALLDIRS)" ;; esac`
+mkinstalldirs = @MKINSTALLDIRS@
GMSGFMT = @GMSGFMT@
MSGFMT = @MSGFMT@