2009-01-15 11:28:52 +00:00
|
|
|
#
|
2010-02-19 01:20:44 +00:00
|
|
|
# Copyright (C) 2008-2010 OpenWrt.org
|
2009-01-15 11:28:52 +00:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=yaml
|
2010-04-18 18:35:04 +00:00
|
|
|
PKG_VERSION:=0.1.3
|
2009-01-15 11:28:52 +00:00
|
|
|
PKG_RELEASE:=1
|
2010-02-19 01:20:44 +00:00
|
|
|
|
2009-01-15 11:28:52 +00:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_SOURCE_URL:=http://pyyaml.org/download/libyaml/
|
2010-04-18 18:35:04 +00:00
|
|
|
PKG_MD5SUM:=b8ab9064e8e0330423fe640de76608cd
|
2009-01-15 11:28:52 +00:00
|
|
|
|
2012-06-11 21:18:33 +00:00
|
|
|
PKG_FIXUP:=autoreconf
|
2010-02-19 01:20:44 +00:00
|
|
|
PKG_INSTALL:=1
|
2009-01-15 11:28:52 +00:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
2010-02-18 13:10:21 +00:00
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
2009-01-15 11:28:52 +00:00
|
|
|
define Package/libyaml
|
|
|
|
SUBMENU:=Python
|
|
|
|
SECTION:=lang
|
|
|
|
CATEGORY:=Languages
|
|
|
|
TITLE:=libyaml
|
|
|
|
URL:=http://pyyaml.org/wiki/LibYAML
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libyaml/description
|
|
|
|
yaml library written in c
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/libyaml/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.so $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include $(1)/usr/lib
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/* $(1)/usr/include/
|
|
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.{a,la} $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,libyaml))
|