From 1a1d25d2604fa738f45a958cf5395294c33ccf83 Mon Sep 17 00:00:00 2001 From: Xiangfu Liu Date: Mon, 17 Jan 2011 14:31:12 +0800 Subject: [PATCH] bwbasic, fix compile error, remove BROKEN --- bwbasic/Makefile | 20 +++++++------ bwbasic/patches/001-pass-openwrt-CFLAGS.patch | 28 +++++++++++++++++++ 2 files changed, 39 insertions(+), 9 deletions(-) create mode 100644 bwbasic/patches/001-pass-openwrt-CFLAGS.patch diff --git a/bwbasic/Makefile b/bwbasic/Makefile index c6a45f9..da5e626 100644 --- a/bwbasic/Makefile +++ b/bwbasic/Makefile @@ -7,33 +7,35 @@ include $(TOPDIR)/rules.mk PKG_NAME:=bwbasic -PKG_VERSION:=master +PKG_VERSION:=2.50 PKG_RELEASE:=1 -PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz -PKG_SOURCE_URL:=http://pyneo.org/t -PKG_MD5SUM:=8d42bb36260bfa276a1ca065bf464355 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip +PKG_SOURCE_URL:=@SF/bwbasic PKG_INSTALL:=1 +UNPACK_CMD=unzip -d $(1) $(DL_DIR)/$(PKG_SOURCE) include $(INCLUDE_DIR)/package.mk define Package/bwbasic + MAINTAINER:="Xiangfu Liu" SECTION:=utilites CATEGORY:=Utilities TITLE:=An bwbasic application - URL:=http://pyneo.org/t/bwbasic - DEPENDS:=@BROKEN +libncurses + URL:=http://www.bwbasic.at/info.htm + DEPENDS:=+libncurses endef -#DEPENDS:=+libreadline +libtermcap + +MAKE_FLAGS += -f Makefile.ncu define Package/bwbasic/description -A bwbasic application + A bwbasic application endef define Package/bwbasic/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) \ - $(PKG_INSTALL_DIR)/usr/bin/bwbasic \ + $(PKG_INSTALL_DIR)/usr/local/bin/bwbasic \ $(1)/usr/bin/ endef diff --git a/bwbasic/patches/001-pass-openwrt-CFLAGS.patch b/bwbasic/patches/001-pass-openwrt-CFLAGS.patch new file mode 100644 index 0000000..facd774 --- /dev/null +++ b/bwbasic/patches/001-pass-openwrt-CFLAGS.patch @@ -0,0 +1,28 @@ +diff --git a/Makefile.ncu b/Makefile.ncu +index e852faf..d5b5b2d 100644 +--- a/Makefile.ncu ++++ b/Makefile.ncu +@@ -19,13 +19,13 @@ DEFS = -DHAVE_STRING=1 -DHAVE_STDLIB=1 -DHAVE_RAISE=1 -DHAVE_UNISTD=1 + + # Revised by JBV + #CFLAGS = -O +-CFLAGS = -g -ansi ++CFLAGS += -g -ansi + + # Revised by JBV + #LDFLAGS = -s + + prefix = /usr/local +-exec_prefix = $(prefix) ++exec_prefix = $(DESTDIR)$(prefix) + bindir = $(exec_prefix)/bin + + SHELL = /bin/sh +@@ -87,6 +87,7 @@ $(OFILES): $(HFILES) + $(CC) -c $(CPPFLAGS) -I$(srcdir) $(DEFS) $(CFLAGS) $< + + install: all ++ mkdir -p $(bindir) + $(INSTALL_PROGRAM) bwbasic $(bindir)/bwbasic + + uninstall: