Root/pygame/Makefile

Source at commit 5a2adbfde280a3dcc8b6fcae10637f93e8235fb2 created 9 years 9 days ago.
By Xiangfu, mark nlove, offrss, pygame as @BROKEN
1# This is free software, licensed under the GNU General Public License
2# v3. See /LICENSE for more information.
3include $(TOPDIR)/rules.mk
4
5PKG_NAME:=pygame
6PKG_VERSION:=1.9.1release
7PKG_RELEASE:=1
8PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
9PKG_SOURCE_URL:=http://www.pygame.org/ftp/
10
11PKG_BUILD_DEPENDS:=python
12
13include $(INCLUDE_DIR)/package.mk
14-include $(if $(DUMP),,$(STAGING_DIR)/mk/python-package.mk)
15
16define 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
23endef
24
25define Package/pygame/description
26Pygame is a set of Python modules designed for writing video games.
27Pygame adds functionality on top of the excellent SDL library.
28This allows you to create fully featured games and multimedia programs in the python language.
29endef
30
31define 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    )
39endef
40
41define Package/pygame/install
42    $(INSTALL_DIR) $(1)$(PYTHON_PKG_DIR)
43    $(CP) \
44        $(PKG_INSTALL_DIR)$(PYTHON_PKG_DIR)/* \
45        $(1)$(PYTHON_PKG_DIR)
46endef
47
48$(eval $(call BuildPackage,pygame))
49

Archive Download this file



interactive