python-pygame: Make installation of examples optional

They take up 1.5 MB in the target file system.

Signed-Off-By: Maarten ter Huurne <maarten@treewalker.org>

Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Maarten ter Huurne
2014-04-08 19:45:06 +02:00
committed by Peter Korsgaard
parent c8b281354c
commit 75d03d1bb9
2 changed files with 13 additions and 0 deletions

View File

@@ -94,4 +94,11 @@ endef
PYTHON_PYGAME_POST_INSTALL_TARGET_HOOKS += PYTHON_PYGAME_REMOVE_TESTS
ifneq ($(BR2_PACKAGE_PYTHON_PYGAME_EXAMPLES),y)
define PYTHON_PYGAME_REMOVE_EXAMPLES
rm -rf $(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages/pygame/examples
endef
PYTHON_PYGAME_POST_INSTALL_TARGET_HOOKS += PYTHON_PYGAME_REMOVE_EXAMPLES
endif
$(eval $(python-package))