3f792b15a875f8b0e3f384c606a8f4fe6b97ba11
[glsdk/meta-ti-glsdk.git] / recipes-graphics / libgles / libgles-omap3.inc
1 DESCRIPTION = "libGLES for the omap3"
2 LICENSE = "proprietary-binary"
3 # 'TSPA.txt' might not be the best file to md5sum
4 LIC_FILES_CHKSUM = "file://TSPA.txt;md5=c0d5d9c1e38b41677144c4e24d6ddee1"
6 PR = "r23"
8 COMPATIBLE_MACHINE = "(omap3|ti816x|ti33x)"
10 DEPENDS = "virtual/libx11 libxau libxdmcp"
12 PROVIDES += "virtual/egl"
14 SRC_URI = "http://software-dl.ti.com/dsps/dsps_public_sw/sdo_sb/targetcontent/gfxsdk/${SGXPV}/exports/OMAP35x_Graphics_SDK_setuplinux_${SGXPV}.bin \
15                    file://cputype \
16                    file://rc.pvr \
17                    file://sample.desktop \
18                    file://99-bufferclass.rules  \
19 "
21 S = "${WORKDIR}/OMAP35x_Graphics_SDK_${SGXPV}"
23 # Logic to unpack installjammer file
24 TI_BIN_UNPK_CMDS="Y: qY:workdir:Y"
25 require ../../recipes-ti/includes/ti-eula-unpack.inc
27 BINLOCATION ?= "${S}/gfx_rel"
28 ES2LOCATION ?= "${S}/gfx_rel_es2.x"
29 ES3LOCATION ?= "${S}/gfx_rel_es3.x"
30 ES5LOCATION ?= "${S}/gfx_rel_es5.x"
31 ES6LOCATION ?= "${S}/gfx_rel_es6.x"
32 ES8LOCATION ?= "${S}/gfx_rel_es8.x"
34 do_configure() {
35         # Attempt to fix up the worst offenders for file permissions
36         for i in $(find ${S} -name "*.h") $(find ${S} -name "*.c") $(find ${S} -name "Make*") ; do
37                 chmod 0644 $i
38         done 
40         # Attempt to create proper library softlinks
41         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
42                 if [ "$(readlink -n ${sofile})" = "" ] ; then
43                         mv $sofile ${sofile}.${IMGPV}
44                         ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}
45                         ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}$(echo ${IMGPV} | awk -F. '{print "." $1}')
46                         ln -sf $(basename ${sofile}.${IMGPV}) ${sofile}$(echo ${IMGPV} | awk -F. '{print "." $1 "." $2}')
47                 fi
48         done
50         # Due to recursive make PLAT_* isn't always passed down correctly, so use sed to fix those
51         for mak in $(find ${S} -name "*.mak") ; do
52                 sed -i -e s:arm-none-linux-gnueabi-:${TARGET_PREFIX}:g $mak
53         done
55         # clear out old stuff
56         find Binaries/ | xargs rm -f || true
57 }
59 # Force in GNU_HASH and paths to libs
60 TARGET_CC_ARCH += " ${TARGET_LINK_HASH_STYLE} -Wl,-rpath-link,${BINLOCATION} -L${BINLOCATION} \
61 -L${STAGING_DIR_TARGET}${libdir} -Wl,-rpath-link,${STAGING_DIR_TARGET}${libdir}"
62 PARALLEL_MAKE = ""
64 do_compile() {
65         export X11ROOT="${STAGING_DIR_HOST}/usr"
66         export TOOLCHAIN="${TOOLCHAIN_PATH}"
67         export PLATFORM="LinuxOMAP3"
69         export PLAT_CC="${CC}"
70         export PLAT_CPP="${CXX}"
71         export PLAR_AR="${AR}"
73         mkdir -p ${S}/demos/raw
74         mkdir -p ${S}/demos/x11
76         # Rebuild demos for both Raw and X11
77         for X11BUILD in 0 1 ; do
78                 for demo in ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Demos/* ; do
79                         cd $demo/OGLES/Build/LinuxGeneric
80                         oe_runmake Common=1 PLATFORM=$PLATFORM X11BUILD=$X11BUILD  
81                         rm $demo/OGLES/Build/LinuxOMAP3/Release*/*.o
82                         install -m 0755 $demo/OGLES/Build/LinuxOMAP3/ReleaseX11/* ${S}/demos/x11 || true
83                         sed -e s:NAME:$(basename $demo): \
84                             -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES/Build/LinuxOMAP3/ReleaseX11/*): \
85                              ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop
86                         install -m 0755 $demo/OGLES/Build/LinuxOMAP3/ReleaseRaw/* ${S}/demos/raw || true        
87                 done
88                 for demo in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Demos/* ; do
89                         cd $demo/OGLES2/Build/LinuxGeneric
90                         oe_runmake Common=1 PLATFORM=$PLATFORM X11BUILD=$X11BUILD  
91                         rm -f $demo/OGLES2/Build/LinuxOMAP3/Release*/*.o
92                         install -m 0755 $demo/OGLES2/Build/LinuxOMAP3/ReleaseX11/* ${S}/demos/x11 || true
93                         sed -e s:NAME:$(basename $demo): \
94                             -e s:EXEC:${bindir}/SGX/demos/X11/$(basename $demo/OGLES2/Build/LinuxOMAP3/ReleaseX11/*): \
95                              ${WORKDIR}/sample.desktop > ${WORKDIR}/$(basename $demo).desktop
96                         install -m 0755 $demo/OGLES2/Build/LinuxOMAP3/ReleaseRaw/* ${S}/demos/raw || true       
97                 done
98         done
100         mkdir -p ${S}/trainingcourses/raw
101         mkdir -p ${S}/trainingcourses/x11
103         find ${S} -name "*_org" -delete
105         # Build OGLES2 Trainingcourses for both Raw and X11
106         for X11BUILD in 0 1 ; do
107                 for training in ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/TrainingCourse/* ; do
108                         if [ -e $training/OGLES2/Build/LinuxGeneric/Makefile ] ; then
109                                 cd $training/OGLES2/Build/LinuxGeneric
110                         fi
112                         if [ -e $training/OGLES2/Build/LinuxOMAP3/Makefile ] ; then
113                                 cd $training/OGLES2/Build/LinuxOMAP3
114                         fi                      
116                         oe_runmake Common=1 PLATFORM=$PLATFORM X11BUILD=$X11BUILD  
117                         rm -f $training/OGLES2/Build/LinuxOMAP3/Release*/*.o
118                         install -m 0755 $training/OGLES2/Build/LinuxOMAP3/ReleaseX11/* ${S}/trainingcourses/x11 || true
119                         install -m 0755 $training/OGLES2/Build/LinuxOMAP3/ReleaseRaw/* ${S}/trainingcourses/raw || true 
120                 done
121         done
125 do_install () {
126         install -d ${D}${libdir}
127         cp -pPR ${BINLOCATION}/*.so* ${D}${libdir}
128         install -m 0644 ${BINLOCATION}/*.a ${D}${libdir}
130         install -d ${D}${bindir}/
131         install -m 0755 ${WORKDIR}/cputype ${D}${bindir}/
133         install -m 0755 ${BINLOCATION}/*_test ${D}${bindir}/
134         install -m 0755 ${BINLOCATION}/gl* ${D}${bindir}/
135         install -m 0755 ${BINLOCATION}/p[dv]* ${D}${bindir}/
136         install -m 0755 ${BINLOCATION}/xgles1test1 ${D}${bindir}/
138         install -m 0755 ${BINLOCATION}/freedesktop/kdrive/usr/X11R6_SGX/bin/Xsgx ${D}${bindir}/|| true
139         cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/lib/*X11WS* ${D}${libdir} || true
141         install -d ${D}${includedir}
142         cp -pPR ${S}/GFX_Linux_KM/include4 ${D}${includedir}/
143         cp -pPR ${S}/GFX_Linux_KM/services4 ${D}${includedir}/
145         cp -pPR ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/Include/* ${D}${includedir}/
146         cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/Include/* ${D}${includedir}/
147         cp -pPR ${S}/GFX_Linux_SDK/OGLES/SDKPackage/Builds/OGLES/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES/ || true
148         cp -pPr ${S}/GFX_Linux_SDK/OGLES2/SDKPackage/Builds/OGLES2/LinuxOMAP3/Include/GLES/* ${D}${includedir}/GLES2/ || true
149         cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/v* ${D}${includedir}/ || true
150         cp -pPr ${S}/GFX_Linux_SDK/OVG/SDKPackage/Builds/OVG/Include/V* ${D}${includedir}/ || true
151         cp -pPr ${S}/include/*.h ${D}${includedir} || true
152         cp -pPr ${S}/include/wsegl/*.h ${D}${includedir} || true
153         
154         install -d ${D}${sysconfdir}/init.d/
155         cp -pP ${WORKDIR}/rc.pvr ${D}${sysconfdir}/init.d/pvr-init
157         install -d ${D}${sysconfdir}
158         echo "[default]" > ${D}${sysconfdir}/powervr.ini
159         echo "WindowSystem=libpvrPVR2D_FRONTWSEGL.so.1" >> ${D}${sysconfdir}/powervr.ini
161         # The ES2.x, ES3.x, ES5.x and ES6.x CPUs have different SGX hardware, so we need to install multiple sets of userspace
163         install -d ${D}${libdir}/ES8.0
164         install -d ${D}${libdir}/ES6.0
165         install -d ${D}${libdir}/ES5.0
166         install -d ${D}${libdir}/ES3.0
167         install -d ${D}${libdir}/ES2.0
169         install -d ${D}${bindir}/ES8.0
170         install -d ${D}${bindir}/ES6.0
171         install -d ${D}${bindir}/ES5.0
172         install -d ${D}${bindir}/ES3.0
173         install -d ${D}${bindir}/ES2.0
176         if [ -e ${ES2LOCATION} ] ; then
177                 cp -pPR ${ES2LOCATION}/lib*${IMGPV} ${D}${libdir}/ES2.0/
178                 cp ${ES2LOCATION}/p[dv]* ${D}${bindir}/ES2.0/
179         fi
181         if [ -e ${ES3LOCATION} ] ; then
182                 cp -pPR ${ES3LOCATION}/lib*${IMGPV} ${D}${libdir}/ES3.0/
183                 cp ${ES3LOCATION}/p[dv]* ${D}${bindir}/ES3.0
184         fi
186         if [ -e ${ES5LOCATION} ] ; then 
187                 cp -pPR ${ES5LOCATION}/lib*${IMGPV} ${D}${libdir}/ES5.0/
188                 cp ${ES5LOCATION}/p[dv]* ${D}${bindir}/ES5.0/
189         fi
191         if [ -e ${ES6LOCATION} ] ; then
192                 cp -pPR ${ES6LOCATION}/lib*${IMGPV} ${D}${libdir}/ES6.0/
193                 cp ${ES6LOCATION}/p[dv]* ${D}${bindir}/ES6.0/
194         fi
196         if [ -e ${ES8LOCATION} ] ; then
197                 cp -pPR ${ES8LOCATION}/lib*${IMGPV} ${D}${libdir}/ES8.0/
198                 cp ${ES8LOCATION}/p[dv]* ${D}${bindir}/ES8.0/
199         fi
201         rm ${D}${bindir}/ES*/*.h ${D}${bindir}/ES*/pdsasm ${D}${bindir}/pdsasm -f || true
203         install -d ${D}${prefix}/share/applications
204         cp ${WORKDIR}/*.desktop ${D}${prefix}/share/applications
205         rm ${D}${prefix}/share/applications/sample.desktop
207         install -d ${D}${bindir}/SGX/demos/X11/
208         install -d ${D}${bindir}/SGX/demos/Raw/
209         install -m 0755 ${S}/demos/x11/* ${D}${bindir}/SGX/demos/X11/
210         install -m 0755 ${S}/demos/raw/* ${D}${bindir}/SGX/demos/Raw/
212         install -d ${D}${bindir}/SGX/trainingcourses/Raw
213         install -d ${D}${bindir}/SGX/trainingcourses/X11
214         install -m 0755 ${S}/trainingcourses/x11/* ${D}${bindir}/SGX/trainingcourses/X11/
215         install -m 0755 ${S}/trainingcourses/raw/* ${D}${bindir}/SGX/trainingcourses/Raw/
217         # Delete objects and linker scripts hidden between the headers
218         find ${D} -name "*.o" -delete
219         find ${D} -name "*.o.cmd" -delete
221         install -d ${D}${sysconfdir}/udev/rules.d
222         install -m 0644 ${WORKDIR}/99-bufferclass.rules ${D}${sysconfdir}/udev/rules.d/
226 PACKAGES =+ "${PN}-rawdemos \
227              ${PN}-x11demos \
228              ${PN}-rawtrainingcourses \
229              ${PN}-x11trainingcourses \
232 PACKAGES += "xserver-kdrive-powervrsgx \
233              ${PN}-tests "
235 # Package the base libraries per silicon revision
236 PACKAGES =+ "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
237 RRECOMMENDS_${PN} += "${PN}-es2 ${PN}-es3 ${PN}-es5 ${PN}-es6 ${PN}-es8"
238 FILES_${PN}-es2 = "${libdir}/ES2*/* ${bindir}/ES2*/*"
239 FILES_${PN}-es3 = "${libdir}/ES3*/* ${bindir}/ES3*/*"
240 FILES_${PN}-es5 = "${libdir}/ES5*/* ${bindir}/ES5*/*"
241 FILES_${PN}-es6 = "${libdir}/ES6*/* ${bindir}/ES6*/*"
242 FILES_${PN}-es8 = "${libdir}/ES8*/* ${bindir}/ES8*/*"
244 PACKAGES =+ "${PN}-blitwsegl ${PN}-flipwsegl ${PN}-frontwsegl ${PN}-linuxfbwsegl ${PN}-x11wsegl ${PN}-driwsegl"
245 FILES_${PN}-blitwsegl = "${libdir}/libpvrPVR2D_BLITWSEGL.so.*"
246 FILES_${PN}-flipwsegl = "${libdir}/libpvrPVR2D_FLIPWSEGL.so.*"
247 FILES_${PN}-frontwsegl = "${libdir}/libpvrPVR2D_FRONTWSEGL.so.*"
248 FILES_${PN}-linuxfbwsegl = "${libdir}/libpvrPVR2D_LINUXFBWSEGL.so.*"
249 FILES_${PN}-x11wsegl = "${libdir}/libpvrPVR2D_X11WSEGL.so*"
250 FILES_${PN}-driwsegl = "${libdir}/libpvrPVR2D_DRIWSEGL.so*"
252 PACKAGES =+ "${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8 ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8 ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8 ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8 ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8 ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-driwsegl-es8"
253 FILES_${PN}-blitwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_BLITWSEGL.so.*"
254 FILES_${PN}-blitwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_BLITWSEGL.so.*"
255 FILES_${PN}-blitwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_BLITWSEGL.so.*"
256 FILES_${PN}-blitwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_BLITWSEGL.so.*"
257 FILES_${PN}-blitwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_BLITWSEGL.so.*"
258 RRECOMMENDS_${PN}-blitwsegl = " ${PN}-blitwsegl-es2 ${PN}-blitwsegl-es3 ${PN}-blitwsegl-es5 ${PN}-blitwsegl-es6 ${PN}-blitwsegl-es8"
260 FILES_${PN}-flipwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_FLIPWSEGL.so.*"
261 FILES_${PN}-flipwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_FLIPWSEGL.so.*"
262 FILES_${PN}-flipwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_FLIPWSEGL.so.*"
263 FILES_${PN}-flipwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_FLIPWSEGL.so.*"
264 FILES_${PN}-flipwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_FLIPWSEGL.so.*"
265 RRECOMMENDS_${PN}-flipwsegl = " ${PN}-flipwsegl-es2 ${PN}-flipwsegl-es3 ${PN}-flipwsegl-es5 ${PN}-flipwsegl-es6 ${PN}-flipwsegl-es8"
267 FILES_${PN}-frontwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_FRONTWSEGL.so.*"
268 FILES_${PN}-frontwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_FRONTWSEGL.so.*"
269 FILES_${PN}-frontwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_FRONTWSEGL.so.*"
270 FILES_${PN}-frontwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_FRONTWSEGL.so.*"
271 FILES_${PN}-frontwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_FRONTWSEGL.so.*"
272 RRECOMMENDS_${PN}-frontwsegl = " ${PN}-frontwsegl-es2 ${PN}-frontwsegl-es3 ${PN}-frontwsegl-es5 ${PN}-frontwsegl-es6 ${PN}-frontwsegl-es8"
274 FILES_${PN}-linuxfbwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_LINUXFBWSEGL.so.*"
275 FILES_${PN}-linuxfbwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_LINUXFBWSEGL.so.*"
276 FILES_${PN}-linuxfbwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_LINUXFBWSEGL.so.*"
277 FILES_${PN}-linuxfbwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_LINUXFBWSEGL.so.*"
278 FILES_${PN}-linuxfbwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_LINUXFBWSEGL.so.*"
279 RRECOMMENDS_${PN}-linuxfbwsegl = " ${PN}-linuxfbwsegl-es2 ${PN}-linuxfbwsegl-es3 ${PN}-linuxfbwsegl-es5 ${PN}-linuxfbwsegl-es6 ${PN}-linuxfbwsegl-es8"
281 FILES_${PN}-x11wsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_X11WSEGL.so.*"
282 FILES_${PN}-x11wsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_X11WSEGL.so.*"
283 FILES_${PN}-x11wsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_X11WSEGL.so.*"
284 FILES_${PN}-x11wsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_X11WSEGL.so.*"
285 FILES_${PN}-x11wsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_X11WSEGL.so.*"
286 RRECOMMENDS_${PN}-x11wsegl = " ${PN}-x11wsegl-es2 ${PN}-x11wsegl-es3 ${PN}-x11wsegl-es5 ${PN}-x11wsegl-es6 ${PN}-x11wsegl-es8"
288 FILES_${PN}-driwsegl-es2 = "${libdir}/ES2*/libpvrPVR2D_DRIWSEGL.so.*"
289 FILES_${PN}-driwsegl-es3 = "${libdir}/ES3*/libpvrPVR2D_DRIWSEGL.so.*"
290 FILES_${PN}-driwsegl-es5 = "${libdir}/ES5*/libpvrPVR2D_DRIWSEGL.so.*"
291 FILES_${PN}-driwsegl-es6 = "${libdir}/ES6*/libpvrPVR2D_DRIWSEGL.so.*"
292 FILES_${PN}-driwsegl-es8 = "${libdir}/ES8*/libpvrPVR2D_DRIWSEGL.so.*"
293 RRECOMMENDS_${PN}-driwsegl = " ${PN}-driwsegl-es2 ${PN}-driwsegl-es3 ${PN}-driwsegl-es5 ${PN}-driwsegl-es6 ${PN}-driwsegl-es8"
295 CONFFILES_${PN} = "${sysconfdir}/powervr.ini"
297 FILES_${PN} = "${sysconfdir} ${libdir}/lib*.so.* ${libdir}/ES*/* ${bindir}/pvrsrvinit ${bindir}/cputype ${bindir}/*/*"
299 FILES_xserver-kdrive-powervrsgx = "${bindir}/Xsgx"
300 FILES_${PN}-tests = "${bindir}/*"
301 FILES_${PN}-dbg = "${libdir}/.debug/* ${bindir}/.debug/* \
302                    ${libdir}/ES*/.debug ${bindir}/*/.debug\
303                    ${bindir}/SGX/demos/*/.debug/* \
304                    ${bindir}/SGX/trainingcourses/*/.debug/* \
305         "
307 FILES_${PN}-rawdemos = "${bindir}/SGX/demos/Raw/*"
308 FILES_${PN}-x11demos = "${bindir}/SGX/demos/X11/* ${prefix}/share/applications "
309 RRECOMMENDS_${PN}-x11demos = "${PN}-x11wsegl"
311 FILES_${PN}-rawtrainingcourses = "${bindir}/SGX/trainingcourses/Raw/*"
312 FILES_${PN}-x11trainingcourses = "${bindir}/SGX/trainingcourses/X11/*"
313 RRECOMMENDS_${PN}-x11trainingcourses = "${PN}-x11wsegl"
315 # The libs need the kernel-modules
316 RRECOMMENDS_${PN} = "omap3-sgx-modules"
318 # The initscript calls fbset, cputype calls devmem2
319 RDEPENDS_${PN} += "fbset devmem2"
321 #HACK! These are binaries, so we can't guarantee that LDFLAGS match :(
322 INSANE_SKIP_${PN} = "ldflags dev-so"
323 INSANE_SKIP_${PN}-blitwsegl = "ldflags"
324 INSANE_SKIP_${PN}-flipwsegl = "ldflags"
325 INSANE_SKIP_${PN}-frontwsegl = "ldflags"
326 INSANE_SKIP_${PN}-linuxfbwsegl = "ldflags"
327 INSANE_SKIP_${PN}-x11wsegl = "ldflags dev-so"
328 INSANE_SKIP_${PN}-driwsegl = "ldflags dev-so"
329 INSANE_SKIP_${PN}-tests = "ldflags"
330 INSANE_SKIP_xserver-kdrive-powervrsgx = "ldflags"
332 # Quality control is really poor on these SDKs, so hack around the latest madness:
333 FILES_${PN} += "${libdir}/*.so "
334 FILES_${PN}-dev = "${includedir}"
336 inherit update-rc.d
338 INITSCRIPT_NAME = "pvr-init"
339 INITSCRIPT_PARAMS = "start 30 5 2 . stop 40 0 1 6 ."
341 # Append to update-rc.d postinst
342 pkg_postinst_${PN}_append() {
343 rm -f ${sysconfdir}/powervr-esrev
345 ln -sf /usr/lib/libXdmcp.so.6.0.0 /usr/lib/libXdmcp.so.0 
346 ln -sf /usr/lib/libXau.so.6.0.0 /usr/lib/libXau.so.0
349 pkg_postinst_${PN}-blitwsegl() {
350 rm -f ${sysconfdir}/powervr-esrev
353 pkg_postinst_${PN}-flipwsegl() {
354 rm -f ${sysconfdir}/powervr-esrev
357 pkg_postinst_${PN}-frontwsegl() {
358 rm -f ${sysconfdir}/powervr-esrev
360 pkg_postinst_${PN}-linuxfbwsegl() {
361 rm -f ${sysconfdir}/powervr-esrev
364 pkg_postinst_${PN}-x11wsegl() {
365 rm -f ${sysconfdir}/powervr-esrev
367 echo "[default]" > $D${sysconfdir}/powervr.ini
368 echo "WindowSystem=libpvrPVR2D_X11WSEGL.so.1" >> $D${sysconfdir}/powervr.ini
371 pkg_postinst_${PN}-driwsegl() {
372 rm -f ${sysconfdir}/powervr-esrev