aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-bsp/ezx/ezxd_svn.bb
blob: 7b69454eda52cdb4d2b56020d5be099cb09cc948 (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
43
44
45
46
47
48
DESCRIPTION = "Open implementation of motorola's tapisrv, replaces opentapi"
LICENSE = "GPLv2+"
SECTION = "devel"
AUTHOR = "Daniel Ribeiro"

SRCREV = "2513"
PV = "0.0+svnr${SRCPV}"
PR = "r4"
LIC_FILES_CHKSUM = "file://plugin.c;endline=19;md5=16da36fbb577507b411368f133ce2067"
SRC_URI = "svn://svn.openezx.org/trunk/src/userspace/;module=ezxd;protocol=http \
           file://ezxd.init \
          "

inherit update-rc.d

INITSCRIPT_NAME = "ezxd"
INITSCRIPT_PARAMS = "start 00 S ."

S = "${WORKDIR}/${PN}"

CFLAGS_append = " -DDEBUG -fPIC " 

TARGET_CC_ARCH += "${LDFLAGS} -fPIC"

do_configure() {
        # Comment out both CC and CROSS definitions
        sed -i -e 's:^CC.*$:#\0:g' Makefile
        sed -i -e 's:^CROSS.*$:#\0:g' Makefile
}

fakeroot do_install() {
        install -d ${D}/dev/input
        mknod ${D}/dev/input/uinput c 10 223

        install -d ${D}${bindir}
	install -m 755 ezxd ${D}${bindir}

	install -d ${D}${libdir}/ezxd
	install -m 755 *.so ${D}${libdir}/ezxd

	install -d ${D}${sysconfdir}/init.d
        install -m 0600 ezxd.conf ${D}${sysconfdir}/
        install -m 0755 ${WORKDIR}/ezxd.init ${D}${sysconfdir}/init.d/ezxd
}

FILES_${PN} += "/dev"
CONFFILES_${PN} += "${sysconfdir}/ezxd.conf"