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