summaryrefslogtreecommitdiffstats
path: root/x11
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-09 00:05:55 +0000
committerpav <pav@FreeBSD.org>2003-12-09 00:05:55 +0000
commit43058d9985ac3bd1afbab06eb3551a7ef8f6165d (patch)
tree82d5c0c177182851e03a386b3cf3cb0856091ee3 /x11
parent67cc439e7a4f899051257c6a2e42a67de82f9456 (diff)
downloadFreeBSD-ports-43058d9985ac3bd1afbab06eb3551a7ef8f6165d.zip
FreeBSD-ports-43058d9985ac3bd1afbab06eb3551a7ef8f6165d.tar.gz
Add ggiterm, a GGI-based ANSI terminal emulator, but it runs on any GGI target
- X, SVGAlib, etc. It uses Freetype (by default) for fonts. PR: ports/58342 Submitted by: andi payn <andi_payn@speedymail.org>
Diffstat (limited to 'x11')
-rw-r--r--x11/Makefile1
-rw-r--r--x11/ggiterm/Makefile58
-rw-r--r--x11/ggiterm/distinfo1
-rw-r--r--x11/ggiterm/files/patch-Makefile.am20
-rw-r--r--x11/ggiterm/files/patch-ggiterm.c21
-rw-r--r--x11/ggiterm/pkg-descr16
-rw-r--r--x11/ggiterm/pkg-plist4
7 files changed, 121 insertions, 0 deletions
diff --git a/x11/Makefile b/x11/Makefile
index 37d3b48..ecd0d87 100644
--- a/x11/Makefile
+++ b/x11/Makefile
@@ -42,6 +42,7 @@
SUBDIR += fspanel
SUBDIR += gdkxft
SUBDIR += gdm2
+ SUBDIR += ggiterm
SUBDIR += gmessage
SUBDIR += gmrun
SUBDIR += gnome-swallow
diff --git a/x11/ggiterm/Makefile b/x11/ggiterm/Makefile
new file mode 100644
index 0000000..244a2af
--- /dev/null
+++ b/x11/ggiterm/Makefile
@@ -0,0 +1,58 @@
+# New ports collection makefile for: ggiterm
+# Date created: 20 October 2003
+# Whom: andi_payn@speedymail.com
+#
+# $FreeBSD$
+#
+
+PORTNAME= ggiterm
+PORTVERSION= 0.5.1
+CATEGORIES= x11
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ggiterm
+DISTNAME= ${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+COMMENT= A terminal emulator for GGI
+
+LIB_DEPENDS= ggi.2:${PORTSDIR}/graphics/libggi
+.if !defined(WITHOUT_FREETYPE)
+LIB_DEPENDS+= freetype.9:${PORTSDIR}/print/freetype2
+LIB_DEPENDS+= iconv.3:${PORTSDIR}/converters/libiconv
+.endif
+
+USE_GMAKE= yes
+USE_X_PREFIX= yes
+INSTALLS_SHLIB= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --with-ggi=${LOCALBASE}
+.if !defined(WITHOUT_FREETYPE)
+CONFIGURE_ARGS+=--with-ft-prefix=${LOCALBASE}
+.endif
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
+
+pre-everything::
+.if !defined(WITHOUT_FREETYPE)
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "ggiterm can be built without Freetype support. However, as the author says,"
+ @${ECHO_MSG} "'if you don't have freetype you lose much of the ggiterm reason for being,'"
+ @${ECHO_MSG} "so you probably don't want this. If you do, cancel now and build with:"
+ @${ECHO_MSG} " WITHOUT_FREETYPE=yes"
+ @${ECHO_MSG} ""
+.else
+ @${ECHO_MSG} ""
+ @${ECHO_MSG} "You have chosen to build ggiterm without Freetype. If this wasn't your"
+ @${ECHO_MSG} "intention, cancel now and unset the 'WITHOUT_FREETYPE' variable."
+ @${ECHO_MSG} ""
+.endif
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/AUTHORS ${DOCSDIR}
+ @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+.endif
+
+.include <bsd.port.mk>
diff --git a/x11/ggiterm/distinfo b/x11/ggiterm/distinfo
new file mode 100644
index 0000000..6fdce0a
--- /dev/null
+++ b/x11/ggiterm/distinfo
@@ -0,0 +1 @@
+MD5 (ggiterm-0.5.1.tar.gz) = fc1d37b2dfb82699dc54b6e080329241
diff --git a/x11/ggiterm/files/patch-Makefile.am b/x11/ggiterm/files/patch-Makefile.am
new file mode 100644
index 0000000..243f088
--- /dev/null
+++ b/x11/ggiterm/files/patch-Makefile.am
@@ -0,0 +1,20 @@
+diff -ruN ../ggiterm-0.5.1.bak/Makefile.am ./Makefile.am
+--- ../ggiterm-0.5.1.bak/Makefile.am Mon Oct 20 18:04:02 2003
++++ ./Makefile.am Mon Oct 20 18:24:29 2003
+@@ -1,3 +1,3 @@
+ bin_PROGRAMS = ggiterm
+ ggiterm_SOURCES = ggiterm.c ft_support.c ansi.c iconv_support.c graphics.c ggiterm.h config.rpath
+-ggiterm_LDFLAGS = @FT2_LIBS@
++ggiterm_LDFLAGS = @FT2_LIBS@ @LIBICONV@
+diff -ruN ../ggiterm-0.5.1.bak/Makefile.in ./Makefile.in
+--- ../ggiterm-0.5.1.bak/Makefile.in Mon Oct 20 18:04:02 2003
++++ ./Makefile.in Mon Oct 20 18:26:21 2003
+@@ -119,7 +119,7 @@
+ target_alias = @target_alias@
+ bin_PROGRAMS = ggiterm
+ ggiterm_SOURCES = ggiterm.c ft_support.c ansi.c iconv_support.c graphics.c ggiterm.h config.rpath
+-ggiterm_LDFLAGS = @FT2_LIBS@
++ggiterm_LDFLAGS = @FT2_LIBS@ @LIBICONV@
+ subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
diff --git a/x11/ggiterm/files/patch-ggiterm.c b/x11/ggiterm/files/patch-ggiterm.c
new file mode 100644
index 0000000..e376da7
--- /dev/null
+++ b/x11/ggiterm/files/patch-ggiterm.c
@@ -0,0 +1,21 @@
+diff -ruN ../ggiterm-0.5.1.bak/ggiterm.c ./ggiterm.c
+--- ../ggiterm-0.5.1.bak/ggiterm.c Mon Oct 20 18:04:02 2003
++++ ./ggiterm.c Mon Oct 20 18:05:09 2003
+@@ -18,13 +18,10 @@
+ #include <signal.h>
+
+ /* for forkpty */
+-#ifdef HAVE_FORKPTY
+-/* forkpty is in libc */
+-#include <util.h>
+-#else
+-/* forkpty is in libutil */
+-#include <pty.h>
+-#endif /* HAVE_FORKPTY */
++#include <libutil.h>
++
++/* for struct winsize */
++#include <termios.h>
+
+ /* for strcmp */
+ #include <string.h>
diff --git a/x11/ggiterm/pkg-descr b/x11/ggiterm/pkg-descr
new file mode 100644
index 0000000..70ca8b7
--- /dev/null
+++ b/x11/ggiterm/pkg-descr
@@ -0,0 +1,16 @@
+GGIterm is an ANSI-compatible terminal emulator (like xterm, rxvt,
+gnome-terminal, konsole, etc.), but directed at LibGGI rather than
+X11. This means that, unlike most terminal emulators, it can run on a
+KGGI, SVGAlib, or other non-X target just as well as under X11.
+
+GGIterm uses freetype (by default) to render fonts, which means that
+you can use TT, Type 1, etc. fonts on your terminal.
+
+At present, it's not complete--you probably don't want to replace
+gnome-terminal or konsole yet under X, and it's only barely been
+tested on other targets. But it works.
+
+WWW: http://ggiterm.sourceforge.net/
+
+--
+andi_payn@speedymail.org
diff --git a/x11/ggiterm/pkg-plist b/x11/ggiterm/pkg-plist
new file mode 100644
index 0000000..69a5c28
--- /dev/null
+++ b/x11/ggiterm/pkg-plist
@@ -0,0 +1,4 @@
+bin/ggiterm
+%%DOCSDIR%%/AUTHORS
+%%DOCSDIR%%/README
+@dirrm %%DOCSDIR%%
OpenPOWER on IntegriCloud