Bug 58342 - New port: graphics/ggiterm, a GGI-based ANSI terminal emulator
Summary: New port: graphics/ggiterm, a GGI-based ANSI terminal emulator
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-21 19:30 UTC by andi payn
Modified: 2003-12-09 00:07 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andi payn 2003-10-21 19:30:17 UTC
GGIterm is a GGI-based ANSI terminal emulator--like xterm or rxvt, etc.,
but it runs on any GGI target--X, SVGAlib, etc. It uses Freetype (by
default) for fonts, which is nice. It's not complete yet, but it is
usable (on X, at least; the SVGAlib target will not work for me on
FreeBSD, because GGIterm demands a resolution higher than my
libvga.config supports).

The autoconf script did a bad job on FreeBSD (and, for that matter, on
Mandrake Linux), so I wrote some quick workaround patches. The author
has been notified, and hopefully these won't be needed in the future.

Fix: 

--h9L28Zrp080495.1066702115/verdammt.falcotronic.net----KSU994iIE1eVjrUJsLnEsteBzlYzqqmPpW02RawPtHsrnn15
Content-Type: text/plain; name="ggiterm.shar"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="ggiterm.shar"

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	graphics/ggiterm
#	graphics/ggiterm/Makefile
#	graphics/ggiterm/files
#	graphics/ggiterm/files/patch-aa
#	graphics/ggiterm/files/patch-ab
#	graphics/ggiterm/pkg-descr
#	graphics/ggiterm/pkg-plist
#	graphics/ggiterm/README.html
#	graphics/ggiterm/distinfo
#
echo c - graphics/ggiterm
mkdir -p graphics/ggiterm > /dev/null 2>&1
echo x - graphics/ggiterm/Makefile
sed 's/^X//' >graphics/ggiterm/Makefile <<
'END-of-graphics/ggiterm/Makefile'
X# New ports collection makefile for:	ggiterm
X# Date created:		20 October 2003
X# Whom:			andi_payn@speedymail.com
X#
X# $FreeBSD$
X#
X
XPORTNAME=	ggiterm
XPORTVERSION=	0.5.1
XCATEGORIES=	graphics devel x11
XMASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR=	ggiterm
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	ports@FreeBSD.org
XCOMMENT=	A terminal emulator for GGI
X
XLIB_DEPENDS=	gii.0:${PORTSDIR}/devel/libgii
XLIB_DEPENDS+=	ggi.2:${PORTSDIR}/graphics/libggi
X.if !defined(WITHOUT_FREETYPE)
XLIB_DEPENDS+=	freetype.9:${PORTSDIR}/print/freetype2
XLIB_DEPENDS+=	iconv.3:${PORTSDIR}/converters/libiconv
X.endif
X
XUSE_GMAKE=	yes
XUSE_XLIB=	yes
XINSTALLS_SHLIB=	yes
X
XGNU_CONFIGURE=	yes
XCONFIGURE_ARGS=	--with-ggi=${PREFIX}
X.if !defined(WITHOUT_FREETYPE)
XCONFIGURE_ARGS+=--with-ft-prefix=${PREFIX}
X.endif
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
X
Xpre-everything::
X.if !defined(WITHOUT_FREETYPE)
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "ggiterm can be built without Freetype support. However,
as the author says,"
X	@${ECHO_MSG} "'if you don't have freetype you lose much of the ggiterm
reason for being,'"
X	@${ECHO_MSG} "so you probably don't want this. If you do, cancel now
and build with:"
X	@${ECHO_MSG} "  WITHOUT_FREETYPE=yes"
X	@${ECHO_MSG} ""
X.else
X	@${ECHO_MSG} ""
X	@${ECHO_MSG} "You have chosen to build ggiterm without Freetype. If
this wasn't your"
X	@${ECHO_MSG} "intention, cancel now and unset the 'WITHOUT_FREETYPE'
variable."
X	@${ECHO_MSG} ""
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${PREFIX}/share/doc/ggiterm
X	@${INSTALL_DATA} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/ggiterm
X	@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ggiterm
X.endif
X
X.include <bsd.port.mk>
END-of-graphics/ggiterm/Makefile
echo c - graphics/ggiterm/files
mkdir -p graphics/ggiterm/files > /dev/null 2>&1
echo x - graphics/ggiterm/files/patch-aa
sed 's/^X//' >graphics/ggiterm/files/patch-aa <<
'END-of-graphics/ggiterm/files/patch-aa'
Xdiff -ruN ../ggiterm-0.5.1.bak/ggiterm.c ./ggiterm.c
X--- ../ggiterm-0.5.1.bak/ggiterm.c	Mon Oct 20 18:04:02 2003
X+++ ./ggiterm.c	Mon Oct 20 18:05:09 2003
X@@ -18,13 +18,10 @@
X #include <signal.h>
X 
X /* for forkpty */
X-#ifdef HAVE_FORKPTY
X-/* forkpty is in libc */
X-#include <util.h>
X-#else
X-/* forkpty is in libutil */
X-#include <pty.h>
X-#endif /* HAVE_FORKPTY */
X+#include <libutil.h>
X+
X+/* for struct winsize */
X+#include <termios.h>
X 
X /* for strcmp */
X #include <string.h>
END-of-graphics/ggiterm/files/patch-aa
echo x - graphics/ggiterm/files/patch-ab
sed 's/^X//' >graphics/ggiterm/files/patch-ab <<
'END-of-graphics/ggiterm/files/patch-ab'
Xdiff -ruN ../ggiterm-0.5.1.bak/Makefile.am ./Makefile.am
X--- ../ggiterm-0.5.1.bak/Makefile.am	Mon Oct 20 18:04:02 2003
X+++ ./Makefile.am	Mon Oct 20 18:24:29 2003
X@@ -1,3 +1,3 @@
X bin_PROGRAMS = ggiterm
X ggiterm_SOURCES = ggiterm.c ft_support.c ansi.c iconv_support.c
graphics.c ggiterm.h config.rpath
X-ggiterm_LDFLAGS = @FT2_LIBS@
X+ggiterm_LDFLAGS = @FT2_LIBS@ @LIBICONV@
Xdiff -ruN ../ggiterm-0.5.1.bak/Makefile.in ./Makefile.in
X--- ../ggiterm-0.5.1.bak/Makefile.in	Mon Oct 20 18:04:02 2003
X+++ ./Makefile.in	Mon Oct 20 18:26:21 2003
X@@ -119,7 +119,7 @@
X target_alias = @target_alias@
X bin_PROGRAMS = ggiterm
X ggiterm_SOURCES = ggiterm.c ft_support.c ansi.c iconv_support.c
graphics.c ggiterm.h config.rpath
X-ggiterm_LDFLAGS = @FT2_LIBS@
X+ggiterm_LDFLAGS = @FT2_LIBS@ @LIBICONV@
X subdir = .
X ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
X mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
END-of-graphics/ggiterm/files/patch-ab
echo x - graphics/ggiterm/pkg-descr
sed 's/^X//' >graphics/ggiterm/pkg-descr <<
'END-of-graphics/ggiterm/pkg-descr'
XGGIterm is an ANSI-compatible terminal emulator (like xterm, rxvt,
Xgnome-terminal, konsole, etc.), but directed at LibGGI rather than
XX11. This means that, unlike most terminal emulators, it can run on a
XKGGI, SVGAlib, or other non-X target just as well as under X11.
X
XGGIterm uses freetype (by default) to render fonts, which means that
Xyou can use TT, Type 1, etc. fonts on your terminal.
X
XAt present, it's not complete--you probably don't want to replace
Xgnome-terminal or konsole yet under X, and it's only barely been
Xtested on other targets. But it works.
X
XWWW: http://ggiterm.sourceforge.net/
X
X--
Xandi_payn@speedymail.org
END-of-graphics/ggiterm/pkg-descr
echo x - graphics/ggiterm/pkg-plist
sed 's/^X//' >graphics/ggiterm/pkg-plist <<
'END-of-graphics/ggiterm/pkg-plist'
Xbin/ggiterm
Xshare/doc/ggiterm/AUTHORS
Xshare/doc/ggiterm/README
X@dirrm share/doc/ggiterm
END-of-graphics/ggiterm/pkg-plist
echo x - graphics/ggiterm/README.html
sed 's/^X//' >graphics/ggiterm/README.html <<
'END-of-graphics/ggiterm/README.html'
X<!DOCTYPE html PUBLIC "-//IETF//DTD HTML 2.0//EN">
X
X<html>
X  <head>
X    <title>The FreeBSD Ports Collection (graphics/ggiterm)</title>
X  </head>
X
X  <body>
X    <h1>The FreeBSD Ports Collection (graphics/ggiterm)</h1>
X    <hr>
X
X    <p>You are now in the directory for the port
"graphics/ggiterm".</p>
X
X    <p>The package name of this port is "ggiterm-0.5.1".</p>
X
X    <p>This is the one-line description for this port:</p>
X    <hr>
X
X    <p>
XAn xterm/etc. for GGI.
X    </p>
X    <hr>
X
X    <p>Please read the "<a href="pkg-descr">description file</a>" for a
X    longer description and/or visit the <a
href="http://ggiterm.sourceforge.net/">web site</a> for futher
informations.</p>
X
X    <p>If needed, you may contact the <a href=
X    "mailto:ports@FreeBSD.org">maintainer</a> of this port or the port
<a href=
X    "mailto:ports@FreeBSD.org">mailing-list</a>.</p>
X
X    <p>This port requires package(s) "" to build.</p>
X
X    <p>This port requires package(s) "" to run.</p>
X
X    <p>Go to the <a href="../../README.html">top of the ports tree</a>
for
X    a summary on how to use the ports collection.</p>
X    <hr>
X
X    <p><a href="../README.html">Go up one level</a> | <a href=
X    "../../README.html">Go to top of ports tree</a></p>
X  </body>
X</html>
X
END-of-graphics/ggiterm/README.html
echo x - graphics/ggiterm/distinfo
sed 's/^X//' >graphics/ggiterm/distinfo <<
'END-of-graphics/ggiterm/distinfo'
XMD5 (ggiterm-0.5.1.tar.gz) = fc1d37b2dfb82699dc54b6e080329241
END-of-graphics/ggiterm/distinfo
exit
Comment 1 Pav Lucistnik freebsd_committer freebsd_triage 2003-12-09 00:06:54 UTC
State Changed
From-To: open->closed

New port added, thanks!