Root/picoc/Makefile

Source at commit 1b3135c created 12 years 5 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
1include $(TOPDIR)/rules.mk
2
3PKG_NAME:=picoc
4PKG_VERSION:=1.0
5PKG_RELEASE:=1
6
7PKG_SOURCE:=picoc-$(PKG_VERSION).tar.bz2
8    PKG_SOURCE_URL:=http://picoc.googlecode.com/files
9    PKG_MD5SUM:=7af179f5f9351228df8a34ed7add436a
10    PKG_CAT:=bzip2 -cd
11
12PKG_BUILD_DIR:=$(BUILD_DIR)/picoc-$(PKG_VERSION)
13
14include $(INCLUDE_DIR)/package.mk
15
16define Package/picoc
17    SECTION:=utils
18    CATEGORY:=Utilities
19    TITLE:=PicoC
20    URL:=http://code.google.com/p/picoc/
21    #DEPENDS:= +libreadline
22endef
23
24define Package/picoc/description
25    Simple C interpreter.
26endef
27
28define Build/Configure
29        $(call Build/Compile/Default)
30endef
31
32
33define Package/picoc/install
34    $(INSTALL_DIR) $(1)/usr/bin/
35    $(INSTALL_BIN) $(PKG_BUILD_DIR)/picoc $(1)/usr/bin/
36     $(INSTALL_DIR) $(1)/usr/share/picoc/
37     $(INSTALL_DIR) $(1)/usr/share/picoc/tests/
38    $(INSTALL_DATA) $(PKG_BUILD_DIR)/tests/* $(1)/usr/share/picoc/tests/
39    $(INSTALL_DATA) $(PKG_BUILD_DIR)/README $(1)/usr/share/picoc/
40endef
41
42$(eval $(call BuildPackage,picoc))
43

Archive Download this file



interactive