Root/sc/Makefile

Source at commit 1b3135c created 8 years 1 month ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
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))
49

Archive Download this file



interactive