From 70cec4f2375bcf9b3a18e2983dd43dad14f45a19 Mon Sep 17 00:00:00 2001 From: David-John Willis Date: Wed, 9 Dec 2009 22:40:00 +0000 Subject: [PATCH 1/1] pandora-pmenu: Add pmenu and libgles2d to overlay. --- recipes/libgles2d/libgles2d_git.bb | 39 +++++++++++++++ recipes/pandora-system/pandora-pmenu.bb | 44 ++++++++++++++++ .../remove-libconfig-from-makefile.patch | 50 +++++++++++++++++++ 3 files changed, 133 insertions(+) create mode 100644 recipes/libgles2d/libgles2d_git.bb create mode 100644 recipes/pandora-system/pandora-pmenu.bb create mode 100644 recipes/pandora-system/pandora-pmenu/remove-libconfig-from-makefile.patch diff --git a/recipes/libgles2d/libgles2d_git.bb b/recipes/libgles2d/libgles2d_git.bb new file mode 100644 index 0000000..57d6d45 --- /dev/null +++ b/recipes/libgles2d/libgles2d_git.bb @@ -0,0 +1,39 @@ +DESCRIPTION = "An openGL-ES 2D library for OMAP3 SGX based systems" +LICENSE = "GPL" + +DEPENDS = "virtual/libsdl libgles-omap3" + +PR = "r3" + +PARALLEL_MAKE = "" + +SRC_URI = " \ + git://github.com/Cpasjuste/GLES2D.git;protocol=git;branch=master \ +" + +SRCREV = "42280c1013f5815277104ed57622fbec075f3d12" + +S = "${WORKDIR}/git/src" + +TARGET_CC_ARCH += "${LDFLAGS}" +TARGET_CFLAGS += "-Wall -I./include" + +do_compile_prepend() { + cd ${S}/ +} + +do_compile() { + oe_runmake + oe_runmake deploy +} + +do_install() { + install -d ${D}${libdir}/ + install -m 0644 ${S}/deployment/usr/lib/libGLES2D* ${D}${libdir}/ + + install -d ${D}${includedir}/GLES2D + install -m 0644 ${S}/deployment/usr/include/GLES2D/* ${D}${includedir}/GLES2D +} + +FILES_${PN} += "${libdir}/libGLES2D.so*" +FILES_${PN}-dev += "${libdir}/libGLES2D.a ${includedir}/GLES2D/*" diff --git a/recipes/pandora-system/pandora-pmenu.bb b/recipes/pandora-system/pandora-pmenu.bb new file mode 100644 index 0000000..40fe4b1 --- /dev/null +++ b/recipes/pandora-system/pandora-pmenu.bb @@ -0,0 +1,44 @@ +DESCRIPTION = "OpenPandora PMenu launcher" +LICENSE = "GPL" + +DEPENDS = "virtual/libsdl libgles-omap3 libgles2d pandora-libpnd libconfig" + +PR = "r2" + +PARALLEL_MAKE = "" + +SRC_URI = " \ + git://github.com/Cpasjuste/pmenu.git;protocol=git;branch=master \ + file://remove-libconfig-from-makefile.patch;patch=1 \ +" + +SRCREV = "ef90164d945abd089e1b3f530d9a88bd1f5ba923" + +S = "${WORKDIR}/git" + +export PNDSDK="${STAGING_DIR}" + +TARGET_CC_ARCH += "${LDFLAGS}" +TARGET_CFLAGS += "-Wall -I./include" + +do_compile_prepend() { + cd ${S}/ +} + +do_compile() { + oe_runmake + oe_runmake deploy +} + +do_install() { + install -d ${D}${sysconfdir}/pandora/pmenu/ + install -m 0644 ${S}/deployment/etc/pandora/pmenu/pmenu.cfg ${D}${sysconfdir}/pandora/pmenu/pmenu.cfg + + install -d ${D}${sysconfdir}/pandora/pmenu/skins/NewSkin + install -m 0644 ${S}/deployment/etc/pandora/pmenu/skins/NewSkin/* ${D}${sysconfdir}/pandora/pmenu/skins/NewSkin + + install -d ${D}${bindir}/ + install -m 0755 ${S}/deployment/etc/pandora/pmenu/pmenu ${D}${bindir}/pmenu +} + +FILES_${PN} += "${bindir} ${sysconfdir}" diff --git a/recipes/pandora-system/pandora-pmenu/remove-libconfig-from-makefile.patch b/recipes/pandora-system/pandora-pmenu/remove-libconfig-from-makefile.patch new file mode 100644 index 0000000..03a3a21 --- /dev/null +++ b/recipes/pandora-system/pandora-pmenu/remove-libconfig-from-makefile.patch @@ -0,0 +1,50 @@ +Index: git/Makefile +=================================================================== +--- git.orig/Makefile 2009-12-07 10:01:27.091137735 +0000 ++++ git/Makefile 2009-12-07 10:02:52.995649783 +0000 +@@ -11,18 +11,18 @@ + RM = rm + + # environment +-LDFLAGS = -L$(PNDSDK)/usr/lib -lSDL -lSDL_image -lSDL_ttf -lfreetype -lGLES2D \ ++EXTRALDFLAGS = -L$(PNDSDK)/usr/lib -lSDL -lSDL_image -lSDL_ttf -lfreetype -lGLES2D -lconfig \ + -lGLES_CM -lIMGegl -lsrv_um -lXau -lXdmcp -lXi -lXext -lX11 \ + -lpnd -lstdc++ + +-CFLAGS = -Wall -Werror -g -Ilibconfig -Ilibpnd -I$(PNDSDK)/usr/include ++CFLAGS += -Wall -Werror -g -I$(PNDSDK)/usr/include + CFLAGS += -O3 -march=armv7-a -mcpu=cortex-a8 -mtune=cortex-a8 -mfloat-abi=softfp \ + -mfpu=neon -ftree-vectorize -ffast-math -fomit-frame-pointer \ + -fno-strict-aliasing -fsingle-precision-constant + + # code + TARGET = pmenu +-LIBCONFIG = libconfig/.libs/libconfig.a ++ + ALLOBJ = category_media.o category_settings.o config_favourite.o \ + config_pmenu.o config_skin.o get_apps.o main.o utils.o \ + utils_cpu.o utils_mplayer.o +@@ -38,21 +38,13 @@ + cd libconfig; make distclean; cd ..; + find . -name "*~*" -exec rm {} \; -print + +- + # component targets + # + +-pmenu: ${LIBCONFIG} ${ALLOBJ} +- ${CC} ${ALLOBJ} ${LIBCONFIG} ${LDFLAGS} -o ${TARGET} ++pmenu: ${ALLOBJ} ++ ${CC} ${ALLOBJ} ${EXTRALDFLAGS} -o ${TARGET} + ${STRIP} ${TARGET} + +-libconfig/.libs/libconfig.a: +- cd libconfig; make distclean; \ +- LDFLAGS="-L$PNDSDK/usr/lib" CFLAGS="-I$PNDSDK/usr/include" \ +- ./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi; \ +- make libconfig.la; \ +- cd ..; +- + # deployment and assembly components + # + -- 2.39.2