source: packages/lang/pyyaml/Makefile @ 19848

Last change on this file since 19848 was 19848, checked in by lars, 7 years ago

[packages] Use include_mk

File size: 999 bytes
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=PyYAML
11PKG_VERSION:=3.08
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://pyyaml.org/download/pyyaml/
16PKG_MD5SUM:=a4163a2017fa57f448c66815511fa555
17
18PKG_BUILD_DEPENDS:=python
19
20include $(INCLUDE_DIR)/package.mk
21$(call include_mk, python-package.mk)
22
23define Package/pyyaml
24  SUBMENU:=Python
25  SECTION:=lang
26  CATEGORY:=Languages
27  TITLE:=pyyaml
28  URL:=http://pyyaml.org
29  DEPENDS:=+python +libyaml
30endef
31
32define Package/pyyaml/description
33  yaml python bindings
34endef
35
36define Build/Compile
37        $(call Build/Compile/PyMod,,--with-libyaml install --prefix="$(PKG_INSTALL_DIR)/usr")
38endef
39
40define Package/pyyaml/install
41        $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
42        $(CP) \
43            $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
44            $(1)$(PYTHON_PKG_DIR)
45endef
46
47$(eval $(call BuildPackage,pyyaml))
Note: See TracBrowser for help on using the repository browser.