OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
1 | # This is free software, licensed under the GNU General Public License |
2 | # v3. See /LICENSE for more information. |
3 | include $(TOPDIR)/rules.mk |
4 | |
5 | PKG_NAME:=pygame |
6 | PKG_VERSION:=1.9.1release |
7 | PKG_RELEASE:=1 |
8 | PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz |
9 | PKG_SOURCE_URL:=http://www.pygame.org/ftp/ |
10 | |
11 | PKG_BUILD_DEPENDS:=python |
12 | |
13 | include $(INCLUDE_DIR)/package.mk |
14 | -include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk) |
15 | |
16 | define Package/pygame |
17 | SUBMENU:=Python |
18 | SECTION:=lang |
19 | CATEGORY:=Languages |
20 | TITLE:=pygame |
21 | URL:=http://pygame.org |
22 | DEPENDS:=+python-mini +libsdl +libpng +libjpeg +libsdl-image +libsdl-mixer @BROKEN |
23 | endef |
24 | |
25 | define Package/pygame/description |
26 | Pygame is a set of Python modules designed for writing video games. |
27 | Pygame adds functionality on top of the excellent SDL library. |
28 | This allows you to create fully featured games and multimedia programs in the python language. |
29 | endef |
30 | |
31 | define Build/Compile |
32 | $(call Build/Compile/PyMod,,\ |
33 | install \ |
34 | --prefix="$(PKG_INSTALL_DIR)/usr" \ |
35 | , \ |
36 | LOCALBASE="$(STAGING_DIR)/usr" \ |
37 | NO_SCRAP=1 \ |
38 | ) |
39 | endef |
40 | |
41 | define Package/pygame/install |
42 | $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR) |
43 | $(CP) \ |
44 | $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \ |
45 | $(1)$(PYTHON_PKG_DIR) |
46 | endef |
47 | |
48 | $(eval $(call BuildPackage,pygame)) |
49 |