wok-current view enna/receipt @ rev 25557
Up bzip3 (1.3.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Apr 23 16:03:47 2023 +0000 (20 months ago) |
parents | 53c1379e13fa |
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="pankso@slitaz.org"
8 LICENSE="LGPL2.1"
9 WEB_SITE="https://enna.geexbox.org/"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="hg|http://hg.geexbox.org/enna"
12 BRANCH="$VERSION"
13 TAGS="images music video e17"
14 HOST_ARCH="i486 arm"
16 DEPENDS="eina eet ecore evas efreet edje edbus emotion ethumb elementary \
17 embryo libvalhalla libcurl xine-lib libexif alsa-lib libplayer xorg-libXrandr"
18 BUILD_DEPENDS="eina-dev eet-dev ecore-dev evas-dev efreet-dev edje-dev \
19 edbus-dev emotion-dev ethumb-dev elementary-dev embryo-dev curl-dev eio-dev \
20 xine-lib-dev libexif-dev alsa-lib-dev libplayer-dev libxml2-dev libtool \
21 expat-dev jpeg-dev glib-dev ffmpeg-dev libvalhalla-dev libelementary \
22 xorg-libXrandr-dev ffmpeg-compat-dev eeze-dev lua-dev"
24 # What is the latest version available today?
25 current_version()
26 {
27 wget -O - $WEB_SITE 2>/dev/null | \
28 sed '/is available/!d;s|.*[ (]v|v|;s|[ )].*||;q'
29 }
31 # Handle cross compilation
32 case "$ARCH" in
33 i?86) BUILD_DEPENDS="$BUILD_DEPENDS mercurial automake " ;;
34 esac
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 while read name file; do
40 sed -i "s/name: \"$name\";/&\n\ttype: RECT;/" \
41 data/theme/default/$file.edc
42 done <<EOT
43 clip mainmenu
44 flags.video.clip activity_video_flags
45 flags.audio.clip activity_video_flags
46 flags.clip activity_video_flags
47 flags.studio.clip activity_video_flags
48 flags.media.clip activity_video_flags
49 panel.clip activity_video_infos
50 endclip elm
51 EOT
52 sed -i 's/Elm_Genlist_Item /Elm_Genlist_Item_Type /g' src/bin/*.[hc]
53 sed -i 's|curl/types|curl/curl|' src/bin/url_utils.c
54 sed -i -e 's/\(elm_genlist_item_insert_after.*\)after/\1NULL, after/' \
55 -e 's/\(elm_genlist_item_insert_before.*\)before/\1NULL, before/' \
56 -e 's/elm_genlist_item_bring_in([^)]*/&, ELM_GENLIST_ITEM_SCROLLTO_IN/' \
57 -e 's/elm_button_label_set/elm_object_text_set/' \
58 -e 's/elm_label_label_set/elm_object_text_set/' \
59 -e 's/elm_genlist_item_data_get/elm_object_item_data_get/' \
60 -e 's/elm_genlist_item_del/elm_object_item_del/' \
61 -e 's/elm_icon_scale_set/elm_icon_resizable_set/' \
62 -e 's/elm_box_homogenous_set/elm_box_homogeneous_set/' \
63 -e 's/elm_toggle_state_set/elm_check_state_set/' \
64 -e 's/elm_toggle_state_get/elm_check_state_get/' \
65 -e 's/elm_scroller_content_set/elm_object_content_set/' \
66 -e 's/elm_genlist_item_object_get/elm_object_item_widget_get/' \
67 -e 's|elm_scale_set|//&|' -e 's|elm_toggle_add|elm_check_add|' \
68 -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/' \
69 -e 's/elm_button_icon_set/elm_object_content_set/' \
70 -e 's/elm_genlist_horizontal_mode_set/elm_genlist_mode_set/' \
71 -e 's|elm_genlist_item_middle_bring_in|//&|' \
72 -e 's/elm_check_icon_set/elm_object_content_set/' \
73 -e 's/elm_object_focus(\([^)]*\)/elm_object_focus_set(\1, EINA_TRUE/' \
74 -e 's/elm_check_label_set/elm_object_text_set/' \
75 src/bin/*.[ch] src/modules/*/*/*.c
76 export CFLAGS="-I/usr/include/edje-1 -I/usr/include/eina-1 \
77 -I/usr/include/eina-1/eina -I/usr/include/evas-1 -I/usr/include/ecore-1 \
78 -I/usr/include/elementary-1 -I/usr/include/eet-1 -I/usr/include/efreet-1 \
79 -I/usr/include/e_dbus-1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include \
80 -I/usr/include/ethumb-1 \
81 -I/usr/include/libxml2"
82 ./autogen.sh \
83 --enable-libxrandr \
84 --enable-backend-emotion \
85 --enable-activity-tv \
86 $CONFIGURE_ARGS &&
87 make -j 1 && make install
88 }
90 # Rules to gen a SliTaz package suitable for Tazpkg.
91 genpkg_rules()
92 {
93 mkdir -p $fs/usr/share
94 cp -a $install/usr/bin $fs/usr
95 cp -a $install/usr/share/enna $fs/usr/share
96 }
98 post_install()
99 {
100 for f in $(cd "$1/" ; find usr/lib/ -name "*ver-svn-05*" ! -path */enlightenment/*); do
101 ln -s /$f "$1/$(echo $f|sed s/-05/-03/)";
102 done
103 }