summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-22 11:00:16 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-22 11:00:16 +0100
commit5b43a74c6dd8c14548fb8addf9ae72d8be18fb8d (patch)
treeec054498136f6cbe1d537daf8df166643f310d80
parent805b023f4d7b1af20d79c05c40103c72689f5ad3 (diff)
extra: remove autotools
due to the fact, that the packaging subdir was only working with autotools, that is also removed.
-rw-r--r--Makefile.am91
-rw-r--r--Makefile_Edje_Helper.am9
-rwxr-xr-xautogen.sh23
-rw-r--r--configure.ac101
-rw-r--r--data/Makefile.am3
-rw-r--r--data/desktop/Makefile.am9
-rw-r--r--doc/Makefile.am38
-rw-r--r--m4/efl.m4123
-rw-r--r--m4/efl_attribute.m456
-rw-r--r--m4/efl_binary.m479
-rw-r--r--m4/efl_compiler_flag.m457
-rw-r--r--m4/efl_doxygen.m498
-rw-r--r--m4/efl_path_max.m436
-rw-r--r--m4/efl_tests.m465
-rw-r--r--packaging/Makefile.am4
-rw-r--r--packaging/pkgbuild/Makefile.am3
-rw-r--r--packaging/pkgbuild/PKGBUILD59
-rw-r--r--packaging/slackware/Makefile.am4
-rw-r--r--packaging/slackware/doinst.sh1
-rwxr-xr-xpackaging/slackware/extra.SlackBuild106
-rw-r--r--packaging/slackware/slack-desc19
-rw-r--r--packaging/slackware/slack-required5
-rw-r--r--src/Makefile.am4
-rw-r--r--src/bin/Makefile.am23
-rw-r--r--src/lib/Makefile.am24
-rw-r--r--src/tests/Makefile.am17
26 files changed, 0 insertions, 1057 deletions
diff --git a/Makefile.am b/Makefile.am
deleted file mode 100644
index 11cc3a5..0000000
--- a/Makefile.am
+++ /dev/null
@@ -1,91 +0,0 @@
1MAINTAINERCLEANFILES = \
2 ABOUT-NLS \
3 Makefile.in \
4 aclocal.m4 \
5 compile \
6 config.guess \
7 config.h.in \
8 config.rpath \
9 config.sub \
10 configure \
11 depcomp \
12 install-sh \
13 ltmain.sh \
14 missing \
15 m4/libtool.m4 \
16 m4/ltoptions.m4 \
17 m4/ltsugar.m4 \
18 m4/ltversion.m4 \
19 m4/lt~obsolete.m4 \
20 po/boldquot.sed \
21 po/en@boldquot.header \
22 po/en@quot.header \
23 po/insert-header.sin \
24 po/Makefile.in.in \
25 po/Makevars.template \
26 po/quot.sed \
27 po/remove-potcdate.sin \
28 po/Rules-quot \
29 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.gz \
30 $(PACKAGE_TARNAME)-$(PACKAGE_VERSION).tar.bz2
31
32SUBDIRS = data doc packaging po src
33
34ACLOCAL_AMFLAGS = -I m4
35
36filesdir = $(docdir)
37files_DATA = \
38 AUTHORS \
39 COPYING \
40 ChangeLog \
41 INSTALL \
42 NEWS \
43 README \
44 TODO
45
46EXTRA_DIST = \
47 autogen.sh \
48 config.rpath \
49 configure \
50 m4/efl_attribute.m4 \
51 m4/efl_binary.m4 \
52 m4/efl_compiler_flag.m4 \
53 m4/efl_path_max.m4
54
55if EFL_HAVE_LCOV
56
57lcov-reset:
58 @rm -rf $(top_builddir)/coverage
59 @find $(top_builddir) -name "*.gcda" -delete
60 @lcov --zerocounters --directory $(top_builddir)
61
62lcov-report:
63 @mkdir $(top_builddir)/coverage
64 lcov --capture --compat-libtool --output-file $(top_builddir)/coverage/coverage.info --directory $(top_builddir)/src/lib --base-directory $(top_srcdir)/src/lib
65 lcov --remove $(top_builddir)/coverage/coverage.info '*.h' --output-file $(top_builddir)/coverage/coverage.cleaned.info
66 lcov --remove $(top_builddir)/coverage/coverage.cleaned.info '*/tests/*' --output-file $(top_builddir)/coverage/coverage.cleaned2.info
67 genhtml --branch-coverage -t "$(PACKAGE_STRING)" -o $(top_builddir)/coverage/html $(top_builddir)/coverage/coverage.cleaned2.info
68 @echo "Coverage Report at $(top_builddir)/coverage/html"
69
70endif
71
72if EFL_HAVE_TESTS
73
74TESTS = src/tests/extra_tests
75
76lcov-check:
77if EFL_HAVE_LCOV
78 @$(MAKE) $(AM_MAKEFLAGS) lcov-reset
79endif
80 @$(MAKE) $(AM_MAKEFLAGS) check
81if EFL_HAVE_LCOV
82 @$(MAKE) $(AM_MAKEFLAGS) lcov-report
83endif
84
85endif
86
87# cleaning
88
89clean-local:
90 rm -rf benchmark coverage
91
diff --git a/Makefile_Edje_Helper.am b/Makefile_Edje_Helper.am
deleted file mode 100644
index 3f05237..0000000
--- a/Makefile_Edje_Helper.am
+++ /dev/null
@@ -1,9 +0,0 @@
1EDJE_CC = @edje_cc@
2EDJE_CC_FLAGS_VERBOSE = $(EDJE_CC_FLAGS_VERBOSE_@AM_V@)
3EDJE_CC_FLAGS_VERBOSE_ = $(EDJE_CC_FLAGS_VERBOSE_@AM_DEFAULT_V@)
4EDJE_CC_FLAGS_VERBOSE_1 = -v
5EDJE_CC_FLAGS = $(EDJE_CC_FLAGS_VERBOSE) -fastdecomp -id $(srcdir) -fd $(srcdir)
6
7AM_V_EDJ = $(am__v_EDJ_@AM_V@)
8am__v_EDJ_ = $(am__v_EDJ_@AM_DEFAULT_V@)
9am__v_EDJ_0 = @echo " EDJ " $@;
diff --git a/autogen.sh b/autogen.sh
deleted file mode 100755
index 1762b7d..0000000
--- a/autogen.sh
+++ /dev/null
@@ -1,23 +0,0 @@
1#!/bin/sh
2
3rm -rf autom4te.cache
4rm -f aclocal.m4 ltmain.sh
5
6if [ -d ".git" ]; then
7 echo "Getting all submodules"
8 if [ $(git submodule status | cut -c1 | grep "-") ]; then
9 echo "A few submodules are not initializied."
10 echo "Calling 'git submodule update --init --recursive'"
11 git submodule update --init --recursive
12 fi
13fi
14echo "Running autopoint..." ; autopoint -f || :
15echo "Running aclocal..." ; aclocal -I m4 $ACLOCAL_FLAGS || exit 1
16echo "Running autoconf..." ; autoconf || exit 1
17echo "Running autoheader..." ; autoheader || exit 1
18echo "Running libtoolize..." ; (libtoolize --copy --automake || glibtoolize --automake) || exit 1
19echo "Running automake..." ; automake --add-missing --copy --gnu || exit 1
20
21if [ -z "$NOCONFIGURE" ]; then
22 ./configure "$@"
23fi
diff --git a/configure.ac b/configure.ac
deleted file mode 100644
index 2c574dc..0000000
--- a/configure.ac
+++ /dev/null
@@ -1,101 +0,0 @@
1EFL_VERSION([0], [0], [1], [dev])
2AC_INIT([extra], [efl_version], [enlightenment-devel@lists.sourceforge.net])
3
4AC_PREREQ([2.65])
5AC_CONFIG_SRCDIR([configure.ac])
6AC_CONFIG_HEADERS([config.h])
7
8AC_CANONICAL_BUILD
9AC_CANONICAL_HOST
10
11AM_INIT_AUTOMAKE([1.10 dist-bzip2 -Wall color-tests])
12m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
13AM_PROG_AR
14
15# this will speed up libtool checks
16LT_PREREQ([2.2])
17LT_INIT([win32-dll pic-only])
18EFL_INIT
19
20AC_PROG_CC
21AC_PROG_CC_C99
22AM_PROG_CC_C_O
23EFL_ATTRIBUTE_UNUSED
24EFL_COMPILER_FLAG([-Wall])
25EFL_COMPILER_FLAG([-W])
26
27# Checks for header files.
28EFL_CHECK_PATH_MAX
29
30# Check for EFL
31PKG_CHECK_MODULES([EFL],
32[
33 eina >= 1.8.0
34 evas >= 1.8.0
35 ecore >= 1.8.0
36 edje >= 1.8.0
37 elementary >= 1.8.0
38])
39
40# Check for tests and coverage
41AC_ARG_WITH([tests],
42 [AC_HELP_STRING([--with-tests=none|regular|coverage],
43 [choose testing method: regular, coverage or none.
44 @<:@default=no@:>@])],
45 [build_tests=${withval}],
46 [build_tests=no])
47
48EFL_TESTS([${build_tests}])
49
50# doxygen program for documentation building
51EFL_CHECK_DOXYGEN([build_doc="yes"], [build_doc="no"])
52
53# Check edje_cc
54EFL_WITH_BIN([edje], [edje-cc], [edje_cc])
55
56# Checks for library functions.
57AC_CHECK_FUNCS([setlocale])
58
59AM_GNU_GETTEXT_VERSION([0.17])
60AM_GNU_GETTEXT([external])
61
62AC_CHECK_FILE("${srcdir}/src/lib/jsmn/jsmn.c",[],[
63echo "You have to do 'git submodule update --init --recursive' to have the complete sourcecode."
64exit;
65])
66
67AC_CONFIG_FILES([
68Makefile
69data/Makefile
70data/desktop/Makefile
71data/desktop/extra.desktop
72doc/Makefile
73packaging/Makefile
74packaging/slackware/Makefile
75packaging/pkgbuild/Makefile
76po/Makefile.in
77src/Makefile
78src/bin/Makefile
79src/lib/Makefile
80src/tests/Makefile
81doc/extra.1
82])
83AC_OUTPUT
84
85echo
86echo
87echo "------------------------------------------------------------------------"
88echo "$PACKAGE_NAME $PACKAGE_VERSION"
89echo "------------------------------------------------------------------------"
90echo
91echo "Compilation..............: make (or gmake)"
92echo " CFLAGS.................: $CFLAGS"
93echo " edje_cc................: ${edje_cc}"
94echo
95echo "Building documentation...: ${build_doc}"
96echo "Building tests...........: ${have_tests}"
97echo "Generate coverage .......: ${have_lcov}"
98echo
99echo "Installation.............: make install (as root if needed, with 'su' or 'sudo')"
100echo " prefix.................: $prefix"
101echo
diff --git a/data/Makefile.am b/data/Makefile.am
deleted file mode 100644
index 3351d18..0000000
--- a/data/Makefile.am
+++ /dev/null
@@ -1,3 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3SUBDIRS = desktop
diff --git a/data/desktop/Makefile.am b/data/desktop/Makefile.am
deleted file mode 100644
index 1ab7c9c..0000000
--- a/data/desktop/Makefile.am
+++ /dev/null
@@ -1,9 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3desktopdir = $(datadir)/applications
4desktop_DATA = extra.desktop
5
6icondir = $(datadir)/icons
7icon_DATA = extra.png
8
9EXTRA_DIST = $(desktop_DATA) $(icon_DATA)
diff --git a/doc/Makefile.am b/doc/Makefile.am
deleted file mode 100644
index a9ca5ba..0000000
--- a/doc/Makefile.am
+++ /dev/null
@@ -1,38 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2EXTRA_DIST = extra.1.in
3
4man_MANS = extra.1
5
6
7.PHONY: doc
8
9PACKAGE_DOCNAME = $(PACKAGE_TARNAME)-$(PACKAGE_VERSION)-doc
10
11if EFL_BUILD_DOC
12
13doc-clean:
14 rm -rf html/ latex/ man/ xml/ $(top_builddir)/$(PACKAGE_DOCNAME).tar*
15
16doc: all
17 $(efl_doxygen)
18 cp $(srcdir)/img/* html/
19 cp $(srcdir)/img/*.eps latex/
20 rm -rf $(PACKAGE_DOCNAME).tar*
21 mkdir -p $(PACKAGE_DOCNAME)/doc
22 cp -R html/ latex/ man/ $(PACKAGE_DOCNAME)/doc
23 tar cf $(PACKAGE_DOCNAME).tar $(PACKAGE_DOCNAME)/
24 bzip2 -9 $(PACKAGE_DOCNAME).tar
25 rm -rf $(PACKAGE_DOCNAME)/
26 mv $(PACKAGE_DOCNAME).tar.bz2 $(top_builddir)
27 @echo "Documentation Package: doc/$(PACKAGE_DOCNAME).tar.bz2"
28 @echo "Documentation HTML: doc/html"
29
30clean-local: doc-clean
31
32else
33
34doc:
35 @echo "Documentation not built. Run ./configure --help"
36
37endif
38
diff --git a/m4/efl.m4 b/m4/efl.m4
deleted file mode 100644
index 098722f..0000000
--- a/m4/efl.m4
+++ /dev/null
@@ -1,123 +0,0 @@
1dnl file to manage modules in efl
2
3dnl EFL_VERSION(major, minor, micro, release)
4dnl This setup EFL version information and should be called BEFORE AC_INIT().
5dnl
6dnl release parameter is 'dev' to use from SVN or libtool -release field.
7dnl It may be empty if not dev (svn/live build) and no -release is to be used.
8dnl
9dnl Examples:
10dnl EFL_VERSION(1, 7, 99, dev)
11dnl EFL_VERSION(1, 7, 99, ver-1234)
12dnl This will define couple of m4 symbols:
13dnl v_maj = given major number (first parameter)
14dnl v_min = given minor number (second parameter)
15dnl v_mic = given micro number (third parameter)
16dnl v_rev = if release, it's 0, otherwise it's dev_version.
17dnl v_rel = if release, it's -release followed by fourth parameter,
18dnl otherwise it's empty. (mostly for libtool)
19dnl efl_version = if release, it's major.minor.micro, otherwise it's
20dnl major.minor.micro.dev_version
21dnl dev_version = development version (svn revision).
22dnl def_build_profile = dev or release based on 'dev' release parameter.
23AC_DEFUN([EFL_VERSION],
24[dnl
25m4_define([v_maj], [$1])dnl
26m4_define([v_min], [$2])dnl
27m4_define([v_mic], [$3])dnl
28m4_define([dev_version], m4_esyscmd([(git rev-list --count HEAD 2>/dev/null || echo 0) | tr -d '\n']))dnl
29m4_define([v_rev], m4_if($4, dev, [dev_version], [0]))dnl
30m4_define([v_rel], [])dnl
31m4_define([def_build_profile], m4_if($4, dev, [dev], [release]))dnl
32m4_define([efl_version], m4_if($4, dev, [v_maj.v_min.v_mic.v_rev], [v_maj.v_min.v_mic]))dnl
33m4_define([efl_version], [v_maj.v_min.v_mic])dnl
34])
35
36dnl EFL_COLOR
37dnl will check if terminal supports color and if color is wanted by user.
38dnl
39dnl Used Variables:
40dnl WANT_COLOR: if no, forces no color output.
41dnl TERM: used to check if color should be enabled.
42dnl
43dnl Defined Variables:
44dnl COLOR_YES: to be used in positive/yes conditions
45dnl COLOR_NO: to be used in negative/no conditions
46dnl COLOR_OTHER: to be used to highlight some other condition
47dnl COLOR_RESET: to reset color
48dnl want_color: yes or no
49AC_DEFUN([EFL_COLOR],
50[dnl
51case "$TERM" in
52 xterm|xterm-color|xterm-256color|Eterm|aterm|kterm|rxvt*|screen|gnome|interix)
53 want_color="${WANT_COLOR:-yes}"
54 ;;
55 *)
56 want_color="no"
57 ;;
58esac
59
60if test "${want_color}" = "yes"; then
61 if test `echo -e x` = x; then
62 echoopt=-e
63 else
64 echoopt=
65 fi
66
67 COLOR_YES=`echo $echoopt "\033@<:@1;32m"`
68 COLOR_NO=`echo $echoopt "\033@<:@1;31m"`
69 COLOR_OTHER=`echo $echoopt "\033@<:@1;36m"`
70 COLOR_RESET=`echo $echoopt "\033@<:@0m"`
71
72else
73 COLOR_YES=""
74 COLOR_NO=""
75 COLOR_OTHER=""
76 COLOR_RESET=""
77fi
78])
79
80dnl EFL_INIT()
81dnl Will AC_DEFINE() the following:
82dnl VMAJ = v_maj
83dnl VMIN = v_min
84dnl VMIC = v_mic
85dnl VREV = v_rev
86dnl Will AC_SUBST() the following:
87dnl VMAJ = v_maj
88dnl VMIN = v_min
89dnl VMIC = v_mic
90dnl EFL_LTLIBRARY_FLAGS="-no-undefined -version-info ..."
91dnl EFL_LTMODULE_FLAGS="-no-undefined -avoid-version"
92dnl Will define the following m4:
93dnl lt_cur = libtool 'current' field of libtool's -version-info
94dnl lt_rev = libtool 'revision' field of libtool's -version-info
95dnl lt_age = libtool 'age' field of libtool's -version-info
96AC_DEFUN([EFL_INIT],
97[dnl
98AC_REQUIRE([EFL_COLOR])dnl
99AC_DEFINE_UNQUOTED([VMAJ], [v_maj], [Major version])dnl
100AC_DEFINE_UNQUOTED([VMIN], [v_min], [Minor version])dnl
101AC_DEFINE_UNQUOTED([VMIC], [v_mic], [Micro version])dnl
102AC_DEFINE_UNQUOTED([VREV], [v_rev], [Revison])dnl
103VMAJ=v_maj
104VMIN=v_min
105VMIC=v_mic
106AC_SUBST([VMAJ])dnl
107AC_SUBST([VMIN])dnl
108AC_SUBST([VMIC])dnl
109dnl
110dnl TODO: warning - lt_cur:
111dnl the previous code assumed v_maj + v_min, but this will be a problem when
112dnl we bump v_maj and reset v_min. 1 + 7 == 7 + 1, so if v_maj is bumped
113dnl we multiply it by 100.
114m4_define([lt_cur], m4_if(m4_cmp(v_maj, 1), 0, m4_eval(v_maj + v_min), m4_eval(v_maj * 100 + v_min)))dnl
115m4_define([lt_rev], v_mic)dnl
116m4_define([lt_age], v_min)dnl
117dnl
118EFL_LTLIBRARY_FLAGS="-no-undefined -version-info lt_cur:lt_rev:lt_age v_rel"
119AC_SUBST(EFL_LTLIBRARY_FLAGS)dnl
120EFL_LTMODULE_FLAGS="-no-undefined -avoid-version"
121AC_SUBST([EFL_LTMODULE_FLAGS])dnl
122AC_MSG_NOTICE([Initialized AC_PACKAGE_NAME (AC_PACKAGE_VERSION) development=dev_version v_rel])
123])
diff --git a/m4/efl_attribute.m4 b/m4/efl_attribute.m4
deleted file mode 100644
index 78bff15..0000000
--- a/m4/efl_attribute.m4
+++ /dev/null
@@ -1,56 +0,0 @@
1dnl Copyright (C) 2011 Vincent Torri <vtorri at univ-evry dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macros for checking if the compiler supports some __attribute__ uses
5
6dnl Usage: EFL_ATTRIBUTE_UNUSED
7dnl call AC_DEFINE for __UNUSED__ if __attribute__((unused)) is available
8
9AC_DEFUN([EFL_ATTRIBUTE_UNUSED],
10[
11AC_MSG_CHECKING([for __attribute__ ((unused))])
12AC_COMPILE_IFELSE(
13 [AC_LANG_PROGRAM(
14 [[
15void foo(int x __attribute__ ((unused))) {}
16 ]],
17 [[
18 ]])],
19 [have_attribute_unused="yes"],
20 [have_attribute_unused="no"])
21AC_MSG_RESULT([${have_attribute_unused}])
22
23if test "x${have_attribute_unused}" = "xyes" ; then
24 AC_DEFINE([__UNUSED__], [__attribute__ ((unused))], [Macro declaring a function argument to be unused.])
25else
26 AC_DEFINE([__UNUSED__], [], [__attribute__ ((unused)) is not supported.])
27fi
28])
29
30dnl Usage: EFL_ATTRIBUTE_VECTOR
31dnl call AC_DEFINE for HAVE_GCC_ATTRIBUTE_VECTOR if __attribute__((vector)) is available
32
33AC_DEFUN([EFL_ATTRIBUTE_VECTOR],
34[
35AC_MSG_CHECKING([for __attribute__ ((vector))])
36AC_COMPILE_IFELSE(
37 [AC_LANG_PROGRAM(
38 [[
39typedef int v4si __attribute__ ((vector_size (16)));
40 ]],
41 [[
42if (sizeof(v4si) == 16)
43 return 0;
44else
45 return -1;
46 ]])],
47 [have_attribute_vector="yes"],
48 [have_attribute_vector="no"])
49AC_MSG_RESULT([${have_attribute_vector}])
50
51if test "x${have_attribute_vector}" = "xyes" ; then
52 AC_DEFINE([HAVE_GCC_ATTRIBUTE_VECTOR], [1], [Define to 1 if your compiler supports __attribute__ ((vector)).])
53fi
54])
55
56dnl End of efl_attribute.m4
diff --git a/m4/efl_binary.m4 b/m4/efl_binary.m4
deleted file mode 100644
index 91a26b2..0000000
--- a/m4/efl_binary.m4
+++ /dev/null
@@ -1,79 +0,0 @@
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
56m4_pushdef([UP], m4_translit([[$2]], [-a-z], [_A-Z]))dnl
57
58dnl configure option
59
60AC_ARG_WITH([$2],
61 [AC_HELP_STRING([--with-$2=PATH], [specify a specific path to ]DOWN[ @<:@default=$3@:>@])],
62 [
63 _efl_with_binary=${withval}
64 _efl_binary_define="yes"
65 ],
66 [
67 _efl_with_binary=$(pkg-config --variable=prefix $1)/bin/$3
68 _efl_binary_define="no"
69 ])
70
71DOWN=${_efl_with_binary}
72AC_MSG_NOTICE(DOWN[ set to ${_efl_with_binary}])
73
74with_binary_[]m4_defn([DOWN])=${_efl_with_binary}
75
76AM_CONDITIONAL(HAVE_[]UP, [test "x${_efl_binary_define}" = "xyes"])
77AC_SUBST(DOWN)
78
79])
diff --git a/m4/efl_compiler_flag.m4 b/m4/efl_compiler_flag.m4
deleted file mode 100644
index 25c285d..0000000
--- a/m4/efl_compiler_flag.m4
+++ /dev/null
@@ -1,57 +0,0 @@
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/m4/efl_doxygen.m4 b/m4/efl_doxygen.m4
deleted file mode 100644
index 0c1452f..0000000
--- a/m4/efl_doxygen.m4
+++ /dev/null
@@ -1,98 +0,0 @@
1dnl Copyright (C) 2008 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 doxygen is available or not.
5
6dnl EFL_CHECK_DOXYGEN([ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND]])
7dnl Test for the doxygen program
8dnl Defines efl_doxygen
9dnl Defines the automake conditionnal EFL_BUILD_DOC
10dnl
11AC_DEFUN([EFL_CHECK_DOXYGEN],
12[
13
14dnl
15dnl Disable the build of the documentation
16dnl
17AC_ARG_ENABLE([doc],
18 [AC_HELP_STRING(
19 [--disable-doc],
20 [Disable documentation build @<:@default=enabled@:>@])],
21 [
22 if test "x${enableval}" = "xyes" ; then
23 efl_enable_doc="yes"
24 else
25 efl_enable_doc="no"
26 fi
27 ],
28 [efl_enable_doc="yes"]
29)
30
31if test "x${efl_enable_doc}" = "xyes" ; then
32
33dnl
34dnl Specify the full file name, with path
35dnl
36
37 efl_doxygen="doxygen"
38
39 AC_ARG_WITH([doxygen],
40 [AC_HELP_STRING(
41 [--with-doxygen=FILE],
42 [doxygen program to use @<:@default=doxygen@:>@])],
43dnl
44dnl Check the given doxygen program.
45dnl
46 [efl_doxygen=${withval}
47 AC_CHECK_PROG([efl_have_doxygen],
48 [${efl_doxygen}],
49 [yes],
50 [no])
51 if test "x${efl_have_doxygen}" = "xno" ; then
52 echo "WARNING:"
53 echo "The doxygen program you specified:"
54 echo "$efl_doxygen"
55 echo "was not found. Please check the path and make sure "
56 echo "the program exists and is executable."
57 AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
58 fi
59 ],
60 [AC_CHECK_PROG([efl_have_doxygen],
61 [${efl_doxygen}],
62 [yes],
63 [no])
64 if test "x${efl_have_doxygen}" = "xno" ; then
65 echo "WARNING:"
66 echo "The doxygen program was not found in your execute"
67 echo "You may have doxygen installed somewhere not covered by your path."
68 echo ""
69 echo "If this is the case make sure you have the packages installed, AND"
70 echo "that the doxygen program is in your execute path (see your"
71 echo "shell manual page on setting the \$PATH environment variable), OR"
72 echo "alternatively, specify the program to use with --with-doxygen."
73 AC_MSG_WARN([Warning: no doxygen detected. Documentation will not be built])
74 fi
75 ]
76 )
77fi
78
79dnl
80dnl Substitution
81dnl
82AC_SUBST([efl_doxygen])
83
84if ! test "x${efl_have_doxygen}" = "xyes" ; then
85 efl_enable_doc="no"
86fi
87
88AM_CONDITIONAL(EFL_BUILD_DOC, test "x${efl_enable_doc}" = "xyes")
89
90if test "x${efl_enable_doc}" = "xyes" ; then
91 ifelse([$1], , :, [$1])
92else
93 ifelse([$2], , :, [$2])
94fi
95
96])
97
98dnl End of doxygen.m4
diff --git a/m4/efl_path_max.m4 b/m4/efl_path_max.m4
deleted file mode 100644
index f57bfd2..0000000
--- a/m4/efl_path_max.m4
+++ /dev/null
@@ -1,36 +0,0 @@
1dnl Check for PATH_MAX in limits.h, and define a default value if not found
2dnl This is a workaround for systems not providing PATH_MAX, like GNU/Hurd
3
4dnl EFL_CHECK_PATH_MAX([DEFAULT_VALUE_IF_NOT_FOUND])
5dnl
6dnl If PATH_MAX is not defined in <limits.h>, defines it
7dnl to DEFAULT_VALUE_IF_NOT_FOUND if it exists, or fallback
8dnl to using 4096
9
10AC_DEFUN([EFL_CHECK_PATH_MAX],
11[
12
13default_max=m4_default([$1], "4096")
14AC_LANG_PUSH([C])
15
16AC_MSG_CHECKING([for PATH_MAX in limits.h])
17AC_COMPILE_IFELSE(
18 [AC_LANG_PROGRAM(
19 [[
20#include <limits.h>
21 ]],
22 [[
23int i = PATH_MAX;
24 ]])],
25 [AC_MSG_RESULT([yes])],
26 [
27 AC_DEFINE_UNQUOTED([PATH_MAX],
28 [${default_max}],
29 [default value since PATH_MAX is not defined])
30 AC_MSG_RESULT([no: using ${default_max}])
31 ])
32
33AC_LANG_POP([C])
34
35])
36dnl end of efl_path_max.m4
diff --git a/m4/efl_tests.m4 b/m4/efl_tests.m4
deleted file mode 100644
index 2b6106c..0000000
--- a/m4/efl_tests.m4
+++ /dev/null
@@ -1,65 +0,0 @@
1dnl Copyright (C) 2013 Cedric BAIL <cedric.bail at free dot fr>
2dnl That code is public domain and can be freely used or copied.
3
4dnl Macro for checking availability of tests and coverage infra structure
5
6dnl Usage: EFL_TESTS(profile)
7dnl Valid profile are auto, tests, coverage, no
8dnl Call PKG_CHECK_MODULES, AC_CHECK_PROG, define CHECK_CFLAGS/CHECK_LIBS and modify CFLAGS/LIBS
9dnl It define EFL_HAVE_TESTS/EFL_HAVE_LCOV for use in Makefile.am
10dnl It set have_test and have_coverage to yes/no depending if found
11
12AC_DEFUN([EFL_TESTS],
13[
14build_tests=$1
15
16case "${build_tests}" in
17 auto)
18 check_tests="auto"
19 check_coverage="auto"
20 ;;
21 tests)
22 check_tests="yes"
23 check_coverage="auto"
24 ;;
25 coverage)
26 check_tests="yes"
27 check_coverage="yes"
28 ;;
29 no)
30 check_tests="no"
31 check_coverage="no"
32 ;;
33 *)
34 AC_MSG_ERROR([Unknow tests profile])
35esac
36
37have_tests="no"
38if test "x${check_tests}" = "xyes" -o "x${check_tests}" = "xauto"; then
39 PKG_CHECK_MODULES([CHECK], [check >= 0.9.5], [have_tests="yes"], [have_tests="no"])
40 if test "${check_tests}" = "xyes" -a "x${have_tests}" = "xno"; then
41 AC_MSG_ERROR([Impossible to find check package to build tests])
42 fi
43fi
44
45if test "x${have_tests}" = "xyes"; then
46 if test "x${check_coverage}" = "xyes" -o "x${check_coverage}" = "xauto"; then
47 AC_CHECK_PROG([have_lcov], [lcov], [yes], [no])
48 if test "x${have_lcov}" = "xyes" ; then
49 CFLAGS="${CFLAGS} -fprofile-arcs -ftest-coverage"
50 LIBS="${LIBS} -lgcov"
51 fi
52 if test "x${have_lcov}" = "xno" -a "x${check_coverage}" = "xyes"; then
53 AC_MSG_ERROR([Impossible to find lcov package to build with coverage support])
54 fi
55 else
56 have_coverage="no"
57 fi
58else
59 have_coverage="no"
60fi
61
62AM_CONDITIONAL([EFL_HAVE_TESTS], [test "x${have_tests}" = "xyes"])
63AM_CONDITIONAL([EFL_HAVE_LCOV], [test "x${have_lcov}" = "xyes"])
64
65])
diff --git a/packaging/Makefile.am b/packaging/Makefile.am
deleted file mode 100644
index 47eb174..0000000
--- a/packaging/Makefile.am
+++ /dev/null
@@ -1,4 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3SUBDIRS = slackware pkgbuild
4
diff --git a/packaging/pkgbuild/Makefile.am b/packaging/pkgbuild/Makefile.am
deleted file mode 100644
index c1675ad..0000000
--- a/packaging/pkgbuild/Makefile.am
+++ /dev/null
@@ -1,3 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3EXTRA_DIST = PKGBUILD
diff --git a/packaging/pkgbuild/PKGBUILD b/packaging/pkgbuild/PKGBUILD
deleted file mode 100644
index 8ce7189..0000000
--- a/packaging/pkgbuild/PKGBUILD
+++ /dev/null
@@ -1,59 +0,0 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>
2pkgname=('extra-git')
3pkgver=1.8.99.8967.a1cfce6
4pkgrel=1
5pkgdesc="Enlightenment toolkit extra - GIT development snapshot"
6arch=('i686' 'x86_64' 'arm')
7url="http://http://extra.enlightenment.org/app/"
8license=('WTFPL')
9makedepends=('doxygen' 'imagemagick' 'git')
10depends=('efl')
11options=('!libtool' 'debug')
12provides=('extra')
13reldir=('../../../')
14
15
16pkgver() {
17 cd $reldir
18
19 for _i in v_maj v_min v_mic; do
20 local v_ver=$v_ver.$(grep -m 1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
21 done
22
23 v_ver=$(awk -F , -v v_ver=${v_ver#.} '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
24
25 printf "$v_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
26}
27
28build() {
29 cd $reldir
30
31 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
32 [[ -e Makefile ]] && make clean distclean
33 ./configure --prefix=/usr \
34 --disable-static
35 make
36 make doc
37}
38
39package_extra-git() {
40 cd $reldir
41
42 make -j1 DESTDIR="$pkgdir/" install
43 install -Dm644 README "$pkgdir/usr/share/$pkgname/README"
44 install -Dm644 NEWS "$pkgdir/usr/share/$pkgname/NEWS"
45 install -Dm644 ChangeLog "$pkgdir/usr/share/$pkgname/ChangeLog"
46 install -Dm644 AUTHORS "$pkgdir/usr/share/$pkgname/AUTHORS"
47 ln -s "COPYING" "$pkgdir/usr/share/$pkgname/COPYING"
48}
49
50package_extra_doc-git() {
51 pkgdesc="Documentation for extra"
52 arch=('any')
53 unset depends optdepends
54
55 cd $reldir
56 mkdir -p "$pkgdir/usr/share/doc/$pkgname"
57 cp -a doc/html "$pkgdir/usr/share/doc/$pkgname/html"
58 cp -a doc/latex "$pkgdir/usr/share/doc/$pkgname/latex"
59}
diff --git a/packaging/slackware/Makefile.am b/packaging/slackware/Makefile.am
deleted file mode 100644
index 028e0cc..0000000
--- a/packaging/slackware/Makefile.am
+++ /dev/null
@@ -1,4 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3EXTRA_DIST = doinst.sh extra.SlackBuild slack-desc slack-required
4
diff --git a/packaging/slackware/doinst.sh b/packaging/slackware/doinst.sh
deleted file mode 100644
index 6dfbe18..0000000
--- a/packaging/slackware/doinst.sh
+++ /dev/null
@@ -1 +0,0 @@
1# Stuff done after package installation
diff --git a/packaging/slackware/extra.SlackBuild b/packaging/slackware/extra.SlackBuild
deleted file mode 100755
index d027c61..0000000
--- a/packaging/slackware/extra.SlackBuild
+++ /dev/null
@@ -1,106 +0,0 @@
1#!/bin/bash
2#
3# Begin extra.SlackBuild
4#
5# Copyright (C) 2012-2013 Jerome Pinot <ngc891@gmail.com>
6# All rights reserved.
7#
8# Redistribution and use of this script, with or without modification, is
9# permitted provided that the following conditions are met:
10#
11# 1. Redistributions of this script must retain the above copyright
12# notice, this list of conditions and the following disclaimer.
13#
14# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
15# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
16# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
17# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
18# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
19# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
20# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
21# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
22# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
23# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24
25NAME=extra
26BUILD=${BUILD:-1jp}
27CWD=$(pwd)
28TMP=${TMP:-/tmp}
29PKG=${TMP}/package-${NAME}
30
31# First check if we are in the right folder
32if [ -f ./${NAME}.SlackBuild ]; then
33 echo 'Found SlackBuild'
34else
35 echo 'Error: You must run this script from the packaging/slackware sub-folder!'
36 exit 1
37fi
38
39# Get the version number from configure.ac
40if [ -f ../../configure.ac ];then
41 VERSION=`grep "AC_INIT" ../../configure.ac | cut -d' ' -f2 | sed -e 's/\[//' -e 's/\],//'`
42else
43 echo "Error: can't find configure.ac!"
44 exit 2
45fi
46
47# if ${ARCH} is unset, we have to guess it with uname
48if [ -z "${ARCH}" ]; then
49 case "$(uname -m)" in
50 i?86) export ARCH=i486 ;;
51 arm*) export ARCH=arm ;;
52 *) export ARCH=$(uname -m) ;;
53 esac
54fi
55
56# Set generic flags for gcc
57SCFLAGS='-O2'
58if [ "${ARCH}" = "i486" ]; then
59 SCFLAGS="${SCFLAGS} -march=i486 -mtune=i686"
60 LIBDIR="/usr/lib"
61elif [ "${ARCH}" = "x86_64" ]; then
62 SCFLAGS="${SCFLAGS} -fPIC"
63 LIBDIR="/usr/lib64"
64elif [ "${ARCH}" = "arm" ]; then
65 SCFLAGS="${SCFLAGS} -march=armv4 -mtune=xscale"
66 LIBDIR="/usr/lib"
67fi
68
69# Creating directories
70if [ ! -d ${TMP} ]; then
71 mkdir -p ${TMP}
72fi
73rm -rf ${PKG}
74mkdir -p ${PKG}
75
76# Configuring
77cd ../..
78CFLAGS="${SCFLAGS}" \
79 ./configure \
80 --prefix=/usr \
81 --libdir=${LIBDIR} \
82 --mandir=/usr/man \
83 --docdir=/usr/doc/${NAME}-${VERSION}
84
85# Building
86make
87
88# Installing
89make DESTDIR=${PKG} install
90
91# Cleaning
92cd ${PKG}
93gzip -9 usr/man/man1/${NAME}.1
94
95find ${PKG} | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
96find ${PKG} | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null
97
98# Building the package
99mkdir install
100install -m644 ${CWD}/doinst.sh install/
101install -m644 ${CWD}/slack-desc install/
102install -m644 ${CWD}/slack-required install/
103makepkg -l y -c n ${CWD}/${NAME}-${VERSION}-${ARCH}-${BUILD}.txz
104rm -rf ${PKG}
105
106# End extra.SlackBuild
diff --git a/packaging/slackware/slack-desc b/packaging/slackware/slack-desc
deleted file mode 100644
index f877468..0000000
--- a/packaging/slackware/slack-desc
+++ /dev/null
@@ -1,19 +0,0 @@
1# HOW TO EDIT THIS FILE:
2# The "handy ruler" below makes it easier to edit a package description. Line
3# up the first '|' above the ':' following the base package name, and the '|'
4# on the right side marks the last column you can put a character in. You must
5# make exactly 11 lines for the formatting to be correct. It's also
6# customary to leave one space after the ':'.
7
8 |-----handy-ruler------------------------------------------------------|
9extra: extra
10extra:
11extra: extra is an example of application written using the Enlightenment
12extra: Foundation Libraries.
13extra:
14extra: It requires elementary.
15extra:
16extra: extra was written by Andy Williams <andy@andywilliams.me>
17extra: website: <http://http://extra.enlightenment.org/app//>
18extra:
19extra:
diff --git a/packaging/slackware/slack-required b/packaging/slackware/slack-required
deleted file mode 100644
index 29e9f10..0000000
--- a/packaging/slackware/slack-required
+++ /dev/null
@@ -1,5 +0,0 @@
1eina >= 1.8.0
2evas >= 1.8.0
3ecore >= 1.8.0
4edje >= 1.8.0
5elementary >= 1.8.0
diff --git a/src/Makefile.am b/src/Makefile.am
deleted file mode 100644
index 15871c9..0000000
--- a/src/Makefile.am
+++ /dev/null
@@ -1,4 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3SUBDIRS = lib bin tests
4
diff --git a/src/bin/Makefile.am b/src/bin/Makefile.am
deleted file mode 100644
index a8a7e73..0000000
--- a/src/bin/Makefile.am
+++ /dev/null
@@ -1,23 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3bin_PROGRAMS = extra
4
5AM_CPPFLAGS = -DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
6-I$(top_builddir)/src/bin/ \
7-I$(top_srcdir)/src/bin/ \
8-I$(top_builddir)/src/lib/ \
9-I$(top_srcdir)/src/lib/ \
10@EFL_CFLAGS@
11
12extra_SOURCES = extra_main.c \
13 extra_theme_selector.c \
14 extra_background_selector.c \
15 extra_util.c \
16 gettext.h
17
18extra_LDADD = @EFL_LIBS@ $(top_builddir)/src/lib/libextra.la
19
20localedir = $(datadir)/locale
21DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
22
23EXTRA_DIST = extra_private.h
diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
deleted file mode 100644
index 4c38eb0..0000000
--- a/src/lib/Makefile.am
+++ /dev/null
@@ -1,24 +0,0 @@
1MAINTAINERCLEANFILES = Makefile.in
2
3AM_CPPFLAGS = \
4-I$(top_srcdir)/src/lib \
5-I$(top_builddir)/src/lib \
6-DPACKAGE_LIB_DIR=\"$(libdir)\" \
7-DPACKAGE_DATA_DIR=\"$(datadir)/$(PACKAGE)\" \
8@EFL_CFLAGS@ \
9-DEFL_EXTRA_BUILD
10
11lib_LTLIBRARIES = libextra.la
12
13includes_HEADERS = extra.h
14includesdir = $(includedir)/extra-@VMAJ@
15
16libextra_la_SOURCES = extra.c \
17 extra_api_helper.c \
18 extra_private.h \
19 extra.h \
20 jsmn/jsmn.c \
21 jsmn/jsmn.h
22
23libextra_la_LIBADD = @EFL_LIBS@ -lm
24libextra_la_LDFLAGS = -no-undefined @EFL_LTLIBRARY_FLAGS@
diff --git a/src/tests/Makefile.am b/src/tests/Makefile.am
deleted file mode 100644
index c4e5e98..0000000
--- a/src/tests/Makefile.am
+++ /dev/null
@@ -1,17 +0,0 @@
1
2if EFL_HAVE_TESTS
3
4check_PROGRAMS = extra_tests
5
6extra_tests_SOURCES = test_extra.c
7extra_tests_CPPFLAGS = -I$(top_builddir)/src/lib/ \
8-DPACKAGE_TESTS_DIR=\"$(top_srcdir)/src/tests/\" \
9-DPACKAGE_BUILD_DIR=\"`pwd`/$(top_builddir)/src/tests/\" \
10@EFL_CFLAGS@ \
11@CHECK_CFLAGS@
12extra_tests_LDADD = @CHECK_LIBS@ $(top_builddir)/src/lib/libextra.la
13extra_tests_DEPENDENCIES = $(top_builddir)/src/lib/libextra.la
14
15endif
16
17EXTRA_DIST = test_extra.c