From acb9402cea72609fd3798b69b225cf00f616f46e Mon Sep 17 00:00:00 2001 From: Koen Kooi Date: Mon, 5 Jan 2009 19:49:32 +0100 Subject: libgles-omap3: add 3...5 release, rework packaging a bit --- packages/powervr-drivers/libgles-omap3.inc | 79 +++++++++++++++++++++ packages/powervr-drivers/libgles-omap3_1.0.bb | 82 ---------------------- .../powervr-drivers/libgles-omap3_3.00.00.01.bb | 10 +++ .../powervr-drivers/libgles-omap3_3.00.00.05.bb | 12 ++++ 4 files changed, 101 insertions(+), 82 deletions(-) create mode 100644 packages/powervr-drivers/libgles-omap3.inc delete mode 100644 packages/powervr-drivers/libgles-omap3_1.0.bb create mode 100644 packages/powervr-drivers/libgles-omap3_3.00.00.01.bb create mode 100644 packages/powervr-drivers/libgles-omap3_3.00.00.05.bb diff --git a/packages/powervr-drivers/libgles-omap3.inc b/packages/powervr-drivers/libgles-omap3.inc new file mode 100644 index 0000000000..612d311159 --- /dev/null +++ b/packages/powervr-drivers/libgles-omap3.inc @@ -0,0 +1,79 @@ +DESCRIPTION = "libGLES for the omap3" +LICENCE = "proprietary-binary" + +# Put "OMAP35x_Graphics_SDK_setuplinux_3_00_00_05.bin" in the same directory as this recipe +SRC_URI = "file://OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin \ + file://rc.pvr \ + " +S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}" + + +PACKAGES += " xserver-kdrive-powervrsgx ${PN}-tests" + +FILES_${PN} = "${sysconfdir} ${libdir}/lib*.so.* ${bindir}/pvrsrvinit" +FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx" +FILES_${PN}-tests = "${bindir}/*" + +PACKAGE_ARCH = "${MACHINE_ARCH}" + +RRECOMMENDS_${PN} = "${PN}-tests \ + kernel-module-pvr2d \ + kernel-module-pvrsrvkm \ + kernel-module-omaplfb \ + " + +inherit update-rc.d + +INITSCRIPT_NAME = "pvr-init" +INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." + +do_accept_license() { + export HOME="${WORKDIR}" + echo "Y +Y +${S}" | ${WORKDIR}/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin +} + +addtask accept_license after do_unpack before do_compile + +do_compile () { + : +} + +do_install () { + + install -d ${D}${libdir} + cp -pR ${S}/gfx_rel/*.so* ${D}${libdir} + + install -d ${D}${bindir}/ + cp -pP ${S}/gfx_rel/*_test ${D}${bindir}/ + cp -pP ${S}/gfx_rel/gl2info ${D}${bindir}/ + cp -pP ${S}/gfx_rel/gles1test1 ${D}${bindir}/ + cp -pP ${S}/gfx_rel/gles1_texture_stream ${D}${bindir}/ + cp -pP ${S}/gfx_rel/gles2test1 ${D}${bindir}/ + cp -pP ${S}/gfx_rel/pvrsrvinit ${D}${bindir}/ + cp -pP ${S}/gfx_rel/xgles1test1 ${D}${bindir}/ + + cp -pP ${S}/gfx_rel/freedesktop/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/ + + install -d ${D}${includedir} + cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/ + + install -d ${D}${sysconfdir}/init.d/ + cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init +} + +do_stage () { + install -d ${STAGING_LIBDIR}/ + cp -pP ${S}/gfx_rel/*.so* ${STAGING_LIBDIR} + cp -pP ${S}/gfx_rel/*.a ${STAGING_LIBDIR} + + install -d ${STAGING_INCDIR} + cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${STAGING_INCDIR}/ +} + +pkg_postinst() { +#!/bin/sh +ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 +ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0 +} diff --git a/packages/powervr-drivers/libgles-omap3_1.0.bb b/packages/powervr-drivers/libgles-omap3_1.0.bb deleted file mode 100644 index b18b7a485b..0000000000 --- a/packages/powervr-drivers/libgles-omap3_1.0.bb +++ /dev/null @@ -1,82 +0,0 @@ -DESCRIPTION = "libGLES for the omap3" -LICENCE = "proprietary-binary" -PR = "r6" - -# Put "OMAP35x_Graphics_SDK_setuplinux_3_00_00_01.bin" in the same directory as this recipe -SRC_URI = "file://OMAP35x_Graphics_SDK_setuplinux_3_00_00_01.bin \ - file://rc.pvr \ - " - -S = "${WORKDIR}/OMAP35x_Graphics_SDK_3_00_00_01" - -PACKAGES =+ " ${PN}-tests" - -FILES_${PN}-tests = "${bindir}/*" - -PACKAGE_ARCH = "${MACHINE_ARCH}" - -RRECOMMENDS_${PN} = "${PN}-tests \ - kernel-module-pvr2d \ - kernel-module-pvrsrvkm \ - kernel-module-omaplfb \ - " - -inherit update-rc.d - -INITSCRIPT_NAME = "pvr-init" -INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ." - -do_accept_license() { - export HOME="${WORKDIR}" - echo "Y -Y -${S}" | ${WORKDIR}/OMAP35x_Graphics_SDK_setuplinux_3_00_00_01.bin -} - -addtask accept_license after do_unpack before do_compile - -do_compile () { - : -} - -do_install () { - - install -d ${D}${libdir} - cp -pR ${S}/gfx_rel/*.so* ${D}${libdir} - - install -d ${D}${bindir}/ - cp -pP ${S}/gfx_rel/*_test ${D}${bindir}/ - cp -pP ${S}/gfx_rel/gl2info ${D}${bindir}/ - cp -pP ${S}/gfx_rel/gles1test1 ${D}${bindir}/ - cp -pP ${S}/gfx_rel/gles1_texture_stream ${D}${bindir}/ - cp -pP ${S}/gfx_rel/gles2test1 ${D}${bindir}/ - cp -pP ${S}/gfx_rel/pvrsrvinit ${D}${bindir}/ - cp -pP ${S}/gfx_rel/xgles1test1 ${D}${bindir}/ - - cp -pP ${S}/gfx_rel/freedesktop/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/ - - install -d ${D}${includedir} - cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/ - - install -d ${D}${sysconfdir}/init.d/ - cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init -} - -do_stage () { - install -d ${STAGING_LIBDIR}/ - cp -pP ${S}/gfx_rel/*.so* ${STAGING_LIBDIR} - cp -pP ${S}/gfx_rel/*.a ${STAGING_LIBDIR} - - install -d ${STAGING_INCDIR} - cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${STAGING_INCDIR}/ -} - -# Quality control is really poor on these SDKs, so hack around the latest madness: -FILES_${PN} += "${libdir}/*.so" -FILES_${PN}-dev = "${includedir}" - -pkg_postinst() { -#!/bin/sh -ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 -ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0 -} diff --git a/packages/powervr-drivers/libgles-omap3_3.00.00.01.bb b/packages/powervr-drivers/libgles-omap3_3.00.00.01.bb new file mode 100644 index 0000000000..1f7adfe980 --- /dev/null +++ b/packages/powervr-drivers/libgles-omap3_3.00.00.01.bb @@ -0,0 +1,10 @@ +require libgles-omap3.inc + +SGXPV = "3_00_00_01" + +PR = "r7" + +# Quality control is really poor on these SDKs, so hack around the latest madness: +FILES_${PN} += "${libdir}/*.so" +FILES_${PN}-dev = "${includedir}" + diff --git a/packages/powervr-drivers/libgles-omap3_3.00.00.05.bb b/packages/powervr-drivers/libgles-omap3_3.00.00.05.bb new file mode 100644 index 0000000000..43f6a55269 --- /dev/null +++ b/packages/powervr-drivers/libgles-omap3_3.00.00.05.bb @@ -0,0 +1,12 @@ +require libgles-omap3.inc + +# Not released yet +DEFAULT_PREFERENCE = "-1" +PR = "r1" + +SGXPV = "3_00_00_05" + +# Quality control is really poor on these SDKs, so hack around the latest madness: +FILES_${PN} += "${libdir}/*.so" +FILES_${PN}-dev = "${includedir}" + -- cgit v1.2.3