aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sciteco/Makefile63
-rw-r--r--sciteco/patches/0001-scinterm-build.patch22
2 files changed, 85 insertions, 0 deletions
diff --git a/sciteco/Makefile b/sciteco/Makefile
new file mode 100644
index 0000000..0c8f5d8
--- /dev/null
+++ b/sciteco/Makefile
@@ -0,0 +1,63 @@
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=sciteco
+PKG_VERSION:=0.1
+PKG_RELEASE:=1
+
+PKG_SOURCE:=sciteco-$(PKG_VERSION).tar.gz
+PKG_MD5SUM:=612f02da4a521059f75835fe89508461
+
+PKG_BUILD_DIR=$(BUILD_DIR)/sciteco-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/SciTECO
+ SECTION:=utils
+ CATEGORY:=Utilities
+ DEPENDS:=+libncurses +glib2 +libstdcpp
+ TITLE:=Scintilla based TECO editor
+ URL:=https://github.com/rhaberkorn/sciteco
+ SUBMENU:=Editors
+endef
+
+define Package/SciTECO/description
+Advanced screen based version of the TECO editor.
+NOTE: Currently, SciTECO has to be installed on the
+host platform.
+endef
+
+CONFIGURE_ARGS += --with-scintilla=scintilla \
+ --with-interface=ncurses \
+ --disable-bootstrap
+
+define Build/Prepare
+ $(PKG_UNPACK)
+ (cd $(PKG_BUILD_DIR); \
+ $(HOST_TAR) xzf $(DL_DIR)/scintilla324.tgz; \
+ unzip -d scintilla $(DL_DIR)/scinterm_1.1.zip; \
+ mv scintilla/scinterm_1.1 scintilla/scinterm; \
+ patch -p0 <patches/scintilla-teco-control-codes.patch; \
+ )
+ $(call Build/Patch)
+endef
+
+define Build/Configure
+ $(MAKE_VARS) \
+ $(MAKE) -C $(PKG_BUILD_DIR)/scintilla/scinterm \
+ $(MAKE_FLAGS)
+ $(call Build/Configure/Default)
+endef
+
+define Build/Compile
+ $(call Build/Install/Default)
+endef
+
+define Package/SciTECO/install
+ $(INSTALL_DIR) $(1)/usr/bin
+ $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sciteco $(1)/usr/bin/
+
+ $(INSTALL_DIR) $(1)/usr/share/sciteco
+ $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/sciteco/teco.ini $(1)/usr/share/sciteco
+endef
+
+$(eval $(call BuildPackage,SciTECO))
diff --git a/sciteco/patches/0001-scinterm-build.patch b/sciteco/patches/0001-scinterm-build.patch
new file mode 100644
index 0000000..948e504
--- /dev/null
+++ b/sciteco/patches/0001-scinterm-build.patch
@@ -0,0 +1,22 @@
+--- a/scintilla/scinterm/Makefile 2012-12-11 01:26:02.000000000 +0100
++++ b/scintilla/scinterm/Makefile 2013-01-24 01:30:55.806042954 +0100
+@@ -4,8 +4,8 @@
+
+ CXX = g++
+ INCLUDEDIRS = -I ../include -I ../src -I ../lexlib
+-CXXFLAGS = -Wall -Wno-missing-braces -Wno-char-subscripts -Wno-long-long \
+- -pedantic -DNCURSES -DSCI_LEXER $(INCLUDEDIRS)
++CXXFLAGS += -Wall -Wno-missing-braces -Wno-char-subscripts -Wno-long-long \
++ -pedantic -DNCURSES -DSCI_LEXER $(INCLUDEDIRS)
+ ifdef DEBUG
+ CXXFLAGS += -DDEBUG -g
+ else
+@@ -30,7 +30,7 @@
+ CharacterSet.o LexerBase.o LexerModule.o LexerNoExceptions.o \
+ LexerSimple.o PropSetSimple.o StyleContext.o WordList.o \
+ $(lexers) ScintillaTerm.o
+- ar rc $@ $^
++ $(AR) rc $@ $^
+ touch $@
+ clean:
+ rm -f *.o $(scintilla)