2 # Copyright (C) 2008-2010 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
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://pyyaml.org
/download
/libyaml
/
16 PKG_MD5SUM
:=b8ab9064e8e0330423fe640de76608cd
21 include $(INCLUDE_DIR
)/package.mk
23 TARGET_CFLAGS
+= $(FPIC
)
25 define Package
/libyaml
30 URL
:=http
://pyyaml.org
/wiki
/LibYAML
33 define Package
/libyaml
/description
34 yaml library written in c
37 define Package
/libyaml
/install
38 $(INSTALL_DIR
) $(1)/usr
/lib
39 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/usr
/lib
/libyaml.so
$(1)/usr
/lib
/
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
/
48 $(eval
$(call BuildPackage
,libyaml
))