2 # Copyright (C) 2008-2015 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_HASH
:=7da6971b4bd08a986dd2a61353bc422362bd0edcc67d7ebaac68c95f74182749
19 PKG_LICENSE_FILES
:=COPYING
20 PKG_MAINTAINER
:=Nicolas Thill
<nico@openwrt.org
>
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/libyaml
31 TITLE
:=Fast YAML
1.1 parser and emitter library
32 URL
:=http
://pyyaml.org
/wiki
/LibYAML
35 TARGET_CFLAGS
+= $(FPIC
)
37 define Build
/InstallDev
38 $(INSTALL_DIR
) $(1)/usr
/include
39 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/yaml.h
$(1)/usr
/include/
40 $(INSTALL_DIR
) $(1)/usr
/lib
41 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libyaml
*.
{a
,so
*} $(1)/usr
/lib
/
42 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
43 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/yaml
*.
pc $(1)/usr
/lib
/pkgconfig
/
46 define Package
/libyaml
/install
47 $(INSTALL_DIR
) $(1)/usr
/lib
48 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libyaml
*.so
* $(1)/usr
/lib
/
51 $(eval
$(call BuildPackage
,libyaml
))