From 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sat, 18 Sep 2010 20:47:21 +0200 Subject: Major overhaul and cleanup. Support for .ubi image file installations. Only compile&install a minimum host Gforth for bootstrapping the target Gforth, removing strange emacs-dependencies that cropped up earlier. Image file can now be built on the nanonote using 'gforth-update-image' command. Also, Gforth is now run through a wrapper that calls 'gforth-update-image' automatically, if necessary. Also first attempts at supporting libcc C-interface libraries pre-compiled on the host. Tested to compile on amd64 and i386. --- sc/Makefile | 48 +++++++++++++++++++++++++++++++++++++++++++++++ sc/patches/makefile.patch | 11 +++++++++++ sc/patches/xmalloc.patch | 11 +++++++++++ 3 files changed, 70 insertions(+) create mode 100644 sc/Makefile create mode 100644 sc/patches/makefile.patch create mode 100644 sc/patches/xmalloc.patch (limited to 'sc') diff --git a/sc/Makefile b/sc/Makefile new file mode 100644 index 0000000..a6ef1b9 --- /dev/null +++ b/sc/Makefile @@ -0,0 +1,48 @@ +# Author: Jirka + +include $(TOPDIR)/rules.mk + +PKG_NAME:=sc +PKG_VERSION:=7.15 +PKG_RELEASE:=1 +#http://www.ibiblio.org/pub/linux/apps/financial/spreadsheet/sc-7.15.tar.gz + +PKG_SOURCE:=sc-$(PKG_VERSION).tar.gz +PKG_SOURCE_URL:=http://www.ibiblio.org/pub/linux/apps/financial/spreadsheet +PKG_MD5SUM:=89c0d76f2c0aabe1cf1c80eae7a13e8f +PKG_CAT:=zcat + +PKG_BUILD_DIR:=$(BUILD_DIR)/sc-$(PKG_VERSION) + +include $(INCLUDE_DIR)/package.mk + +define Package/sc + SECTION:=utils + CATEGORY:=Utilities + DEPENDS:=+libncurses + TITLE:=SC Spreadsheet Calculator + URL:=http://www.ibiblio.org/pub/linux/apps/financial/spreadsheet +endef + +define Package/sc/description + SC is a classic unix speadsheet calculator. + Works in a character terminal. +endef + +define Build/Configure + $(call Build/Compile/Default, \ + CFLAGS="-I$(STAGING_DIR)/usr/include -DSYSV3 -O2 -pipe" \ + LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lm -lncurses" \ + ) +endef + + + +define Package/sc/install + $(INSTALL_DIR) $(1)/usr/bin + $(INSTALL_BIN) $(PKG_BUILD_DIR)/sc $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/psc $(1)/usr/bin/ + $(INSTALL_BIN) $(PKG_BUILD_DIR)/scqref $(1)/usr/bin/ +endef + +$(eval $(call BuildPackage,sc)) diff --git a/sc/patches/makefile.patch b/sc/patches/makefile.patch new file mode 100644 index 0000000..f8a5b90 --- /dev/null +++ b/sc/patches/makefile.patch @@ -0,0 +1,11 @@ +--- sc-7.15/Makefile 2001-11-06 01:37:05.000000000 +0100 ++++ sc-7.15mod/Makefile 2010-05-26 13:42:54.000000000 +0200 +@@ -299,7 +299,7 @@ + + ######################################### + # Use this for Linux +-CC=gcc ++#CC=gcc + # Only use -Wall for testing, since it produces warnings that are of no + # real effect on the reliability of the program, but may concern some + # people who don't understand them. diff --git a/sc/patches/xmalloc.patch b/sc/patches/xmalloc.patch new file mode 100644 index 0000000..3777e7e --- /dev/null +++ b/sc/patches/xmalloc.patch @@ -0,0 +1,11 @@ +--- sc-7.15/xmalloc.c 2001-11-06 01:41:58.000000000 +0100 ++++ sc-7.15mod/xmalloc.c 2010-05-24 14:38:54.000000000 +0200 +@@ -6,7 +6,7 @@ + #include + #include "sc.h" + +-extern char *malloc(); ++/*extern char *malloc();*/ + extern char *realloc(); + extern void free(); + void fatal(); -- cgit v1.2.3