Date:2010-07-23 13:45:13 (10 years 7 months ago)
Author:Jiri Brozovsky
Commit:e4a39c1cc29466c5deb3f52bc3dbb7045f070b2d
Message:Quickcalc (simple calculkator with history) - initial OpenWRT port.

Files: quickcalc/Makefile (1 diff)
quickcalc/patches/Makefile.patch (1 diff)

Change Details

quickcalc/Makefile
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=quickcalc
4PKG_VERSION:=1.26
5PKG_RELEASE:=1
6
7PKG_SOURCE:=quickcalc-$(PKG_VERSION).tgz
8    PKG_SOURCE_URL:=ftp://ftp.ac-grenoble.fr/ge/mathematics/
9    PKG_MD5SUM:=152599c038c06ecc11e7db9dad4d4dce
10    PKG_CAT:=zcat
11
12PKG_BUILD_DIR:=$(BUILD_DIR)/quickcalc-$(PKG_VERSION)
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/quickcalc
17    SECTION:=utils
18    CATEGORY:=Utilities
19    TITLE:=QuickCalc
20    URL:=http://freshmeat.net/projects/quickcalc
21    DEPENDS:=+libreadline +libncurses
22endef
23
24define Package/quickcalc/description
25    Computer algebra system.
26endef
27
28define Build/Configure
29        $(call Build/Compile/Default, \
30              CFLAGS="-I$(STAGING_DIR)/usr/include -O2 " \
31              LDFLAGS="-L$(STAGING_DIR)/usr/lib " \
32        )
33endef
34
35
36define Package/quickcalc/install
37    $(INSTALL_DIR) $(1)/usr/bin/
38    $(INSTALL_BIN) $(PKG_BUILD_DIR)/qc $(1)/usr/bin/
39endef
40
41$(eval $(call BuildPackage,quickcalc))
quickcalc/patches/Makefile.patch
1--- quickcalc-1.26/Makefile 1999-07-25 16:33:21.000000000 +0200
2@@ -3,7 +3,8 @@
3 #CPPFLAGS = -DC_DEBUG -g
4
5 CC = gcc
6-CFLAGS = -O2 -Wall
7+CFLAGS+= -O2 -Wall
8+LDLIBS+=$(LDFLAGS) -lm -lreadline -lncurses
9 SHELL = /bin/sh
10
11 OBJS = qc.o error.o disp_ans.o text.o calc_str.o lex.yy.o
12@@ -11,7 +12,7 @@
13 all : qc
14
15 qc : $(OBJS)
16- $(CC) $(OBJS) -lm -lreadline -lncurses -o qc
17+ $(CC) $(OBJS) $(LDLIBS) -o $(@)
18
19 qc.o : qc.c version.h
20

Archive Download the corresponding diff file



interactive