diff options
author | Philip Balister <philip@balister.org> | 2009-02-13 14:12:54 -0500 |
---|---|---|
committer | Philip Balister <philip@balister.org> | 2009-02-13 14:12:54 -0500 |
commit | 18992093169e9ebd2a61989b853986a77199be35 (patch) | |
tree | d08928e78b95ea9dcbd7a4f5a193b18e197e8a8d /packages/powervr-drivers/libgles-omap3.inc | |
parent | 36001a65d7eb5f4432b999d24c29501834a3b431 (diff) | |
parent | 97b340db7c7b9ee3ed53e02eaa63c9873f4e1610 (diff) |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'packages/powervr-drivers/libgles-omap3.inc')
-rw-r--r-- | packages/powervr-drivers/libgles-omap3.inc | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/packages/powervr-drivers/libgles-omap3.inc b/packages/powervr-drivers/libgles-omap3.inc index b9933aadfa..36c2b6e9dd 100644 --- a/packages/powervr-drivers/libgles-omap3.inc +++ b/packages/powervr-drivers/libgles-omap3.inc @@ -1,6 +1,8 @@ DESCRIPTION = "libGLES for the omap3" LICENCE = "proprietary-binary" +PROVIDES += "virtual/egl" + # 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 \ @@ -15,8 +17,6 @@ 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 \ omap3-sgx-modules" @@ -32,16 +32,21 @@ Y ${S}" | ${WORKDIR}/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin } -addtask accept_license after do_unpack before do_compile +addtask accept_license after do_unpack before do_configure -do_compile () { - : +do_compile() { + for sofile in $(find ${S} -name "lib*Open*.so") $(find ${S} -name "lib*srv*.so") $(find ${S} -name "lib*gl*.so") $(find ${S} -name "libpvr*.so") $(find ${S} -name "lib*GL*.so"); do + if [ "$(readlink -n ${sofile})" = "" ] ; then + mv $sofile ${sofile}.${IMGPV} + ln -sf $(basename ${sofile}.${IMGPV}) ${sofile} + fi + done } do_install () { install -d ${D}${libdir} - cp -pR ${BINLOCATION}/*.so* ${D}${libdir} + cp -pP ${BINLOCATION}/*.so* ${D}${libdir} install -d ${D}${bindir}/ cp -pP ${BINLOCATION}/*_test ${D}${bindir}/ @@ -52,13 +57,21 @@ do_install () { cp -pP ${BINLOCATION}/pvrsrvinit ${D}${bindir}/ cp -pP ${BINLOCATION}/xgles1test1 ${D}${bindir}/ - cp -pP ${BINLOCATION}/freedesktop/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/ + cp -pP ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx || true + cp -pP ${BINLOCATION}/freedesktop/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/ || true install -d ${D}${includedir} cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/ + cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/ + cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES/ + cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES2/ install -d ${D}${sysconfdir}/init.d/ cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init + + install -d ${D}${sysconfdir} + echo "[default]" > ${D}${sysconfdir}/powervr.ini + echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so" >> ${D}${sysconfdir}/powervr.ini } do_stage () { @@ -68,6 +81,9 @@ do_stage () { install -d ${STAGING_INCDIR} cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${STAGING_INCDIR}/ + cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${STAGING_INCDIR}/ + cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/LinuxOMAP3/Include/GLES/* ${STAGING_INCDIR}/GLES/ + cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/Include/GLES/* ${STAGING_INCDIR}/GLES2/ } pkg_postinst() { |