summaryrefslogtreecommitdiff
path: root/fbvncserver/fbvncserver_0.9.4.oe
blob: 9d57441744d0b4fb13f1878a23493342ae382808 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SECTION = "console/utils"
DESCRIPTION = "framebuffer VNC server"
DEPENDS = "libvncserver jpeg zlib"
RDEPENDS = "fbvncserver-kmodule libvncserver-storepasswd libvncserver-javaapplet"

SRC_URI = "http://sdgsystems.com/download/fbvncserver-${PV}.tar.gz \
           file://libvncs0.6.patch;patch=1 \
           file://paths.patch;patch=1 \
           file://kernelinclude.patch;patch=1 \
           file://zaurus_panel.jpg \
           file://init"
	  
export INCLUDES = "-I${STAGING_INCDIR}"

export LIBS = "-L${STAGING_LIBDIR} -lpthread"
export VNCSERVER_DIR = "${STAGING_LIBDIR}"
export ZAURUS_ZLIB_LIBS = "${STAGING_LIBDIR}"
export ZAURUS_JPEG_LIBS = "${STAGING_LIBDIR}"

do_compile () {
	oe_runmake zaurus_fbvncserver zaurus_tssimd
}

do_install () {
	install -d ${D}/usr/bin
	install -m 0755 zaurus_fbvncserver ${D}/usr/bin/fbvncserver
	install -m 0755 zaurus_tssimd ${D}/usr/bin/tssimd
	
	install -d ${D}/usr/share/fbvncserver
	install -m 0644 ${WORKDIR}/zaurus_panel.jpg ${D}/usr/share/fbvncserver/
	
	install -d ${D}/${sysconfdir}/init.d
	install -d ${D}/${sysconfdir}/rc2.d
	install -d ${D}/${sysconfdir}/rc3.d
	install -d ${D}/${sysconfdir}/rc4.d
	install -d ${D}/${sysconfdir}/rc5.d
	install -m 0755 ${WORKDIR}/init ${D}/${sysconfdir}/init.d/fbvncinput
	ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc2.d/S97fbvncinput
	ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc3.d/S97fbvncinput
	ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc4.d/S97fbvncinput
	ln -sf ../init.d/fbvncinput ${D}/${sysconfdir}/rc5.d/S97fbvncinput
}