added yaml implementation in c and modify pyyaml to make use of it
[openwrt/svn-archive/archive.git] / libs / libyaml / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=yaml
11 PKG_VERSION:=0.1.2
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://pyyaml.org/download/libyaml/
15
16 PKG_INSTALL:=1
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/libyaml
23 SUBMENU:=Python
24 SECTION:=lang
25 CATEGORY:=Languages
26 TITLE:=libyaml
27 URL:=http://pyyaml.org/wiki/LibYAML
28 endef
29
30 define Package/libyaml/description
31 yaml library written in c
32 endef
33
34 define Package/libyaml/install
35 $(INSTALL_DIR) $(1)/usr/lib
36 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.so $(1)/usr/lib/
37 endef
38
39 define Build/InstallDev
40 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
41 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
42 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.{a,la} $(1)/usr/lib/
43 endef
44
45 $(eval $(call BuildPackage,libyaml))