diff options
| author | Sergey Lapin <slapin@ossfans.org> | 2010-03-22 18:13:56 +0300 |
|---|---|---|
| committer | Sergey Lapin <slapin@ossfans.org> | 2010-03-22 18:13:56 +0300 |
| commit | 3937c88166a493900a694ea8fe53b860f4099d83 (patch) | |
| tree | 57597245b6efd4cf27c1f4c9ff21c0515e530c15 /recipes/python/python-pygame_1.9.1.bb | |
| parent | df2ace6d59e22b42e50bcf4e8a9c92b580602c2e (diff) | |
| parent | 3510d2ed15a4b477aa7af802a839e11a87b981ed (diff) | |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/python/python-pygame_1.9.1.bb')
| -rw-r--r-- | recipes/python/python-pygame_1.9.1.bb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/recipes/python/python-pygame_1.9.1.bb b/recipes/python/python-pygame_1.9.1.bb new file mode 100644 index 0000000000..bbeedda3a9 --- /dev/null +++ b/recipes/python/python-pygame_1.9.1.bb @@ -0,0 +1,26 @@ +DESCRIPTION = "Python libSDL Bindings" +SECTION = "devel/python" +HOMEPAGE = "http://www.pygame.org" +LICENSE = "LGPL" +DEPENDS = "libsdl-x11 libsdl-image libsdl-mixer libsdl-net libsdl-ttf python-numeric" +DEPENDS += "${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'smpeg', d)}" +RDEPENDS = "python-numeric" +SRCNAME = "pygame" +PR = "ml4" + +SRC_URI = "http://www.pygame.org/ftp/${SRCNAME}-${PV}release.tar.gz;name=archive" +SRC_URI[archive.md5sum] = "1c4cdc708d17c8250a2d78ef997222fc" +SRC_URI[archive.sha256sum] = "a26095472ae4be9631e0d5bfb9a52ac57a3a091e45757913128e4a473807d433" +S = "${WORKDIR}/${SRCNAME}-${PV}release" + +inherit distutils + +do_configure_prepend() { + # Drop options to replace them later and drom pypm as we don't have portmidi/porttime + sed '/^SDL =/d; /^SMPEG =/d; /^movie src/d; /^pypm src/d' Setup.in > Setup + SDL="`sdl-config --cflags` `sdl-config --libs`"; echo "SDL=$SDL" >>Setup + if [ '${ENTERPRISE_DISTRO}' != '1' ]; then + SMPEG="`smpeg-config --cflags` `smpeg-config --libs`"; echo "SMPEG=$SMPEG" >>Setup + echo "movie src/movie.c \$(SDL) \$(SMPEG) \$(DEBUG)" >>Setup + fi +} |
