aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/gtkscintilla
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-12-14 20:18:25 +0800
committersobomax <sobomax@FreeBSD.org>2000-12-14 20:18:25 +0800
commitf544f3f8c48d1b66d4c1e7d3f17e8b8e65c0bd2e (patch)
tree2f423252bca6b782f5307a0e47ac34d9b0db0945 /x11-toolkits/gtkscintilla
parenta7190a739e8bc51cc496bfc15eafd89b15347025 (diff)
downloadfreebsd-ports-gnome-f544f3f8c48d1b66d4c1e7d3f17e8b8e65c0bd2e.tar.gz
freebsd-ports-gnome-f544f3f8c48d1b66d4c1e7d3f17e8b8e65c0bd2e.tar.zst
freebsd-ports-gnome-f544f3f8c48d1b66d4c1e7d3f17e8b8e65c0bd2e.zip
Add GtkScintilla. GtkScintilla is a wrapper for the Scintilla editing
component wich adds some facility to this powerful component.
Diffstat (limited to 'x11-toolkits/gtkscintilla')
-rw-r--r--x11-toolkits/gtkscintilla/Makefile30
-rw-r--r--x11-toolkits/gtkscintilla/distinfo1
-rw-r--r--x11-toolkits/gtkscintilla/files/patch-aa49
-rw-r--r--x11-toolkits/gtkscintilla/files/patch-ab13
-rw-r--r--x11-toolkits/gtkscintilla/pkg-comment1
-rw-r--r--x11-toolkits/gtkscintilla/pkg-descr13
-rw-r--r--x11-toolkits/gtkscintilla/pkg-plist4
7 files changed, 111 insertions, 0 deletions
diff --git a/x11-toolkits/gtkscintilla/Makefile b/x11-toolkits/gtkscintilla/Makefile
new file mode 100644
index 000000000000..e89072e5fa2d
--- /dev/null
+++ b/x11-toolkits/gtkscintilla/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: gtkscintilla
+# Date created: 14 December 2000
+# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= gtkscintilla
+PORTVERSION= 0.2
+CATEGORIES= x11-toolkits
+MASTER_SITES= http://www.moleskine.f2s.com/
+DISTNAME= GtkScintilla-${PORTVERSION}
+
+MAINTAINER= sobomax@FreeBSD.org
+
+LIB_DEPENDS= scintilla.1:${PORTSDIR}/x11-toolkits/scintilla
+
+USE_X_PREFIX= yes
+USE_GMAKE= yes
+USE_GTK= yes
+INSTALLS_SHLIB= yes
+
+do-install:
+ ${MKDIR} ${PREFIX}/include/scintilla
+ ${INSTALL_DATA} ${WRKSRC}/*.h ${PREFIX}/include/scintilla
+ ${INSTALL_DATA} ${WRKSRC}/libgtkscintilla.a ${PREFIX}/lib
+ ${INSTALL_PROGRAM} ${WRKSRC}/libgtkscintilla.so.0 ${PREFIX}/lib
+ ${LN} -sf ${PREFIX}/lib/libgtkscintilla.so.0 ${PREFIX}/lib/libgtkscintilla.so
+
+.include <bsd.port.mk>
diff --git a/x11-toolkits/gtkscintilla/distinfo b/x11-toolkits/gtkscintilla/distinfo
new file mode 100644
index 000000000000..3e9686e64d75
--- /dev/null
+++ b/x11-toolkits/gtkscintilla/distinfo
@@ -0,0 +1 @@
+MD5 (GtkScintilla-0.2.tar.gz) = c5118a50c0b932c62e4510f7fb2f8e63
diff --git a/x11-toolkits/gtkscintilla/files/patch-aa b/x11-toolkits/gtkscintilla/files/patch-aa
new file mode 100644
index 000000000000..12023d0014e9
--- /dev/null
+++ b/x11-toolkits/gtkscintilla/files/patch-aa
@@ -0,0 +1,49 @@
+--- Makefile 2000/12/14 10:21:57 1.1
++++ Makefile 2000/12/14 10:28:39
+@@ -2,28 +2,18 @@
+
+ NAME = GtkScintilla
+ LIB_NAME = gtkscintilla
+-VERSION = 0.2
+-PREFIX = $(shell gtk-config --prefix)
++VERSION = 0
++PREFIX ?= $(shell $(GTK_CONFIG) --prefix)
+
+ SCINTILLA_DIR = ./scintilla
+-SCINTILLA_INCLUDE = $(SCINTILLA_DIR)/include
++SCINTILLA_INCLUDE = $(X11BASE)/include/scintilla
+ SCINTILLA_SOURCE = $(SCINTILLA_DIR)/src
+-SCINTILLA_LIB = $(SCINTILLA_DIR)/bin/scintilla.a
+-LEXERS = \
+- $(SCINTILLA_DIR)/gtk/LexCPP.o \
+- $(SCINTILLA_DIR)/gtk/LexConf.o \
+- $(SCINTILLA_DIR)/gtk/LexHTML.o \
+- $(SCINTILLA_DIR)/gtk/LexLua.o \
+- $(SCINTILLA_DIR)/gtk/LexOthers.o \
+- $(SCINTILLA_DIR)/gtk/LexPascal.o \
+- $(SCINTILLA_DIR)/gtk/LexPerl.o \
+- $(SCINTILLA_DIR)/gtk/LexPython.o \
+- $(SCINTILLA_DIR)/gtk/LexSQL.o \
+- $(SCINTILLA_DIR)/gtk/LexVB.o
+-CFLAGS = $(shell gtk-config --cflags) -g -Wall -DGTK -DSCI_LEXER
+-LDFLAGS = $(shell gtk-config --libs) $(SCINTILLA_LIB) $(LEXERS)
+-CC = gcc
+-LD = gcc
++SCINTILLA_LIB = -lscintilla
++LEXERS = -lscintilla_lexers
++CFLAGS = $(shell $(GTK_CONFIG) --cflags) -g -Wall -DGTK -DSCI_LEXER -I$(SCINTILLA_INCLUDE)
++LDFLAGS = $(shell $(GTK_CONFIG) --libs) $(SCINTILLA_LIB) $(LEXERS)
++CC ?= gcc
++LD = $(CC)
+ AR = ar
+
+ SOURCES = $(wildcard *.c)
+@@ -36,7 +26,7 @@
+ LIB_DIR = $(PREFIX)/lib/
+ INCLUDE_DIR = $(PREFIX)/include/
+
+-all: ./$(SCINTILLA_LIB) $(STATIC_LIB) $(SHARED_LIB)
++all: $(STATIC_LIB) $(SHARED_LIB)
+
+ scintilla: ./$(SCINTILLA_LIB)
+
diff --git a/x11-toolkits/gtkscintilla/files/patch-ab b/x11-toolkits/gtkscintilla/files/patch-ab
new file mode 100644
index 000000000000..8fad40e8425d
--- /dev/null
+++ b/x11-toolkits/gtkscintilla/files/patch-ab
@@ -0,0 +1,13 @@
+--- gtkscintilla.c 2000/12/14 10:27:02 1.1
++++ gtkscintilla.c 2000/12/14 10:27:31
+@@ -22,8 +22,8 @@
+
+ /*#include "scintilla/include/Platform.h"*/
+ #define PLAT_GTK 1
+-#include "scintilla/include/ScintillaWidget.h"
+-#include "scintilla/include/Scintilla.h"
++#include <ScintillaWidget.h>
++#include <Scintilla.h>
+
+ static void gtk_scintilla_class_init(GtkScintillaClass *klass);
+ static void gtk_scintilla_init(GtkScintilla *sci);
diff --git a/x11-toolkits/gtkscintilla/pkg-comment b/x11-toolkits/gtkscintilla/pkg-comment
new file mode 100644
index 000000000000..99845ad946f9
--- /dev/null
+++ b/x11-toolkits/gtkscintilla/pkg-comment
@@ -0,0 +1 @@
+A wrapper for the Scintilla editing component
diff --git a/x11-toolkits/gtkscintilla/pkg-descr b/x11-toolkits/gtkscintilla/pkg-descr
new file mode 100644
index 000000000000..e7c854bca9bb
--- /dev/null
+++ b/x11-toolkits/gtkscintilla/pkg-descr
@@ -0,0 +1,13 @@
+This is GtkScintilla, a wrapper for the Scintilla (www.scintilla.org) editing
+component wich adds some facility to this powerful component written by Neil
+Hodgson (and may others).
+
+Scintilla has two little problems:
+ - It is available only as a static library
+ - It has a strange (for Linux/GTK+ people) API
+
+GtkScintilla addresses both:
+ - It is a shared library
+ - It is a true GtkWidget subclass with a GTK+ API
+
+WWW: http://www.moleskine.f2s.com/
diff --git a/x11-toolkits/gtkscintilla/pkg-plist b/x11-toolkits/gtkscintilla/pkg-plist
new file mode 100644
index 000000000000..a8a2b00285c2
--- /dev/null
+++ b/x11-toolkits/gtkscintilla/pkg-plist
@@ -0,0 +1,4 @@
+include/scintilla/gtkscintilla.h
+lib/libgtkscintilla.a
+lib/libgtkscintilla.so
+lib/libgtkscintilla.so.0