[package] pygobject: Compile with fPIC
[openwrt/svn-archive/archive.git] / lang / kid / Makefile
1 #
2 # Copyright (C) 2007-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:=kid
11 PKG_VERSION:=0.9.6
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.kid-templating.org/dist/0.9.6/dist
16 PKG_MD5SUM:=31e7156698a6f214b4067afb9e13728f
17
18 PKG_BUILD_DEPENDS:=python
19
20 include $(INCLUDE_DIR)/package.mk
21 -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
22
23 define Package/python-kid
24 SUBMENU:=Python
25 SECTION:=lang
26 CATEGORY:=Languages
27 DEPENDS:=+python
28 TITLE:=XML-based Templating
29 URL:=http://www.kid-templating.org/
30 endef
31
32 define Package/python-kid/description
33 Kid is a simple template language for XML based vocabularies written in
34 Python.
35 endef
36
37 define PyPackage/python-kid/filespec
38 +|$(PYTHON_PKG_DIR)/kid
39 -|$(PYTHON_PKG_DIR)/kid/test
40 endef
41
42 define Build/Compile
43 $(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
44 $(call Build/Compile/PyMod,., \
45 install --prefix="$(PKG_INSTALL_DIR)/usr", \
46 )
47 endef
48
49 $(eval $(call PyPackage,python-kid))
50 $(eval $(call BuildPackage,python-kid))