From 9aaeb4623d3ff5746e665bc17914eefd292b7dcd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sun, 2 Jan 2011 15:19:00 +0100 Subject: New OpenWrt package for GNU Octave. Experimental/probably still broken. Work in progress. Committing it as compilation seems to take forever. Not sure whether I can finish this within a few days. --- nanoterm/Makefile | 41 ++++++++++++++++++++++ .../patches/001-change-DISTDIR-to-DESTDIR.patch | 18 ++++++++++ 2 files changed, 59 insertions(+) create mode 100644 nanoterm/Makefile create mode 100644 nanoterm/patches/001-change-DISTDIR-to-DESTDIR.patch (limited to 'nanoterm') diff --git a/nanoterm/Makefile b/nanoterm/Makefile new file mode 100644 index 0000000..2b80aab --- /dev/null +++ b/nanoterm/Makefile @@ -0,0 +1,41 @@ +# +# Copyright (C) 2009 Qi Hardware Inc. +# Author: Xiangfu Liu +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=nanoterm +PKG_VERSION:=0.2 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2 +PKG_SOURCE_URL:=http://downloads.sourceforge.net/project/nterm/nanoterm/0.2/ +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) +PKG_INSTALL:=1 + +include $(INCLUDE_DIR)/package.mk + +define Package/nanoterm + SECTION:=utils + CATEGORY:=Utilities + SUBMENU:=Terminal + TITLE:=terminal emulator + URL:=http://nterm.sourceforge.net/ +endef + +define Package/nanoterm/description + Nanoterm is a terminal emulator with i minimal font for the Linux framebuffer +endef + +define Package/nanoterm/install + $(INSTALL_DIR) \ + $(1)/usr/bin \ + + $(INSTALL_BIN) \ + $(PKG_INSTALL_DIR)/usr/bin/nanoterm \ + $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,nanoterm)) \ No newline at end of file diff --git a/nanoterm/patches/001-change-DISTDIR-to-DESTDIR.patch b/nanoterm/patches/001-change-DISTDIR-to-DESTDIR.patch new file mode 100644 index 0000000..ce34efb --- /dev/null +++ b/nanoterm/patches/001-change-DISTDIR-to-DESTDIR.patch @@ -0,0 +1,18 @@ +diff --git a/Makefile b/Makefile +index 08ac50e..8fb6d34 100644 +--- a/Makefile ++++ b/Makefile +@@ -12,11 +12,11 @@ distclean: clean + rm -f aclocal.m4 autoconf.h autoconf.mk config.log config.status + + install: all +- install -D -m 0755 -s --strip-program=$(STRIP) src/nanoterm $(DISTDIR)$(bindir)/nanoterm ++ install -D -m 0755 -s --strip-program=$(STRIP) src/nanoterm $(DESTDIR)$(bindir)/nanoterm + + ipkg: + rm -Rf ipkg-tmp + mkdir -p ipkg-tmp/CONTROL + cp dist/ipkg.control ipkg-tmp/CONTROL/control +- $(MAKE) DISTDIR=ipkg-tmp install ++ $(MAKE) DESTDIR=ipkg-tmp install + ipkg-build -o root -g root ipkg-tmp -- cgit v1.2.3