[packages] lang: use $(CP) & $(INSTALL_DIR)
[openwrt/svn-archive/archive.git] / lang / logilab-common / 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:=logilab-common
11 PKG_VERSION:=0.29.1
12 PKG_RELEASE:=1
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_SOURCE_URL:=ftp://ftp.logilab.fr/pub/common/
15
16 include $(INCLUDE_DIR)/package.mk
17 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
18
19 define Package/logilab-common
20 SUBMENU:=Python
21 SECTION:=lang
22 CATEGORY:=Languages
23 TITLE:=logilab-common
24 URL:=http://www.logilab.fr
25 DEPENDS:=+python-mini
26 endef
27
28 define Package/logilab-common/description
29 a bunch of modules providing low level functionnalities shared among some python projects devel
30 endef
31
32 define Build/Compile
33 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
34 $(call Build/Compile/PyMod,., \
35 install --prefix="$(PKG_INSTALL_DIR)/usr", \
36 )
37 endef
38
39 define Package/logilab-common/install
40 $(INSTALL_DIR) $(1)
41 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
42 endef
43
44 $(eval $(call BuildPackage,logilab-common))