summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore33
-rw-r--r--AUTHORS1
l---------COPYING1
l---------INSTALL1
-rw-r--r--Makefile.am51
-rw-r--r--NEWS0
-rw-r--r--README0
-rwxr-xr-xautogen.sh7
-rw-r--r--configure.ac77
-rw-r--r--m4/ac_attribute.m447
-rw-r--r--m4/efl_binary.m471
-rw-r--r--m4/efl_compiler_flag.m457
-rwxr-xr-xsrc/epulsebin0 -> 13683 bytes
-rw-r--r--src/main.c18
14 files changed, 364 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..7d93d44
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,33 @@
1*.o
2*.lo
3*.la
4*~
5.libs
6.deps
7.dirstamp
8aclocal.m4
9autom4te.cache/
10compile
11config.guess
12config.h
13config.h.in
14config.log
15config.status
16config.sub
17configure
18core*
19depcomp
20install-sh
21libtool
22ltmain.sh
23m4/libtool.m4
24m4/ltoptions.m4
25m4/ltsugar.m4
26m4/ltversion.m4
27m4/lt~obsolete.m4
28Makefile
29Makefile.in
30missing
31stamp-h1
32*.edj
33*.eet
diff --git a/AUTHORS b/AUTHORS
new file mode 100644
index 0000000..969d8f4
--- /dev/null
+++ b/AUTHORS
@@ -0,0 +1 @@
ceolin <flavio.ceolin@gmail.com> \ No newline at end of file
diff --git a/COPYING b/COPYING
new file mode 120000
index 0000000..caeca07
--- /dev/null
+++ b/COPYING
@@ -0,0 +1 @@
/usr/share/automake-1.14/COPYING \ No newline at end of file
diff --git a/INSTALL b/INSTALL
new file mode 120000
index 0000000..f812f5a
--- /dev/null
+++ b/INSTALL
@@ -0,0 +1 @@
/usr/share/automake-1.14/INSTALL \ No newline at end of file
diff --git a/Makefile.am b/Makefile.am
new file mode 100644
index 0000000..b83945d
--- /dev/null
+++ b/Makefile.am
@@ -0,0 +1,51 @@
1ACLOCAL_AMFLAGS = -I m4
2AM_MAKEFLAGS = --no-print-directory
3AM_CFLAGS = \
4 -DPACKAGE_DATA_DIR=\"$(pkgdatadir)/\" \
5 -DPACKAGE_BIN_DIR=\"$(bindir)\" \
6 -DPACKAGE_LIB_DIR=\"$(libdir)\" \
7 @EFL_CFLAGS@ \
8 @PULSE_CFLAGS@
9
10MAINTAINERCLEANFILES = \
11 aclocal.m4 \
12 compile \
13 config.guess \
14 config.h.in \
15 config.sub \
16 configure \
17 depcomp \
18 install-sh \
19 ltmain.sh \
20 Makefile.in \
21 missing \
22 mkinstalldirs
23EXTRA_DIST =
24
25bin_PROGRAMS = \
26 src/epulse
27
28src_epulse_LDADD = \
29 @EFL_LIBS@ \
30 @PULSE_LIBS@
31
32src_epulse_SOURCES = \
33 src/main.c
34
35# Themes are compiled with edje_cc given by user (cross-compile)
36EDJE_CC = @edje_cc@
37EDJE_FLAGS_VERBOSE_ =
38EDJE_FLAGS_VERBOSE_0 =
39EDJE_FLAGS_VERBOSE_1 = -v
40
41EXTRA_DIST += \
42 mksnapshot \
43 mksubmit \
44 autogen.sh
45
46clean-local:
47
48
49
50
51
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/NEWS
diff --git a/README b/README
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/README
diff --git a/autogen.sh b/autogen.sh
new file mode 100755
index 0000000..beed0ba
--- /dev/null
+++ b/autogen.sh
@@ -0,0 +1,7 @@
1#!/bin/sh
2
3autoreconf -vif -Wall,no-obsolete
4
5if [ -z "$NOCONFIGURE" ]; then
6 ./configure "$@"
7fi
diff --git a/configure.ac b/configure.ac
new file mode 100644
index 0000000..5642869
--- /dev/null
+++ b/configure.ac
@@ -0,0 +1,77 @@
1AC_PREREQ([2.69])
2AC_INIT([epulse], [0.1], [flavio.ceolin@gmail.com])
3
4AM_INIT_AUTOMAKE([foreign subdir-objects])
5AC_CONFIG_HEADER([config.h])
6AC_CONFIG_MACRO_DIR([m4])
7m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
8
9PKG_PROG_PKG_CONFIG
10
11AC_LANG_C
12
13AC_USE_SYSTEM_EXTENSIONS
14AC_PROG_CC
15AC_PROG_CXX
16AM_PROG_CC_C_O
17AC_C___ATTRIBUTE__
18
19AC_DISABLE_STATIC
20AC_PROG_LIBTOOL
21
22EFL_COMPILER_FLAG
23EFL_COMPILER_FLAG([-Wall])
24EFL_COMPILER_FLAG([-Wextra])
25EFL_COMPILER_FLAG([-Wshadow])
26EFL_COMPILER_FLAG([-fvisibility=hidden])
27
28# Checks for programs.
29EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
30
31# Checks for libraries.
32PKG_CHECK_MODULES([EFL],
33 [
34 elementary
35 eet
36 ecore
37 ecore-file
38 ])
39
40PKG_CHECK_MODULES([PULSE],
41 [
42 libpulse-simple
43 libpulse
44 ])
45
46# Checks for header files.
47
48# Checks for typedefs, structures, and compiler characteristics.
49
50# Checks for library functions.
51
52AC_CONFIG_FILES([
53Makefile
54])
55AC_OUTPUT
56
57
58echo
59echo
60echo
61echo "------------------------------------------------------------------------"
62echo "$PACKAGE $VERSION"
63echo "------------------------------------------------------------------------"
64echo
65echo "Configuration Options Summary:"
66echo
67echo
68echo " edje_cc..................: ${edje_cc}"
69echo
70echo "Compilation................: make (or gmake)"
71echo " CPPFLAGS.................: $CPPFLAGS"
72echo " CFLAGS...................: $CFLAGS"
73echo " LDFLAGS..................: $LDFLAGS"
74echo
75echo "Installation...............: make install (as root if needed, with 'su' or 'sudo')"
76echo " prefix...................: $prefix"
77echo
diff --git a/m4/ac_attribute.m4 b/m4/ac_attribute.m4
new file mode 100644
index 0000000..23479a9
--- /dev/null
+++ b/m4/ac_attribute.m4
@@ -0,0 +1,47 @@
1dnl Copyright (C) 2004-2008 Kim Woelders
2dnl Copyright (C) 2008 Vincent Torri <vtorri at univ-evry dot fr>
3dnl That code is public domain and can be freely used or copied.
4dnl Originally snatched from somewhere...
5
6dnl Macro for checking if the compiler supports __attribute__
7
8dnl Usage: AC_C___ATTRIBUTE__
9dnl call AC_DEFINE for HAVE___ATTRIBUTE__ and __UNUSED__
10dnl if the compiler supports __attribute__, HAVE___ATTRIBUTE__ is
11dnl defined to 1 and __UNUSED__ is defined to __attribute__((unused))
12dnl otherwise, HAVE___ATTRIBUTE__ is not defined and __UNUSED__ is
13dnl defined to nothing.
14
15AC_DEFUN([AC_C___ATTRIBUTE__],
16[
17
18AC_MSG_CHECKING([for __attribute__])
19
20AC_CACHE_VAL([ac_cv___attribute__],
21 [AC_TRY_COMPILE(
22 [
23#include <stdlib.h>
24
25int func(int x);
26int foo(int x __attribute__ ((unused)))
27{
28 exit(1);
29}
30 ],
31 [],
32 [ac_cv___attribute__="yes"],
33 [ac_cv___attribute__="no"]
34 )])
35
36AC_MSG_RESULT($ac_cv___attribute__)
37
38if test "x${ac_cv___attribute__}" = "xyes" ; then
39 AC_DEFINE([HAVE___ATTRIBUTE__], [1], [Define to 1 if your compiler has __attribute__])
40 AC_DEFINE([__UNUSED__], [__attribute__((unused))], [Macro declaring a function argument to be unused])
41 else
42 AC_DEFINE([__UNUSED__], [], [Macro declaring a function argument to be unused])
43fi
44
45])
46
47dnl End of ac_attribute.m4
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
new file mode 100644
index 0000000..c774688
--- /dev/null
+++ b/m4/efl_binary.m4
@@ -0,0 +1,71 @@
1dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro that check if a binary is built or not
5
6dnl Usage: EFL_ENABLE_BIN(binary)
7dnl Call AC_SUBST(BINARY_PRG) (BINARY is the uppercase of binary, - being transformed into _)
8dnl Define have_binary (- is transformed into _)
9dnl Define conditional BUILD_BINARY (BINARY is the uppercase of binary, - being transformed into _)
10
11AC_DEFUN([EFL_ENABLE_BIN],
12[
13
14m4_pushdef([UP], m4_translit([[$1]], [-a-z], [_A-Z]))dnl
15m4_pushdef([DOWN], m4_translit([[$1]], [-A-Z], [_a-z]))dnl
16
17have_[]m4_defn([DOWN])="yes"
18
19dnl configure option
20
21AC_ARG_ENABLE([$1],
22 [AC_HELP_STRING([--disable-$1], [disable building of ]DOWN)],
23 [
24 if test "x${enableval}" = "xyes" ; then
25 have_[]m4_defn([DOWN])="yes"
26 else
27 have_[]m4_defn([DOWN])="no"
28 fi
29 ])
30
31AC_MSG_CHECKING([whether to build ]DOWN[ binary])
32AC_MSG_RESULT([$have_[]m4_defn([DOWN])])
33
34if test "x$have_[]m4_defn([DOWN])" = "xyes"; then
35 UP[]_PRG=DOWN[${EXEEXT}]
36fi
37
38AC_SUBST(UP[]_PRG)
39
40AM_CONDITIONAL(BUILD_[]UP, test "x$have_[]m4_defn([DOWN])" = "xyes")
41
42AS_IF([test "x$have_[]m4_defn([DOWN])" = "xyes"], [$2], [$3])
43
44])
45
46
47dnl Macro that check if a binary is built or not
48
49dnl Usage: EFL_WITH_BIN(package, binary, default_value)
50dnl Call AC_SUBST(_binary) (_binary is the lowercase of binary, - being transformed into _ by default, or the value set by the user)
51
52AC_DEFUN([EFL_WITH_BIN],
53[
54
55m4_pushdef([DOWN], m4_translit([[$2]], [-A-Z], [_a-z]))dnl
56
57dnl configure option
58
59AC_ARG_WITH([$2],
60 [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=$3@:>@])],
61 [_efl_with_binary=${withval}],
62 [_efl_with_binary=$(pkg-config --variable=prefix $1)/bin/$3])
63
64DOWN=${_efl_with_binary}
65AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
66
67with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
68
69AC_SUBST(DOWN)
70
71])
diff --git a/m4/efl_compiler_flag.m4 b/m4/efl_compiler_flag.m4
new file mode 100644
index 0000000..25c285d
--- /dev/null
+++ b/m4/efl_compiler_flag.m4
@@ -0,0 +1,57 @@
1dnl Copyright (C) 2010 Vincent Torri <vtorri at univ-evry dot fr>
2dnl and Albin Tonnerre <albin dot tonnerre at gmail dot com>
3dnl That code is public domain and can be freely used or copied.
4
5dnl Macro that checks if a compiler flag is supported by the compiler.
6
7dnl Usage: EFL_COMPILER_FLAG(flag)
8dnl flag is added to CFLAGS if supported.
9
10AC_DEFUN([EFL_COMPILER_FLAG],
11[
12
13CFLAGS_save="${CFLAGS}"
14CFLAGS="${CFLAGS} $1"
15
16AC_LANG_PUSH([C])
17AC_MSG_CHECKING([whether the compiler supports $1])
18
19AC_COMPILE_IFELSE(
20 [AC_LANG_PROGRAM([[]])],
21 [have_flag="yes"],
22 [have_flag="no"])
23AC_MSG_RESULT([${have_flag}])
24
25if test "x${have_flag}" = "xno" ; then
26 CFLAGS="${CFLAGS_save}"
27fi
28AC_LANG_POP([C])
29
30])
31
32dnl Macro that checks if a linker flag is supported by the compiler.
33
34dnl Usage: EFL_LINKER_FLAG(flag)
35dnl flag is added to LDFLAGS if supported (will be passed to ld anyway).
36
37AC_DEFUN([EFL_LINKER_FLAG],
38[
39
40LDFLAGS_save="${LDFLAGS}"
41LDFLAGS="${LDFLAGS} $1"
42
43AC_LANG_PUSH([C])
44AC_MSG_CHECKING([whether the compiler supports $1])
45
46AC_LINK_IFELSE(
47 [AC_LANG_PROGRAM([[]])],
48 [have_flag="yes"],
49 [have_flag="no"])
50AC_MSG_RESULT([${have_flag}])
51
52if test "x${have_flag}" = "xno" ; then
53 LDFLAGS="${LDFLAGS_save}"
54fi
55AC_LANG_POP([C])
56
57])
diff --git a/src/epulse b/src/epulse
new file mode 100755
index 0000000..449189d
--- /dev/null
+++ b/src/epulse
Binary files differ
diff --git a/src/main.c b/src/main.c
new file mode 100644
index 0000000..df0808b
--- /dev/null
+++ b/src/main.c
@@ -0,0 +1,18 @@
1#include <Elementary.h>
2
3EAPI int elm_main(int argc, char **argv)
4{
5 int args;
6
7 elm_run();
8
9
10 return 0;
11
12}
13
14/*
15 * Create the default main() that will work with both quicklaunch or
16 * regular applications.
17 */
18ELM_MAIN()