[packages] Use default templates instead of custom reimplementations where applicable
[packages.git] / libs / libyaml / Makefile
1 #
2 # Copyright (C) 2008 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.2
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=http://pyyaml.org/download/libyaml/
15
16 PKG_INSTALL:=1
17
18 PKG_FIXUP:=libtool
19
20 include $(INCLUDE_DIR)/package.mk
21
22 TARGET_CFLAGS += $(FPIC)
23
24 define Package/libyaml
25   SUBMENU:=Python
26   SECTION:=lang
27   CATEGORY:=Languages
28   TITLE:=libyaml
29   URL:=http://pyyaml.org/wiki/LibYAML
30 endef
31
32 define Package/libyaml/description
33   yaml library written in c
34 endef
35
36 define Package/libyaml/install
37         $(INSTALL_DIR) $(1)/usr/lib
38         $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/libyaml.so $(1)/usr/lib/
39 endef
40
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/
45 endef
46
47 $(eval $(call BuildPackage,libyaml))