Bumped recipes
[openpandora.oe.git] / recipes / pandora-system / pandora-libpnd.bb
1 DESCRIPTION = "Support for the PND format in Pandora images (lib, daemon, init script etc.)"
2 LICENSE = "lGPL"
3
4 PR = "r41"
5
6 PARALLEL_MAKE = ""
7
8 DEPENDS = "virtual/libsdl libsdl-image libsdl-gfx libsdl-ttf"
9
10 SRC_URI = " \
11           git://openpandora.org/pandora-libraries.git;protocol=git;branch=master \
12           file://rc.pndnotifyd \
13           file://rc.pndevmapperd \   
14           file://op_pnd_run.desktop \
15 "
16
17 SRCREV = "558f910df59d2f912cf17f89d261e934f4b71095"
18
19 S = "${WORKDIR}/git"
20
21 inherit update-rc.d
22
23 TARGET_CC_ARCH += "${LDFLAGS}"
24 TARGET_CFLAGS += "-Wall -I./include -I${STAGING_INCDIR}/usr/include -I${STAGING_INCDIR}/SDL "
25
26 PACKAGES =+ "${PN}-pndnotifyd ${PN}-pndevmapperd ${PN}-minimenu"
27
28 RDEPENDS_${PN} += "${PN}-pndnotifyd ${PN}-pndevmapperd ${PN}-minimenu"
29
30 INITSCRIPT_PACKAGES = "${PN}-pndnotifyd ${PN}-pndevmapperd"
31
32 INITSCRIPT_NAME_${PN}-pndnotifyd = "pndnotifyd-init"
33 INITSCRIPT_PARAMS_${PN}-pndnotifyd = "start 30 5 3 . stop 40 0 1 6 ."
34
35 INITSCRIPT_NAME_${PN}-pndevmapperd = "pndevmapperd-init"
36 INITSCRIPT_PARAMS_${PN}-pndevmapperd = "start 30 5 3 . stop 40 0 1 6 ."
37
38 RDEPENDS_${PN}-pndnotifyd += "${PN}"
39 RDEPENDS_${PN}-pndevmapperd += "${PN}"
40
41 do_compile_prepend() {
42           cd ${S}/
43 }
44
45 do_compile() {
46           oe_runmake 
47           oe_runmake deploy
48 }
49
50 do_install() {
51           install -d ${D}${sysconfdir}/pandora/conf/
52           install -m 0644 ${S}/deployment/etc/pandora/conf/apps ${D}${sysconfdir}/pandora/conf/apps
53           install -m 0644 ${S}/deployment/etc/pandora/conf/desktop ${D}${sysconfdir}/pandora/conf/desktop
54           install -m 0644 ${S}/deployment/etc/pandora/conf/categories ${D}${sysconfdir}/pandora/conf/categories
55           install -m 0644 ${S}/deployment/etc/pandora/conf/eventmap ${D}${sysconfdir}/pandora/conf/eventmap
56           install -m 0644 ${S}/deployment/etc/pandora/conf/mmenu.conf ${D}${sysconfdir}/pandora/conf/mmenu.conf
57
58           install -d ${D}${libdir}/
59           install -m 0644 ${S}/deployment/usr/lib/libpnd* ${D}${libdir}/
60           install -m 0644 ${S}/deployment/usr/lib/libpnd.so.1.0.1 ${D}${libdir}/libpnd.so.1
61
62           install -d ${D}${bindir}/
63           install -m 0755 ${S}/deployment/usr/bin/pndnotifyd ${D}${bindir}/pndnotifyd
64           install -m 0755 ${S}/deployment/usr/bin/pndevmapperd ${D}${bindir}/pndevmapperd 
65           install -m 0755 ${S}/deployment/usr/bin/pnd_run ${D}${bindir}/pnd_run 
66           install -m 0755 ${S}/deployment/usr/bin/pnd_info ${D}${bindir}/pnd_info
67           install -m 0755 ${S}/deployment/usr/bin/mmenu ${D}${bindir}/mmenu
68           install -m 0755 ${S}/deployment/usr/bin/mmwrapper ${D}${bindir}/mmwrapper
69
70           install -d ${D}${prefix}/pandora/
71           install -d ${D}${prefix}/pandora/apps/
72           install -d ${D}${prefix}/pandora/scripts/
73           install -m 0755 ${S}/deployment/usr/pandora/scripts/* ${D}${prefix}/pandora/scripts
74           install -m 0755 ${S}/testdata/scripts/* ${D}${prefix}/pandora/scripts
75
76           install -d ${D}${sysconfdir}/pandora/mmenu/
77           install -d ${D}${sysconfdir}/pandora/mmenu/skins/
78           install -d ${D}${sysconfdir}/pandora/mmenu/skins/default/
79           install -m 0755 ${S}/deployment/etc/pandora/mmenu/skins/default/* ${D}${sysconfdir}/pandora/mmenu/skins/default
80
81           install -d ${D}${sysconfdir}/init.d/
82           install -m 0755 ${WORKDIR}/rc.pndnotifyd ${D}${sysconfdir}/init.d/pndnotifyd-init
83           install -m 0755 ${WORKDIR}/rc.pndevmapperd ${D}${sysconfdir}/init.d/pndevmapperd-init
84
85           install -d ${D}${prefix}/local/share/applications/
86
87           install -d ${D}${includedir}/
88           install -m 0644 ${S}/include/pnd* ${D}${includedir}/
89
90           install -d ${D}${sysconfdir}/sudoers.d/
91           install -m 440 ${S}/testdata/sh/sudoers ${D}${sysconfdir}/sudoers.d/99_libpnd
92
93           install -d ${D}${datadir}/applications/
94           install -m 0644 ${WORKDIR}/op_pnd_run.desktop ${D}${datadir}/applications/
95 }
96
97 FILES_${PN}-minimenu = "${bindir}/mmenu ${bindir}/mmwrapper ${sysconfdir}/pandora/conf/mmenu.conf ${sysconfdir}/pandora/mmenu* "
98 FILES_${PN}-pndnotifyd = "${sysconfdir}/init.d/pndnotifyd-init ${bindir}/pndnotifyd"
99 FILES_${PN}-pndevmapperd = "${sysconfdir}/init.d/pndevmapperd-init ${bindir}/pndevmapperd "
100 FILES_${PN}-dev += "${libdir}/libpnd.a ${includedir}/pnd* "
101 FILES_${PN}-doc += "${libdir}/libpnd.txt "
102
103 # Mop up remaining files.
104 FILES_${PN} += "${bindir} ${sbindir} ${prefix}/pandora/*"