add pygame (Python SDL bindings)
authorMichael Lauer <mickey@vanille-media.de>
Wed, 21 Jan 2004 22:52:13 +0000 (22:52 +0000)
committerMichael Lauer <mickey@vanille-media.de>
Wed, 21 Jan 2004 22:52:13 +0000 (22:52 +0000)
BKrev: 400f029dly3LYlKmwq7343PJJ68lhA

libsdl/libsdl-mixer_1.2.5.oe
libsdl/libsdl-ttf_2.0.3.oe
libsdl/smpeg_cvs.oe
python/pygame-1.6/Setup [new file with mode: 0644]
python/pygame_1.6.oe [new file with mode: 0644]

index 9f5605b..bf5c4a1 100644 (file)
@@ -9,6 +9,10 @@ S = ${WORKDIR}/SDL_mixer-${PV}
 
 inherit autotools libtool
 
+EXTRA_OECONF = "--disable-music-mp3"
+# although we build smpeg... need to find out how
+# to deal with optional dependencies
+
 do_stage() {
        oe_soinstall .libs/libSDL_mixer-1.2.so.0.2.3 ${STAGING_LIBDIR}
        install -m 0644 SDL_mixer.h ${STAGING_INCDIR}/SDL/SDL_mixer.h
index e69de29..b80519a 100644 (file)
@@ -0,0 +1,17 @@
+SECTION="NET"
+PRIORITY="optional"
+MAINTAINER="Michael Lauer <mickey@Vanille.de>"
+RDEPENDS=libc6 libsdl freetype
+DEPENDS=virtual/libc base/libsdl base/freetype
+
+SRC_URI = http://www.libsdl.org/projects/SDL_ttf/release/SDL_ttf-${PV}.tar.gz \
+          file://${FILESDIR}/new-freetype-includes.patch;patch=1
+S = ${WORKDIR}/SDL_ttf-${PV}
+
+inherit autotools libtool
+
+do_stage() {
+       oe_soinstall .libs/libSDL_ttf-2.0.so.0.0.3 ${STAGING_LIBDIR}
+       install -m 0644 SDL_ttf.h ${STAGING_INCDIR}/SDL/SDL_ttf.h
+}
+
index 1caaf1f..be6afa3 100644 (file)
@@ -13,8 +13,9 @@ EXTRA_OECONF = "--disable-gtktest --disable-opengl-player --without-x --without-
 
 do_stage() {
        oe_soinstall .libs/libsmpeg-0.4.so.0.1.4 ${STAGING_LIBDIR}
+       ln -sf libsmpeg-0.4.so.0.1.4 ${STAGING_LIBDIR}/libsmpeg.so
 
-       for f in `find . -name "MPEG*.h"`
+       for f in "*.h"
        do
                install -m 0644 ${f} ${STAGING_INCDIR}/SDL
        done
diff --git a/python/pygame-1.6/Setup b/python/pygame-1.6/Setup
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/python/pygame_1.6.oe b/python/pygame_1.6.oe
new file mode 100644 (file)
index 0000000..e69de29