diff options
author | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-25 11:27:12 +0000 |
---|---|---|
committer | Maxim Sobolev <sobomax@FreeBSD.org> | 2000-09-25 11:27:12 +0000 |
commit | e28c640e1f140a05ae63945786430d8adf1b737b (patch) | |
tree | bc509e2b52fd5eafc2b637472373f7d12d42856b /x11-toolkits/libgtkeditor | |
parent | b714ec93da346cc8149f76d5c0cea1733505d344 (diff) | |
download | ports-e28c640e1f140a05ae63945786430d8adf1b737b.tar.gz ports-e28c640e1f140a05ae63945786430d8adf1b737b.zip |
Notes
Diffstat (limited to 'x11-toolkits/libgtkeditor')
-rw-r--r-- | x11-toolkits/libgtkeditor/Makefile | 45 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/distinfo | 1 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/files/patch-aa | 132 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/files/patch-ab | 20 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/files/patch-ac | 17 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/pkg-comment | 1 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/pkg-descr | 20 | ||||
-rw-r--r-- | x11-toolkits/libgtkeditor/pkg-plist | 19 |
8 files changed, 255 insertions, 0 deletions
diff --git a/x11-toolkits/libgtkeditor/Makefile b/x11-toolkits/libgtkeditor/Makefile new file mode 100644 index 000000000000..76f5eaf90f5c --- /dev/null +++ b/x11-toolkits/libgtkeditor/Makefile @@ -0,0 +1,45 @@ +# New ports collection makefile for: libgtkeditor +# Date created: 25 September 2000 +# Whom: Maxim Sobolev <sobomax@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= libgtkeditor +PORTVERSION= 0.1.8 +CATEGORIES= x11-toolkits editors +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME:S/lib//} +DISTNAME= ${PORTNAME:S/lib//}-${PORTVERSION} + +MAINTAINER= sobomax@FreeBSD.org + +BUILD_DEPENDS= ${LOCALBASE}/share/automake/install-sh:${PORTSDIR}/devel/automake +LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \ + unicode.0:${PORTSDIR}/devel/libunicode + +USE_X_PREFIX= yes +USE_GMAKE= yes +USE_LIBTOOL= yes +INSTALLS_SHLIB= yes + +GLIB_CONFIG?= ${LOCALBASE}/bin/glib12-config +GTK_CONFIG?= ${X11BASE}/bin/gtk12-config + +CONFIGURE_ENV= GLIB_CONFIG="${GLIB_CONFIG}" \ + GTK_CONFIG="${GTK_CONFIG}" \ + CPPFLAGS="-I${LOCALBASE}/include" \ + LDFLAGS="-L${LOCALBASE}/lib" + +pre-configure: +.for file in install-sh config.sub mkinstalldirs + @${LN} -sf ${LOCALBASE}/share/automake/${file} ${WRKSRC}/${file} +.endfor + +post-configure: + @${PERL} -pi -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/scanner.c + +pre-install: + @${MKDIR} ${PREFIX}/include/tktext-port + +.include <bsd.port.mk> diff --git a/x11-toolkits/libgtkeditor/distinfo b/x11-toolkits/libgtkeditor/distinfo new file mode 100644 index 000000000000..3913ddf84f0c --- /dev/null +++ b/x11-toolkits/libgtkeditor/distinfo @@ -0,0 +1 @@ +MD5 (gtkeditor-0.1.8.tar.gz) = 0a087d5f3bb373a2fde1c67ef9941d82 diff --git a/x11-toolkits/libgtkeditor/files/patch-aa b/x11-toolkits/libgtkeditor/files/patch-aa new file mode 100644 index 000000000000..92a73e1ee97a --- /dev/null +++ b/x11-toolkits/libgtkeditor/files/patch-aa @@ -0,0 +1,132 @@ +--- tktext-port/Makefile 2000/09/25 10:03:27 1.1 ++++ tktext-port/Makefile 2000/09/25 10:32:49 +@@ -21,99 +21,99 @@ + #EFENCE=-lefence + EFENCE= + +-DYN_LIBS= $(EFENCE) `gtk-config --libs` -lunicode $(EFENCE) ++DYN_LIBS= $(EFENCE) $(GTK_LIBS) -lunicode + STATIC_LIBS=-L/home/hp/local/lib -L/usr/X11R6/lib -L/home/hp/unstable/lib -rdynamic -lgmodule -ldl -lXext -lX11 -lm -lunicode ./libgtk.a ./libgdk.a ./libglib.a + MANY_STATIC_LIBS=-lunicode -L/usr/X11R6/lib -L/opt/gnome/lib -rdynamic -lgmodule -ldl -lm ./libgtk.a ./libgdk.a ./libX11.a ./libXext.a ./libXi.a ./libglib.a + + # I know this shouldn't go here...but it's easier +-OPTIMIZE=-O2 -DG_DISABLE_ASSERT ++OPTIMIZE=$(GTK_CFLAGS) -DG_DISABLE_ASSERT + #OPTIMIZE= + + all: $(ALL_OBJECTS) + + gtktextlayout.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextlayout.c -o gtktextlayout.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextlayout.c -o gtktextlayout.lo + + gtktext.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktext.c -o gtktext.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktext.c -o gtktext.lo + + gtktextdisplay.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextdisplay.c -o gtktextdisplay.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextdisplay.c -o gtktextdisplay.lo + + gtktextbtree.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbtree.c -o gtktextbtree.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbtree.c -o gtktextbtree.lo + + gtktextbuffer.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbuffer.c -o gtktextbuffer.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbuffer.c -o gtktextbuffer.lo + + gtktexttag.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttag.c -o gtktexttag.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttag.c -o gtktexttag.lo + + gtktextmark.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextmark.c -o gtktextmark.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextmark.c -o gtktextmark.lo + + gtktexttypes.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttypes.c -o gtktexttypes.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttypes.c -o gtktexttypes.lo + + gstring.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gstring.c -o gstring.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gstring.c -o gstring.lo + + gbsearch.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gbsearch.c -o gbsearch.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gbsearch.c -o gbsearch.lo + + gtktextchild.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextchild.c -o gtktextchild.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextchild.c -o gtktextchild.lo + + gtktexttagtable.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttagtable.c -o gtktexttagtable.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttagtable.c -o gtktexttagtable.lo + + gtktextiter.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextiter.c -o gtktextiter.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextiter.c -o gtktextiter.lo + + gtktextsegment.lo: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextsegment.c -o gtktextsegment.lo ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextsegment.c -o gtktextsegment.lo + + gtktextlayout.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextlayout.c -o gtktextlayout.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextlayout.c -o gtktextlayout.o + + gtktext.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktext.c -o gtktext.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktext.c -o gtktext.o + + gtktextdisplay.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextdisplay.c -o gtktextdisplay.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextdisplay.c -o gtktextdisplay.o + + gtktextbtree.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbtree.c -o gtktextbtree.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbtree.c -o gtktextbtree.o + + gtktextbuffer.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextbuffer.c -o gtktextbuffer.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextbuffer.c -o gtktextbuffer.o + + gtktexttag.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttag.c -o gtktexttag.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttag.c -o gtktexttag.o + + gtktextmark.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextmark.c -o gtktextmark.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextmark.c -o gtktextmark.o + + gtktexttypes.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttypes.c -o gtktexttypes.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttypes.c -o gtktexttypes.o + + gstring.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gstring.c -o gstring.o ++ cc $(OPTIMIZE) $(PROFILE) -c gstring.c -o gstring.o + + gbsearch.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gbsearch.c -o gbsearch.o ++ cc $(OPTIMIZE) $(PROFILE) -c gbsearch.c -o gbsearch.o + + gtktextchild.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextchild.c -o gtktextchild.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextchild.c -o gtktextchild.o + + gtktexttagtable.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktexttagtable.c -o gtktexttagtable.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktexttagtable.c -o gtktexttagtable.o + + gtktextiter.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextiter.c -o gtktextiter.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextiter.c -o gtktextiter.o + + gtktextsegment.o: +- cc -Wall -ggdb $(OPTIMIZE) $(PROFILE) -c `gtk-config --cflags` `gnome-config --cflags gnomeui` gtktextsegment.c -o gtktextsegment.o ++ cc $(OPTIMIZE) $(PROFILE) -c gtktextsegment.c -o gtktextsegment.o + + clean: + /bin/rm -f *.o *.lo *~ *.bak diff --git a/x11-toolkits/libgtkeditor/files/patch-ab b/x11-toolkits/libgtkeditor/files/patch-ab new file mode 100644 index 000000000000..85bd24d4994d --- /dev/null +++ b/x11-toolkits/libgtkeditor/files/patch-ab @@ -0,0 +1,20 @@ +--- Makefile.in 2000/09/25 10:39:41 1.1 ++++ Makefile.in 2000/09/25 10:39:44 +@@ -77,6 +77,8 @@ + USE_SYMBOL_UNDERSCORE = @USE_SYMBOL_UNDERSCORE@ + VERSION = @VERSION@ + ++AM_MAKEFLAGS = GTK_CFLAGS="$(CFLAGS) $(GTK_CFLAGS)" ++ + SUBDIRS = tools scanners tktext-port + + lib_LTLIBRARIES = libgtkeditor.la +@@ -86,7 +88,7 @@ + + libgtkeditor_la_LIBADD = tktext-port/gtktextlayout.lo tktext-port/gtktext.lo tktext-port/gtktextdisplay.lo tktext-port/gtktextbtree.lo tktext-port/gtktextbuffer.lo tktext-port/gtktexttag.lo tktext-port/gtktextmark.lo tktext-port/gtktexttypes.lo tktext-port/gstring.lo tktext-port/gbsearch.lo tktext-port/gtktextchild.lo tktext-port/gtktexttagtable.lo tktext-port/gtktextiter.lo tktext-port/gtktextsegment.lo + +-libgtkeditor_la_LDFLAGS = `gtk-config --libs` -lunicode ++libgtkeditor_la_LDFLAGS = $(GTK_LIBS) -lunicode + testapp_LDADD = libgtkeditor.la + static_testapp_LDADD = libgtkeditor.la scanners/c-scanner.so + debugapp_LDADD = libgtkeditor.la diff --git a/x11-toolkits/libgtkeditor/files/patch-ac b/x11-toolkits/libgtkeditor/files/patch-ac new file mode 100644 index 000000000000..932db92863e4 --- /dev/null +++ b/x11-toolkits/libgtkeditor/files/patch-ac @@ -0,0 +1,17 @@ +--- scanner.c.orig Thu Jun 1 19:02:09 2000 ++++ scanner.c Mon Sep 25 14:09:23 2000 +@@ -149,6 +149,14 @@ + scanner_lib = g_module_open (buf, G_MODULE_BIND_LAZY); + if (scanner_lib) goto get_symbols; /* got it */ + ++ /* try in PREFIX/lib/gtkeditor */ ++ g_snprintf (buf, BUF_SIZE, "%s/%s", "%%PREFIX%%/lib/gtkeditor", scanner_name); ++ scanner_lib = g_module_open (buf, G_MODULE_BIND_LAZY); ++ if (scanner_lib) goto get_symbols; /* got it */ ++ strncat (buf, ".so", BUF_SIZE); ++ scanner_lib = g_module_open (buf, G_MODULE_BIND_LAZY); ++ if (scanner_lib) goto get_symbols; /* got it */ ++ + /* if we reach this point, we couldn't find the scanner */ + g_warning ("error loading scanner!\n"); + return NULL; diff --git a/x11-toolkits/libgtkeditor/pkg-comment b/x11-toolkits/libgtkeditor/pkg-comment new file mode 100644 index 000000000000..90a502ef0489 --- /dev/null +++ b/x11-toolkits/libgtkeditor/pkg-comment @@ -0,0 +1 @@ +A source code editor widget for GTK+ diff --git a/x11-toolkits/libgtkeditor/pkg-descr b/x11-toolkits/libgtkeditor/pkg-descr new file mode 100644 index 000000000000..c7f1cd403268 --- /dev/null +++ b/x11-toolkits/libgtkeditor/pkg-descr @@ -0,0 +1,20 @@ +GtkEditor is a source code editor widget for GTK+. It is currently used, in one +version or another, in several GTK+/GNOME applications, including gIDE, +VDKBuilder, GXEdit, and Bluefish. + +The longterm goal of GtkEditor is to provide a framework for source code +editing in GTK+ applications, whether just for editing macros or for full +fledged IDEs. We try to achieve this through a highly configurable editor +widget sub-classing the gtktext widget. After initialisation, the editor widget +can be treated as the usual text widget, and all source-code editing features +are taken care of by the widget itself. The behaviour of the editor is decided +by dynamic libraries loaded during initialisation of the widget or statically +linked with the application using the widget. These libraries can be hand-coded +or created using tools supplied with GtkEditor. + +In the current version of GtkEditor, the widget only support syntax +highlighting, but future versions will include automatic/semi-automatic +indenting, parenthesis matching, and what other nifty features we can come up +with. + +WWW: http://gtkeditor.sourceforge.net/ diff --git a/x11-toolkits/libgtkeditor/pkg-plist b/x11-toolkits/libgtkeditor/pkg-plist new file mode 100644 index 000000000000..016b85e37598 --- /dev/null +++ b/x11-toolkits/libgtkeditor/pkg-plist @@ -0,0 +1,19 @@ +bin/scannertool +include/gtkeditor.h +include/tktext-port/gtktext.h +include/tktext-port/gtktextbuffer.h +include/tktext-port/gtktextiter.h +include/tktext-port/gtktextmark.h +include/tktext-port/gtktexttag.h +include/tktext-port/gtktexttagtable.h +lib/gtkeditor/c-scanner.so +lib/gtkeditor/html-scanner.so +lib/gtkeditor/java-scanner.so +lib/gtkeditor/perl-scanner.so +lib/gtkeditor/scheme-scanner.so +lib/gtkeditor/sml-scanner.so +lib/libgtkeditor.a +lib/libgtkeditor.so +lib/libgtkeditor.so.0 +@dirrm lib/gtkeditor +@dirrm include/tktext-port |