wok-6.x annotate enna/receipt @ rev 14361

Add kriss_feed
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 19 13:51:49 2013 +0200 (2013-04-19)
parents b541f38cb759
children 8b1a39da2421
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@12985 8 WEB_SITE="http://enna.geexbox.org/"
pascal@12985 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@12985 10 WGET_URL="hg|http://hg.geexbox.org/enna"
pascal@12985 11 BRANCH="$VERSION"
pascal@12985 12 TAGS="images music video e17"
pascal@12985 13
pascal@12985 14 DEPENDS="eina eet ecore evas efreet edje edbus emotion elementary ethumb \
pascal@12985 15 libvalhalla libcurl xine-lib libexif alsa-lib libplayer"
pascal@12985 16 BUILD_DEPENDS="mercurial automake eina-dev eet-dev ecore-dev evas-dev efreet-dev \
pascal@12985 17 edje-dev edbus-dev emotion-dev elementary-dev ethumb-dev libvalhalla-dev curl-dev \
pascal@12985 18 xine-lib-dev libexif-dev alsa-lib-dev libplayer-dev libxml2-dev libtool expat-dev \
pascal@12986 19 jpeg-dev glib-dev ffmpeg-svn git"
pascal@12985 20
pascal@12985 21 # Rules to configure and make the package.
pascal@12985 22 compile_rules()
pascal@12985 23 {
pascal@12985 24 cd $src
pascal@14326 25 sed -i 's/Elm_Genlist_Item /Elm_Genlist_Item_Type /g' src/bin/*.[hc]
pascal@12985 26 sed -i 's|curl/types|curl/curl|' src/bin/url_utils.c
pascal@14361 27 sed -i -e 's/\(elm_genlist_item_insert_after.*\)after/\1NULL, after/' \
pascal@14361 28 -e 's/\(elm_genlist_item_insert_before.*\)before/\1NULL, before/' \
pascal@14361 29 -e 's/elm_genlist_item_bring_in([^)]*/&, ELM_GENLIST_ITEM_SCROLLTO_IN/' \
pascal@14361 30 -e 's/elm_button_label_set/elm_object_text_set/' \
pascal@14361 31 -e 's/elm_label_label_set/elm_object_text_set/' \
pascal@14361 32 -e 's/elm_genlist_item_data_get/elm_object_item_data_get/' \
pascal@14361 33 -e 's/elm_genlist_item_del/elm_object_item_del/' \
pascal@14361 34 -e 's/elm_icon_scale_set/elm_icon_resizable_set/' \
pascal@14361 35 -e 's/elm_box_homogenous_set/elm_box_homogeneous_set/' \
pascal@14361 36 -e 's/elm_toggle_state_set/elm_check_state_set/' \
pascal@14361 37 -e 's/elm_toggle_state_get/elm_check_state_get/' \
pascal@14361 38 -e 's/elm_scroller_content_set/elm_object_content_set/' \
pascal@14361 39 -e 's/elm_genlist_item_object_get/elm_object_item_widget_get/' \
pascal@14361 40 -e 's|elm_scale_set|//&|' -e 's|elm_toggle_add|elm_check_add|' \
pascal@14361 41 -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 42 -e 's/elm_button_icon_set/elm_object_content_set/' \
pascal@14361 43 -e 's/elm_genlist_horizontal_mode_set/elm_genlist_mode_set/' \
pascal@14361 44 -e 's|elm_genlist_item_middle_bring_in|//&|' \
pascal@14361 45 -e 's/elm_check_icon_set/elm_object_content_set/' \
pascal@14361 46 -e 's/elm_object_focus(\([^)]*\)/elm_object_focus_set(\1, EINA_TRUE/' \
pascal@14361 47 -e 's/elm_check_label_set/elm_object_text_set/' \
pascal@14361 48 src/bin/*.[ch] src/modules/*/*/*.c
pascal@12985 49 export CFLAGS="-I/usr/include/edje-1 -I/usr/include/eina-1 \
pascal@12985 50 -I/usr/include/eina-1/eina -I/usr/include/evas-1 -I/usr/include/ecore-1 \
pascal@14319 51 -I/usr/include/elementary-1 -I/usr/include/eet-1 -I/usr/include/efreet-1 \
pascal@14319 52 -I/usr/include/e_dbus-1 -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include \
pascal@14319 53 -I/usr/include/ethumb-1 \
pascal@12985 54 -I/usr/include/libxml2"
pascal@12985 55 ./autogen.sh $CONFIGURE_ARGS &&
pascal@12985 56 make -j 1 && make install
pascal@12985 57 }
pascal@12985 58
pascal@12985 59 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@12985 60 genpkg_rules()
pascal@12985 61 {
pascal@12985 62 mkdir -p $fs/usr/share
pascal@12985 63 cp -a $_pkg/usr/bin $fs/usr
pascal@12985 64 cp -a $_pkg/usr/share/enna $fs/usr/share
pascal@12985 65 }
pascal@12985 66
pascal@12985 67 post_install()
pascal@12985 68 {
pascal@12985 69 for f in $(find /usr/lib/ -name "*ver-svn-05*" ! -path */enlightenment/*); do
pascal@12985 70 ln -s $f $(echo $f|sed s/-05/-03/);
pascal@12985 71 done
pascal@12985 72 }