pandora-libpnd: bump
[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 = "r80"
5
6 PARALLEL_MAKE = ""
7
8 DEPENDS = "virtual/libsdl libsdl-image libsdl-gfx libsdl-ttf"
9
10 SRC_URI = " \
11           git://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 = "21e05fa823097b0ae86f5290bd3d70b824e14196"
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 -D_FILE_OFFSET_BITS=64 "
25
26 PACKAGES =+ "${PN}-pndnotifyd ${PN}-pndevmapperd ${PN}-minimenu"
27
28 INITSCRIPT_PACKAGES = "${PN}-pndnotifyd ${PN}-pndevmapperd"
29
30 INITSCRIPT_NAME_${PN}-pndnotifyd = "pndnotifyd-init"
31 INITSCRIPT_PARAMS_${PN}-pndnotifyd = "start 30 5 3 . stop 40 0 1 6 ."
32
33 INITSCRIPT_NAME_${PN}-pndevmapperd = "pndevmapperd-init"
34 INITSCRIPT_PARAMS_${PN}-pndevmapperd = "start 30 5 3 . stop 40 0 1 6 ."
35
36 # not needed - done by OE
37 #RDEPENDS_${PN}-pndnotifyd += "${PN}"
38 #RDEPENDS_${PN}-pndevmapperd += "${PN}"
39 #RDEPENDS_${PN}-minimenu += "${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           oe_libinstall -C ${S}/deployment/usr/lib/ libpnd ${D}/${libdir}/
60
61           install -d ${D}${bindir}/
62           install -m 0755 ${S}/deployment/usr/bin/pndnotifyd ${D}${bindir}/pndnotifyd
63           install -m 0755 ${S}/deployment/usr/bin/pndevmapperd ${D}${bindir}/pndevmapperd 
64           install -m 0755 ${S}/deployment/usr/bin/pnd_run ${D}${bindir}/pnd_run 
65           install -m 0755 ${S}/deployment/usr/bin/pnd_info ${D}${bindir}/pnd_info
66           install -m 0755 ${S}/deployment/usr/bin/mmenu ${D}${bindir}/mmenu
67           install -m 0755 ${S}/deployment/usr/bin/mmwrapper ${D}${bindir}/mmwrapper
68
69           install -d ${D}${prefix}/pandora/
70           install -d ${D}${prefix}/pandora/apps/
71           install -d ${D}${prefix}/pandora/scripts/
72           install -m 0755 ${S}/deployment/usr/pandora/scripts/* ${D}${prefix}/pandora/scripts
73           install -m 0755 ${S}/testdata/scripts/* ${D}${prefix}/pandora/scripts
74
75           install -d ${D}${sysconfdir}/pandora/mmenu/
76           install -d ${D}${sysconfdir}/pandora/mmenu/skins/
77           install -d ${D}${sysconfdir}/pandora/mmenu/skins/default/
78           install -d ${D}${sysconfdir}/pandora/mmenu/skins/clean/
79           install -m 0755 ${S}/deployment/etc/pandora/mmenu/skins/default/* ${D}${sysconfdir}/pandora/mmenu/skins/default
80           install -m 0755 ${S}/deployment/etc/pandora/mmenu/skins/clean/* ${D}${sysconfdir}/pandora/mmenu/skins/clean
81
82           install -d ${D}${sysconfdir}/init.d/
83           install -m 0755 ${WORKDIR}/rc.pndnotifyd ${D}${sysconfdir}/init.d/pndnotifyd-init
84           install -m 0755 ${WORKDIR}/rc.pndevmapperd ${D}${sysconfdir}/init.d/pndevmapperd-init
85
86           install -d ${D}${prefix}/local/share/applications/
87
88           install -d ${D}${includedir}/
89           install -m 0644 ${S}/include/pnd* ${D}${includedir}/
90
91           install -d ${D}${sysconfdir}/sudoers.d/
92           install -m 440 ${S}/testdata/sh/sudoers ${D}${sysconfdir}/sudoers.d/99_libpnd
93
94           install -d ${D}${datadir}/applications/
95           install -m 0644 ${WORKDIR}/op_pnd_run.desktop ${D}${datadir}/applications/
96 }
97
98 FILES_${PN}-minimenu = "${bindir}/mmenu ${bindir}/mmwrapper ${sysconfdir}/pandora/conf/mmenu.conf ${sysconfdir}/pandora/mmenu* "
99 FILES_${PN}-pndnotifyd = "${sysconfdir}/init.d/pndnotifyd-init ${bindir}/pndnotifyd"
100 FILES_${PN}-pndevmapperd = "${sysconfdir}/init.d/pndevmapperd-init ${bindir}/pndevmapperd "
101 FILES_${PN}-dev += "${libdir}/libpnd.a ${includedir}/pnd* "
102 FILES_${PN}-doc += "${libdir}/libpnd.txt "
103
104 # Mop up remaining files.
105 FILES_${PN} += "${bindir} ${sbindir} ${prefix}/pandora/*"
106
107 CONFFILES_${PN} += ${sysconfdir}/pandora/conf/eventmap
108
109 NATIVE_INSTALL_WORKS = "1"