2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://pyyaml.org/download/libyaml/
20 include $(INCLUDE_DIR)/package.mk
22 TARGET_CFLAGS += $(FPIC)
24 define Package/libyaml
29 URL:=http://pyyaml.org/wiki/LibYAML
32 define Package/libyaml/description
33 yaml library written in c
36 define Package/libyaml/install
37 $(INSTALL_DIR) $(1)/usr/lib
38 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.so $(1)/usr/lib/
41 define Build/InstallDev
42 $(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
43 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
44 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.{a,la} $(1)/usr/lib/
47 $(eval $(call BuildPackage,libyaml))