summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-10-02 13:00:06 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-10-02 13:00:06 +0900
commit01af8bc9c0fb31bda347a62409b2b40d0a2ad9b5 (patch)
tree0a43c85b70b587e2a7ac5f2dcc5040c68ec8fe81
parenta765645b458735ad77fe606f42e9d49c33055b97 (diff)
add template dir for mrk new
-rw-r--r--tmpl/apps/default/AUTHORS1
-rw-r--r--tmpl/apps/default/Marrakesh.mrk26
-rw-r--r--tmpl/apps/default/README23
-rw-r--r--tmpl/apps/default/app/@APPDOM@.desktop7
-rw-r--r--tmpl/apps/default/app/@APPDOM@.pngbin0 -> 47566 bytes
-rw-r--r--tmpl/apps/default/data/bg.jpgbin0 -> 598237 bytes
-rw-r--r--tmpl/apps/default/src/main.c65
-rw-r--r--tmpl/apps/default/src/main.h1
-rw-r--r--tmpl/categories.txt5
-rw-r--r--tmpl/eflver.txt2
-rw-r--r--tmpl/licenses/APACHE0
-rw-r--r--tmpl/licenses/BSD-20
-rw-r--r--tmpl/licenses/GPL20
-rw-r--r--tmpl/licenses/GPL30
-rw-r--r--tmpl/licenses/MIT0
-rw-r--r--tmpl/tags.txt11
16 files changed, 141 insertions, 0 deletions
diff --git a/tmpl/apps/default/AUTHORS b/tmpl/apps/default/AUTHORS
new file mode 100644
index 0000000..a8bdf25
--- /dev/null
+++ b/tmpl/apps/default/AUTHORS
@@ -0,0 +1 @@
@DEVMAIL@
diff --git a/tmpl/apps/default/Marrakesh.mrk b/tmpl/apps/default/Marrakesh.mrk
new file mode 100644
index 0000000..f65ecfb
--- /dev/null
+++ b/tmpl/apps/default/Marrakesh.mrk
@@ -0,0 +1,26 @@
1PROJ: @APPNAME@
2PROJICON: app/@APPDOM@.png
3BRIEF: @APPDESC@
4VERSION: @APPVER@
5LICENSE: @APPCOPY@
6COPYING: COPYING AUTHORS
7NEEDS: @EFLVER@
8DOMAIN: @APPDOM@
9CONTACT: @DEVMAIL@
10CATEGORY: @APPCATEGORIES@
11TAGS: @APPTAGS@
12
13DESKTOP: app/@APPDOM@.desktop
14ICON: app/@APPDOM@.png
15
16BIN: bin/@APPDOM@
17SRC:
18src/main.c
19src/main.h
20DEPS:
21elementary eina evas ecore edje eo emotion eldbus eio efreet efreet-mime efreet-trash eeze eet ecore-ipc ecore-file ecore-con ecore-audio
22INC: src/bin
23
24DATA:
25README > share/@APPDOM@/README
26data/bg.jpg > share/@APPDOM@/bg/bg.jpg
diff --git a/tmpl/apps/default/README b/tmpl/apps/default/README
new file mode 100644
index 0000000..3378a47
--- /dev/null
+++ b/tmpl/apps/default/README
@@ -0,0 +1,23 @@
1@APPNAME@
2
3By: @DEVMAIL@
4License: @APPCOPY@
5
6@APPDESC@
7
8Some build instructions using Marrakesh:
9
10To build from source:
11 mrk build
12
13To package up source to give to others:
14 mrk src
15
16To create a binary package from the build:
17 mrk bin
18
19To install the binary package above:
20 mrk inst FILE.mkb
21
22To check your project is able to be distributed:
23 mrk check
diff --git a/tmpl/apps/default/app/@APPDOM@.desktop b/tmpl/apps/default/app/@APPDOM@.desktop
new file mode 100644
index 0000000..fac38d3
--- /dev/null
+++ b/tmpl/apps/default/app/@APPDOM@.desktop
@@ -0,0 +1,7 @@
1[Desktop Entry]
2#Encoding=UTF-8
3Type=Application
4Name=@APPNAME@
5Exec=@APPDOM@
6Icon=@APPDOM@
7Categories=E
diff --git a/tmpl/apps/default/app/@APPDOM@.png b/tmpl/apps/default/app/@APPDOM@.png
new file mode 100644
index 0000000..b0ed745
--- /dev/null
+++ b/tmpl/apps/default/app/@APPDOM@.png
Binary files differ
diff --git a/tmpl/apps/default/data/bg.jpg b/tmpl/apps/default/data/bg.jpg
new file mode 100644
index 0000000..72cb816
--- /dev/null
+++ b/tmpl/apps/default/data/bg.jpg
Binary files differ
diff --git a/tmpl/apps/default/src/main.c b/tmpl/apps/default/src/main.c
new file mode 100644
index 0000000..22f4012
--- /dev/null
+++ b/tmpl/apps/default/src/main.c
@@ -0,0 +1,65 @@
1#include "main.h"
2
3static void
4_cb_button_clicked(void *data, Evas_Object *obj EINA_UNUSED , void *info EINA_UNUSED)
5{
6 Evas_Object *win = data;
7
8 evas_object_del(win);
9}
10
11EAPI_MAIN int
12elm_main(int argc EINA_UNUSED, char **argv EINA_UNUSED)
13{
14 Evas_Object *win, *bg, *bx, *lb, *bt;
15 char buf[PATH_MAX];
16
17 elm_policy_set(ELM_POLICY_QUIT, ELM_POLICY_QUIT_LAST_WINDOW_CLOSED);
18 elm_app_compile_bin_dir_set(PACKAGE_BIN_DIR);
19 elm_app_compile_lib_dir_set(PACKAGE_LIB_DIR);
20 elm_app_compile_data_dir_set(PACKAGE_DATA_DIR);
21 elm_app_info_set(elm_main, "@APPDOM@", "README");
22
23 win = elm_win_add(NULL, "@APPNAME@", ELM_WIN_BASIC);
24 if (!win) return -1;
25 elm_win_title_set(win, "@APPNAME@");
26 elm_win_autodel_set(win, EINA_TRUE);
27
28 bg = elm_bg_add(win);
29 evas_object_size_hint_weight_set(bg, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
30 snprintf(buf, sizeof(buf), "%s/bg/bg.jpg", elm_app_data_dir_get());
31 elm_bg_file_set(bg, buf, NULL);
32 elm_win_resize_object_add(win, bg);
33 evas_object_show(bg);
34
35 bx = elm_box_add(win);
36 evas_object_size_hint_weight_set(bx, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
37 elm_win_resize_object_add(win, bx);
38 evas_object_show(bx);
39
40 lb = elm_label_add(win);
41 elm_label_line_wrap_set(lb, ELM_WRAP_WORD);
42 elm_object_text_set(lb,
43 "<b>Hello World</b><br>"
44 "<br>"
45 "This is my first EFL App! I hope it's good"
46 );
47 evas_object_size_hint_weight_set(lb, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
48 evas_object_size_hint_align_set(lb, EVAS_HINT_FILL, 0.5);
49 elm_box_pack_end(bx, lb);
50 evas_object_show(lb);
51
52 bt = elm_button_add(win);
53 elm_object_text_set(bt, "Close Window");
54 evas_object_smart_callback_add(bt, "clicked", _cb_button_clicked, win);
55 evas_object_size_hint_fill_set(bt, EVAS_HINT_FILL, 0.0);
56 evas_object_size_hint_weight_set(bt, EVAS_HINT_EXPAND, 0.0);
57 elm_box_pack_end(bx, bt);
58 evas_object_show(bt);
59
60 evas_object_show(win);
61
62 elm_run();
63 return 0;
64}
65ELM_MAIN()
diff --git a/tmpl/apps/default/src/main.h b/tmpl/apps/default/src/main.h
new file mode 100644
index 0000000..d9a06db
--- /dev/null
+++ b/tmpl/apps/default/src/main.h
@@ -0,0 +1 @@
#include <Elementary.h>
diff --git a/tmpl/categories.txt b/tmpl/categories.txt
new file mode 100644
index 0000000..8c99c38
--- /dev/null
+++ b/tmpl/categories.txt
@@ -0,0 +1,5 @@
1developer
2media
3system
4terminal
5
diff --git a/tmpl/eflver.txt b/tmpl/eflver.txt
new file mode 100644
index 0000000..c37aaef
--- /dev/null
+++ b/tmpl/eflver.txt
@@ -0,0 +1,2 @@
11.10
21.11
diff --git a/tmpl/licenses/APACHE b/tmpl/licenses/APACHE
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tmpl/licenses/APACHE
diff --git a/tmpl/licenses/BSD-2 b/tmpl/licenses/BSD-2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tmpl/licenses/BSD-2
diff --git a/tmpl/licenses/GPL2 b/tmpl/licenses/GPL2
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tmpl/licenses/GPL2
diff --git a/tmpl/licenses/GPL3 b/tmpl/licenses/GPL3
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tmpl/licenses/GPL3
diff --git a/tmpl/licenses/MIT b/tmpl/licenses/MIT
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tmpl/licenses/MIT
diff --git a/tmpl/tags.txt b/tmpl/tags.txt
new file mode 100644
index 0000000..6735c2d
--- /dev/null
+++ b/tmpl/tags.txt
@@ -0,0 +1,11 @@
1video
2audio
3media
4film
5movies
6music
7player
8terminal
9emulator
10system
11tool