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