1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Add GtkScintilla. GtkScintilla is a wrapper for the Scintilla editing

component wich adds some facility to this powerful component.
This commit is contained in:
Maxim Sobolev 2000-12-14 12:18:25 +00:00
parent f1af9ee53d
commit 8d0657e26a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35972
8 changed files with 112 additions and 0 deletions

View File

@ -30,6 +30,7 @@
SUBDIR += gtkextra
SUBDIR += gtkextra--
SUBDIR += gtkglarea
SUBDIR += gtkscintilla
SUBDIR += gtkstep
SUBDIR += gtkstep-pastel
SUBDIR += guile-gnome

View File

@ -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>

View File

@ -0,0 +1 @@
MD5 (GtkScintilla-0.2.tar.gz) = c5118a50c0b932c62e4510f7fb2f8e63

View File

@ -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)

View File

@ -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);

View File

@ -0,0 +1 @@
A wrapper for the Scintilla editing component

View File

@ -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/

View File

@ -0,0 +1,4 @@
include/scintilla/gtkscintilla.h
lib/libgtkscintilla.a
lib/libgtkscintilla.so
lib/libgtkscintilla.so.0