mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-25 12:16:35 +00:00
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:
parent
c8b281354c
commit
75d03d1bb9
@ -20,6 +20,12 @@ config BR2_PACKAGE_PYTHON_PYGAME_IMAGE
|
|||||||
pygame module for loading, saving and transfering images.
|
pygame module for loading, saving and transfering images.
|
||||||
Will autoselect sdl_image with png and jpeg support.
|
Will autoselect sdl_image with png and jpeg support.
|
||||||
|
|
||||||
|
config BR2_PACKAGE_PYTHON_PYGAME_EXAMPLES
|
||||||
|
bool "pygame.examples"
|
||||||
|
help
|
||||||
|
Include examples.
|
||||||
|
Selecting this option adds about 1.5 MB to the target file system.
|
||||||
|
|
||||||
config BR2_PACKAGE_PYTHON_PYGAME_FONT
|
config BR2_PACKAGE_PYTHON_PYGAME_FONT
|
||||||
bool "pygame.font"
|
bool "pygame.font"
|
||||||
select BR2_PACKAGE_SDL_TTF
|
select BR2_PACKAGE_SDL_TTF
|
||||||
|
@ -94,4 +94,11 @@ endef
|
|||||||
|
|
||||||
PYTHON_PYGAME_POST_INSTALL_TARGET_HOOKS += PYTHON_PYGAME_REMOVE_TESTS
|
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))
|
$(eval $(python-package))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user