ab19ffaca9fda7e229c4ea0e43dd39a8973862a1
[vuplus_openembedded] / fbvncserver / fbvncserver_0.9.4.oe
1 DESCRIPTION = "framebuffer VNC server"
2 DEPENDS = "virtual/libc libvncserver jpeg zlib"
3 RDEPENDS = "fbvncserver-kmodule libvncserver-storepasswd libvncserver-javaapplet"
4
5 SRC_URI = "http://sdgsystems.com/download/fbvncserver-${PV}.tar.gz \
6            file://${FILESDIR}/libvncs0.6.patch;patch=1 \
7            file://${FILESDIR}/paths.patch;patch=1 \
8            file://${FILESDIR}/kernelinclude.patch;patch=1"
9           
10 export INCLUDES = "-I${STAGING_INCDIR}"
11
12 export LIBS = "-L${STAGING_LIBDIR} -lpthread"
13 export VNCSERVER_DIR = "${STAGING_LIBDIR}"
14 export ZAURUS_ZLIB_LIBS = "${STAGING_LIBDIR}"
15 export ZAURUS_JPEG_LIBS = "${STAGING_LIBDIR}"
16
17 do_compile () {
18         oe_runmake zaurus_fbvncserver zaurus_tssimd
19 }
20
21 do_install () {
22         install -d ${D}/usr/bin
23         install -m 0755 zaurus_fbvncserver ${D}/usr/bin/fbvncserver
24         install -m 0755 zaurus_tssimd ${D}/usr/bin/tssimd
25         
26         install -d ${D}/usr/share/fbvncserver
27         install -m 0644 ${FILESDIR}/zaurus_panel.jpg ${D}/usr/share/fbvncserver/
28         
29         install -d ${D}/${sysconfdir}/init.d
30         install -d ${D}/${sysconfdir}/rc2.d
31         install -d ${D}/${sysconfdir}/rc3.d
32         install -d ${D}/${sysconfdir}/rc4.d
33         install -d ${D}/${sysconfdir}/rc5.d
34         install -m 0755 ${FILESDIR}/init ${D}/${sysconfdir}/init.d/fbvncinput
35         ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc2.d/S97fbvncinput
36         ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc3.d/S97fbvncinput
37         ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc4.d/S97fbvncinput
38         ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc5.d/S97fbvncinput
39 }