From c1401f7b1857e4dc00be14ce7d1aafd712ff5750 Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Tue, 4 Nov 2008 22:10:10 +0100 Subject: python-pygame: Blacklist smpeg and build pygame without smpeg We can not build smpeg when enterprise is on. Put it into the BBMASK to make sure it is not buildable. Use base_conditional to not add the dependency to the DEPENDS when building for the enterprise branch. Remove the movie support (the one actually requiring smpeg) and only echo it into the Setup file when are not building with the ENTERPRISE_DISTRO flag. It seems to work both ways. --- packages/python/python-pygame_1.8.1.bb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'packages/python/python-pygame_1.8.1.bb') diff --git a/packages/python/python-pygame_1.8.1.bb b/packages/python/python-pygame_1.8.1.bb index 71eff50dfb..499f0c6ee3 100644 --- a/packages/python/python-pygame_1.8.1.bb +++ b/packages/python/python-pygame_1.8.1.bb @@ -3,9 +3,10 @@ SECTION = "devel/python" HOMEPAGE = "http://www.pygame.org" PRIORITY = "optional" LICENSE = "LGPL" -DEPENDS = "libsdl-x11 libsdl-image libsdl-mixer libsdl-net libsdl-ttf smpeg python-numeric" +DEPENDS = "libsdl-x11 libsdl-image libsdl-mixer libsdl-net libsdl-ttf python-numeric" +DEPENDS += "${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'smpeg', d)}" SRCNAME = "pygame" -PR = "ml1" +PR = "ml2" SRC_URI = "\ ftp://ftp.pygame.org/pub/pygame/${SRCNAME}-${PV}release.tar.gz \ @@ -17,6 +18,9 @@ inherit distutils do_configure_prepend() { cat ${WORKDIR}/Setup >Setup SDL="`sdl-config --cflags` `sdl-config --libs`"; echo "SDL=$SDL" >>Setup + if [ '${ENTERPRISE_DISTRO}' != '1' ]; then + echo "movie src/movie.c \$(SDL) \$(SMPEG) \$(DEBUG)" >>Setup + fi } do_stage() { -- cgit v1.2.3