Makefile (1251B)
1 # 2 # Copyright (C) 2008-2015 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.6 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:=5fe00cda18ca5daeb43762b80c38e06e 17 18 PKG_LICENSE:=MIT 19 PKG_LICENSE_FILES:=COPYING 20 PKG_MAINTAINER:=Nicolas Thill <nico@openwrt.org> 21 22 PKG_FIXUP:=autoreconf 23 PKG_INSTALL:=1 24 25 include $(INCLUDE_DIR)/package.mk 26 27 define Package/libyaml 28 SUBMENU:=Languages 29 SECTION:=libs 30 CATEGORY:=Libraries 31 TITLE:=Fast YAML 1.1 parser and emitter library 32 URL:=http://pyyaml.org/wiki/LibYAML 33 endef 34 35 TARGET_CFLAGS += $(FPIC) 36 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/ 44 endef 45 46 define Package/libyaml/install 47 $(INSTALL_DIR) $(1)/usr/lib 48 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libyaml*.so* $(1)/usr/lib/ 49 endef 50 51 $(eval $(call BuildPackage,libyaml))