wok-next view enna/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents d5aab818505e
children
line source
1 # SliTaz package receipt.
3 PACKAGE="enna"
4 VERSION="v0.4.1"
5 CATEGORY="multimedia"
6 SHORT_DESC="Enna media center"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="http://enna.geexbox.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="hg|http://hg.geexbox.org/enna"
13 BRANCH="$VERSION"
15 BUILD_DEPENDS="shared-mime-info eina-dev eet-dev ecore-dev evas-dev efreet-dev \
16 edje-dev edbus-dev emotion-dev ethumb-dev elementary-dev embryo-dev curl-dev \
17 eio-dev xine-lib-dev libexif-dev alsa-lib-dev libplayer-dev libxml2-dev \
18 libtool expat-dev jpeg-dev glib-dev ffmpeg-dev libvalhalla-dev libelementary \
19 libxrandr-dev ffmpeg-compat-dev eeze-dev lua-dev gettext-dev"
21 # Handle cross compilation
22 case "$ARCH" in
23 i?86) BUILD_DEPENDS="$BUILD_DEPENDS mercurial automake ";;
24 esac
26 compile_rules() {
27 while read name file; do
28 sed -i "s/name: \"$name\";/&\n\ttype: RECT;/" \
29 data/theme/default/$file.edc
30 done <<EOT
31 clip mainmenu
32 flags.video.clip activity_video_flags
33 flags.audio.clip activity_video_flags
34 flags.clip activity_video_flags
35 flags.studio.clip activity_video_flags
36 flags.media.clip activity_video_flags
37 panel.clip activity_video_infos
38 endclip elm
39 EOT
40 sed -i 's/Elm_Genlist_Item /Elm_Genlist_Item_Type /g' src/bin/*.[hc]
41 sed -i 's|curl/types|curl/curl|' src/bin/url_utils.c
42 sed -i -e 's/\(elm_genlist_item_insert_after.*\)after/\1NULL, after/' \
43 -e 's/\(elm_genlist_item_insert_before.*\)before/\1NULL, before/' \
44 -e 's/elm_genlist_item_bring_in([^)]*/&, ELM_GENLIST_ITEM_SCROLLTO_IN/' \
45 -e 's/elm_button_label_set/elm_object_text_set/' \
46 -e 's/elm_label_label_set/elm_object_text_set/' \
47 -e 's/elm_genlist_item_data_get/elm_object_item_data_get/' \
48 -e 's/elm_genlist_item_del/elm_object_item_del/' \
49 -e 's/elm_icon_scale_set/elm_icon_resizable_set/' \
50 -e 's/elm_box_homogenous_set/elm_box_homogeneous_set/' \
51 -e 's/elm_toggle_state_set/elm_check_state_set/' \
52 -e 's/elm_toggle_state_get/elm_check_state_get/' \
53 -e 's/elm_scroller_content_set/elm_object_content_set/' \
54 -e 's/elm_genlist_item_object_get/elm_object_item_widget_get/' \
55 -e 's|elm_scale_set|//&|' -e 's|elm_toggle_add|elm_check_add|' \
56 -e 's/elm_toggle_states_labels_set(\([^,]*\),\([^,]*\),\([^)]*\)/elm_object_style_set(\1, "toggle"); elm_object_part_text_set(\1, "on", \2); elm_object_part_text_set(\1, "off", \3/' \
57 -e 's/elm_button_icon_set/elm_object_content_set/' \
58 -e 's/elm_genlist_horizontal_mode_set/elm_genlist_mode_set/' \
59 -e 's|elm_genlist_item_middle_bring_in|//&|' \
60 -e 's/elm_check_icon_set/elm_object_content_set/' \
61 -e 's/elm_object_focus(\([^)]*\)/elm_object_focus_set(\1, EINA_TRUE/' \
62 -e 's/elm_check_label_set/elm_object_text_set/' \
63 src/bin/*.[ch] src/modules/*/*/*.c
64 export CFLAGS="-I/usr/include/edje-1 -I/usr/include/eina-1 \
65 -I/usr/include/eina-1/eina -I/usr/include/evas-1 -I/usr/include/ecore-1 \
66 -I/usr/include/elementary-1 -I/usr/include/eet-1 -I/usr/include/efreet-1 \
67 -I/usr/include/e_dbus-1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include \
68 -I/usr/include/ethumb-1 \
69 -I/usr/include/libxml2"
70 ./autogen.sh \
71 --enable-libxrandr \
72 --enable-backend-emotion \
73 --enable-activity-tv \
74 $CONFIGURE_ARGS &&
75 make -j1 && make install
76 }
78 genpkg_rules() {
79 mkdir -p $fs/usr/share
80 cp -a $install/usr/bin $fs/usr
81 cp -a $install/usr/share/enna $fs/usr/share
82 DEPENDS="eina eet ecore evas efreet edje edbus emotion ethumb elementary \
83 embryo libvalhalla libcurl xine-lib libexif alsa-lib libplayer \
84 libxrandr"
85 TAGS="images music video e17"
86 }
88 post_install() {
89 for f in $(cd "$1/"; find usr/lib/ -name "*ver-svn-05*" ! -path */enlightenment/*); do
90 ln -s /$f "$1/$(echo $f|sed s/-05/-03/)";
91 done
92 }