diff options
author | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-24 02:53:05 +0100 |
---|---|---|
committer | Robin Haberkorn <robin.haberkorn@googlemail.com> | 2013-01-24 02:53:05 +0100 |
commit | 2b78636c61184f9bcc5f8907c26a83da4e39f0c1 (patch) | |
tree | 7beb8201ee05bef6a1916c1c913f903f14ad2ebb /sciteco/Makefile | |
parent | 058c024194c4ce612d6365337b4ef0d7fad016b3 (diff) | |
download | nanonote-ports-2b78636c61184f9bcc5f8907c26a83da4e39f0c1.tar.gz |
Added SciTECO port
builds Scintilla and Scinterm as part of the package.
* currently there appears to be a bug - the cursor doesn't show up at the end of lines
* also it doesn't work very well on monochrome displays
Diffstat (limited to 'sciteco/Makefile')
-rw-r--r-- | sciteco/Makefile | 63 |
1 files changed, 63 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)) |