1 DEPENDS = "jpeg libungif libid3tag libmad libpng libsigc++-1.2 gettext-native tuxbox-libs tuxbox-plugins dreambox-dvbincludes mtd-utils freetype"
2 DESCRIPTION = "Enigma is a framebuffer-based frontend for DVB functions"
3 MAINTAINER = "Felix Domke <tmbinc@elitedvb.net>"
11 SRC_URI = "cvs://anoncvs@cvs.tuxbox.org/cvs/tuxbox;module=apps/tuxbox/enigma;method=ext \
15 http://sources.dreamboxupdate.com/download/opendreambox/enigma/boot-${MACHINE} \
16 file://enigma_enter_standby.sh \
17 file://enigma_leave_standby.sh \
18 file://rotor_fix.diff;patch=1;pnum=1 \
19 file://disable_boot.diff;patch=1;pnum=1 \
20 file://enigma-gcc4.patch;patch=1 \
21 file://epgfix_backport.diff;patch=1;pnum=1 \
22 file://timeshiftfix_backport.diff;patch=1;pnum=1 \
23 file://subtitlefix_backport.diff;patch=1;pnum=1 \
24 file://rdstextfix_backport.diff;patch=1;pnum=1 \
25 file://duplicate_tsid_onid_cable_terrestrial_fix_backport.diff;patch=1;pnum=1"
27 # dm600pvr and dm500plus don't have a FP, so they can't really switch of. Show a shutdown pic instead.
28 SRC_URI_append_dm600pvr = " http://sources.dreamboxupdate.com/download/opendreambox/enigma/showshutdownpic-${MACHINE} \
29 file://add_blindscan_to_menu.diff;patch=1;pnum=1 \
30 http://sources.dreamboxupdate.com/download/patches/enigma_add_cable_blindscan.diff;patch=1;pnum=1"
31 SRC_URI_append_dm500plus = " http://sources.dreamboxupdate.com/download/opendreambox/enigma/showshutdownpic-${MACHINE} \
32 file://add_blindscan_to_menu.diff;patch=1;pnum=1"
34 S = "${WORKDIR}/enigma"
36 FILES_${PN} += " ${datadir}/tuxbox ${datadir}/fonts"
37 PACKAGE_ARCH = "${MACHINE_ARCH}"
39 PACKAGES_DYNAMIC = "enigma-locale-*"
41 inherit autotools pkgconfig
43 EXTRA_OECONF = "--with-target=native --with-boxtype=${MACHINE} --with-webif=standard --with-epg=private --with-enigma-debug=yes --with-reiserfs=no"
45 do_configure_prepend() {
49 do_compile_prepend() {
50 chmod ugo+x ${S}/po/xml2po
54 install -d ${STAGING_INCDIR}/enigma
55 install -m 0644 ${WORKDIR}/enigma/include/*.h ${STAGING_INCDIR}/enigma
56 for dir in base dvb dvb/lowlevel codecs driver gdi gui socket system picviewer movieplayer; do
57 install -d ${STAGING_INCDIR}/enigma/lib/$dir;
58 install -m 0644 ${WORKDIR}/enigma/include/lib/$dir/*.h ${STAGING_INCDIR}/enigma/lib/$dir;
60 rm -R ${STAGING_INCDIR}/enigma/src 2> /dev/null || /bin/true
61 install -m 0644 ${WORKDIR}/enigma/src/*.h ${STAGING_INCDIR}/enigma
62 ln -sf ${STAGING_INCDIR}/enigma ${STAGING_INCDIR}/enigma/src
66 install -d ${D}/usr/share/enigma/default
67 install -d ${D}/usr/share/enigma/default/cable
68 install -d ${D}/usr/share/enigma/default/terrestrial
69 mv ${D}/etc/enigma/* ${D}/usr/share/enigma/default 2> /dev/null || /bin/true
70 rm -R ${D}/etc/enigma 2> /dev/null || /bin/true
71 install -m 0644 ${WORKDIR}/config ${D}/usr/share/enigma/default/
72 if [ "${MACHINE}" = "dm600pvr" -o "${MACHINE}" = "dm500plus" ]; then
73 install -m 0755 ${WORKDIR}/showshutdownpic-${MACHINE} ${D}/usr/bin/showshutdownpic
74 # vulcan-based boxes don't look that well with too much alpha
75 echo "i:/ezap/osd/alpha=00000000" >> ${D}/usr/share/enigma/default/config
76 echo "i:/ezap/osd/simpleMainMenu=00000001" >> ${D}/usr/share/enigma/default/config
78 install -m 0644 ${WORKDIR}/userbouquet* ${D}/usr/share/enigma/default/
79 install -m 0755 ${WORKDIR}/enigma.sh ${D}/usr/bin/
80 install -m 0755 ${WORKDIR}/boot-${MACHINE} ${D}/usr/bin/boot
82 install -m 0755 ${WORKDIR}/enigma_enter_standby.sh ${D}/etc
83 install -m 0755 ${WORKDIR}/enigma_leave_standby.sh ${D}/etc