Date:2010-05-30 06:16:32 (13 years 6 months ago)
Author:Xiangfu Liu
Commit:933f0cd5df3524215792c684f6f6f843c6d16650
Message:new package [sc], thanks to jirka

Files: sc/Makefile (1 diff)
sc/patches/makefile.patch (1 diff)
sc/patches/xmalloc.patch (1 diff)

Change Details

sc/Makefile
1# Author: Jirka
2
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=sc
6PKG_VERSION:=7.15
7PKG_RELEASE:=1
8#http://www.ibiblio.org/pub/linux/apps/financial/spreadsheet/sc-7.15.tar.gz
9
10PKG_SOURCE:=sc-$(PKG_VERSION).tar.gz
11PKG_SOURCE_URL:=http://www.ibiblio.org/pub/linux/apps/financial/spreadsheet
12PKG_MD5SUM:=89c0d76f2c0aabe1cf1c80eae7a13e8f
13PKG_CAT:=zcat
14
15PKG_BUILD_DIR:=$(BUILD_DIR)/sc-$(PKG_VERSION)
16
17include $(INCLUDE_DIR)/package.mk
18
19define Package/sc
20    SECTION:=utils
21    CATEGORY:=Utilities
22    DEPENDS:=+libncurses
23    TITLE:=SC Spreadsheet Calculator
24    URL:=http://www.ibiblio.org/pub/linux/apps/financial/spreadsheet
25endef
26
27define Package/sc/description
28    SC is a classic unix speadsheet calculator.
29    Works in a character terminal.
30endef
31
32define Build/Configure
33        $(call Build/Compile/Default, \
34              CFLAGS="-I$(STAGING_DIR)/usr/include -DSYSV3 -O2 -pipe" \
35              LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lm -lncurses" \
36        )
37endef
38
39
40
41define Package/sc/install
42    $(INSTALL_DIR) $(1)/usr/bin
43    $(INSTALL_BIN) $(PKG_BUILD_DIR)/sc $(1)/usr/bin/
44    $(INSTALL_BIN) $(PKG_BUILD_DIR)/psc $(1)/usr/bin/
45    $(INSTALL_BIN) $(PKG_BUILD_DIR)/scqref $(1)/usr/bin/
46endef
47
48$(eval $(call BuildPackage,sc))
sc/patches/makefile.patch
1--- sc-7.15/Makefile 2001-11-06 01:37:05.000000000 +0100
2@@ -299,7 +299,7 @@
3
4 #########################################
5 # Use this for Linux
6-CC=gcc
7+#CC=gcc
8 # Only use -Wall for testing, since it produces warnings that are of no
9 # real effect on the reliability of the program, but may concern some
10 # people who don't understand them.
sc/patches/xmalloc.patch
1--- sc-7.15/xmalloc.c 2001-11-06 01:41:58.000000000 +0100
2@@ -6,7 +6,7 @@
3 #include <curses.h>
4 #include "sc.h"
5
6-extern char *malloc();
7+/*extern char *malloc();*/
8 extern char *realloc();
9 extern void free();
10 void fatal();

Archive Download the corresponding diff file



interactive