First attempt port of PicoC interpreter. Should work.

This commit is contained in:
Jiri Brozovsky 2010-09-13 21:44:37 +02:00
parent 383b527e85
commit 8f050f908f
1 changed files with 42 additions and 0 deletions

42
picoc/Makefile Normal file
View File

@ -0,0 +1,42 @@
include $(TOPDIR)/rules.mk
PKG_NAME:=picoc
PKG_VERSION:=1.0
PKG_RELEASE:=1
PKG_SOURCE:=picoc-$(PKG_VERSION).tar.bz2
PKG_SOURCE_URL:=http://picoc.googlecode.com/files
PKG_MD5SUM:=7af179f5f9351228df8a34ed7add436a
PKG_CAT:=bzip2 -cd
PKG_BUILD_DIR:=$(BUILD_DIR)/picoc-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/picoc
SECTION:=utils
CATEGORY:=Utilities
TITLE:=PicoC
URL:=http://code.google.com/p/picoc/
#DEPENDS:= +libreadline
endef
define Package/picoc/description
Simple C interpreter.
endef
define Build/Configure
$(call Build/Compile/Default)
endef
define Package/picoc/install
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/picoc $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/share/picoc/
$(INSTALL_DIR) $(1)/usr/share/picoc/tests/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/tests/* $(1)/usr/share/picoc/tests/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/README $(1)/usr/share/picoc/
endef
$(eval $(call BuildPackage,picoc))