slight fixes to libsdl-native and crimsonfields
authorMichael Lauer <mickey@vanille-media.de>
Wed, 3 Aug 2005 09:12:30 +0000 (09:12 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Wed, 3 Aug 2005 09:12:30 +0000 (09:12 +0000)
packages/crimsonfields/crimsonfields-native_0.4.8.bb
packages/crimsonfields/crimsonfields_0.4.8.bb
packages/libsdl/libsdl-native_1.2.7.bb

index 7afd205..1a6f52b 100644 (file)
@@ -23,7 +23,8 @@ do_configure() {
        install -m 0644 ${STAGING_DIR}/${BUILD_SYS}/share/default.* tools/
 }
 
-do_install_append() {
+do_install() {
+       autotools_do_install
        install -d ${D}${palmtopdir}/apps/Games/
        install -d ${D}${palmtopdir}/pics/
        install -m 0644 ${D}${datadir}/applications/crimson.desktop ${D}${palmtopdir}/apps/Games/
index 9d1a73b..9cd0d82 100644 (file)
@@ -47,7 +47,23 @@ do_stage() {
 
        cat >${STAGING_BINDIR}/sdl-config-native <<EOF
 #!/bin/sh
-echo ""
+  case "\$1" in
+    --prefix)
+      echo /usr
+      ;;
+    --exec-prefix)
+      echo /usr 
+      ;;
+    --version)
+      echo ${PV}
+      ;;
+    --cflags)
+      echo -I${STAGING_INCDIR}/SDL -D_REENTRANT
+      ;;
+    --libs)
+      echo -lSDLmain -lSDL-1.2 -lpthread -L${STAGING_LIBDIR}
+      ;;
+  esac
 EOF
        chmod a+rx ${STAGING_BINDIR}/sdl-config-native
 }