yaml: update to version 0.1.5
[openwrt/svn-archive/archive.git] / libs / libyaml / Makefile
1 #
2 # Copyright (C) 2008-2010 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.5
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://pyyaml.org/download/libyaml/
16 PKG_MD5SUM:=24f6093c1e840ca5df2eb09291a1dbf1
17
18 PKG_FIXUP:=autoreconf
19 PKG_INSTALL:=1
20
21 include $(INCLUDE_DIR)/package.mk
22
23 TARGET_CFLAGS += $(FPIC)
24
25 define Package/libyaml
26 SUBMENU:=Python
27 SECTION:=lang
28 CATEGORY:=Languages
29 TITLE:=libyaml
30 URL:=http://pyyaml.org/wiki/LibYAML
31 endef
32
33 define Package/libyaml/description
34 yaml library written in c
35 endef
36
37 define Package/libyaml/install
38 $(INSTALL_DIR) $(1)/usr/lib
39 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.so $(1)/usr/lib/
40 endef
41
42 define Build/InstallDev
43 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
44 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
45 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.{a,la} $(1)/usr/lib/
46 endef
47
48 $(eval $(call BuildPackage,libyaml))