devs/devilhorns/wayland_egl
			
			
		
Carsten Haitzler 21 years ago
parent 619055204b
commit 5f5925671c
  1. 22
      legacy/evas/.cvsignore
  2. 1
      legacy/evas/AUTHORS
  3. 20
      legacy/evas/COPYING
  4. 42
      legacy/evas/FAQ-EVAS
  5. 19
      legacy/evas/Makefile.am
  6. 104
      legacy/evas/README
  7. 3
      legacy/evas/acconfig.h
  8. 39
      legacy/evas/autogen.sh
  9. 288
      legacy/evas/configure.ac
  10. 306
      legacy/evas/configure.in
  11. 2
      legacy/evas/debian/.cvsignore
  12. 11
      legacy/evas/debian/Makefile.am
  13. 5
      legacy/evas/debian/changelog
  14. 48
      legacy/evas/debian/control
  15. 27
      legacy/evas/debian/copyright
  16. 78
      legacy/evas/debian/evas-config.3
  17. 78
      legacy/evas/debian/evas_test.1
  18. 0
      legacy/evas/debian/libevas-dev.files
  19. 0
      legacy/evas/debian/libevas-sample.dirs
  20. 0
      legacy/evas/debian/libevas-sample.files
  21. 0
      legacy/evas/debian/libevas.dirs
  22. 0
      legacy/evas/debian/libevas.files
  23. 8
      legacy/evas/debian/libevas0.postinst
  24. 106
      legacy/evas/debian/rules
  25. 2
      legacy/evas/doc/.cvsignore
  26. 5
      legacy/evas/doc/Makefile.am
  27. BIN
      legacy/evas/doc/evas.pdf
  28. BIN
      legacy/evas/doc/evas.sdw
  29. 59
      legacy/evas/evas-config.in
  30. 198
      legacy/evas/evas.m4
  31. 79
      legacy/evas/evas.spec
  32. 8
      legacy/evas/src/.cvsignore
  33. 257
      legacy/evas/src/Evas.h
  34. 326
      legacy/evas/src/Evas_private.h
  35. 64
      legacy/evas/src/Makefile.am
  36. 76
      legacy/evas/src/evas_callbacks.c
  37. 178
      legacy/evas/src/evas_events.c
  38. 118
      legacy/evas/src/evas_fileless_image.c
  39. 19
      legacy/evas/src/evas_fileless_image.h
  40. 3075
      legacy/evas/src/evas_gl_routines.c
  41. 276
      legacy/evas/src/evas_gl_routines.h
  42. 292
      legacy/evas/src/evas_gradient.c
  43. 593
      legacy/evas/src/evas_image.c
  44. 1088
      legacy/evas/src/evas_image_routines.c
  45. 132
      legacy/evas/src/evas_image_routines.h
  46. 1194
      legacy/evas/src/evas_imlib_routines.c
  47. 146
      legacy/evas/src/evas_imlib_routines.h
  48. 136
      legacy/evas/src/evas_line.c
  49. 222
      legacy/evas/src/evas_list.c
  50. 654
      legacy/evas/src/evas_misc.c
  51. 699
      legacy/evas/src/evas_object.c
  52. 171
      legacy/evas/src/evas_poly.c
  53. 85
      legacy/evas/src/evas_rectangle.c
  54. 1486
      legacy/evas/src/evas_render.c
  55. 1411
      legacy/evas/src/evas_render_routines.c
  56. 156
      legacy/evas/src/evas_render_routines.h
  57. 1114
      legacy/evas/src/evas_text.c
  58. 2034
      legacy/evas/src/evas_x11_routines.c
  59. 198
      legacy/evas/src/evas_x11_routines.h
  60. 7
      legacy/evas/test/.cvsignore
  61. 29
      legacy/evas/test/Makefile.am
  62. 1629
      legacy/evas/test/evas_test.c
  63. 436
      legacy/evas/test/evas_test_old.c
  64. 2
      legacy/evas/test/fnt/.cvsignore
  65. 13
      legacy/evas/test/fnt/Makefile.am
  66. BIN
      legacy/evas/test/fnt/andover.ttf
  67. BIN
      legacy/evas/test/fnt/cinema.ttf
  68. BIN
      legacy/evas/test/fnt/grunge.ttf
  69. BIN
      legacy/evas/test/fnt/morpheus.ttf
  70. BIN
      legacy/evas/test/fnt/notepad.ttf
  71. 2
      legacy/evas/test/img/.cvsignore
  72. 111
      legacy/evas/test/img/Makefile.am
  73. BIN
      legacy/evas/test/img/book.png
  74. BIN
      legacy/evas/test/img/bulb.png
  75. BIN
      legacy/evas/test/img/calc.png
  76. BIN
      legacy/evas/test/img/evas_icon.png
  77. BIN
      legacy/evas/test/img/evas_test_alpha1.png
  78. BIN
      legacy/evas/test/img/evas_test_alpha2.png
  79. BIN
      legacy/evas/test/img/evas_test_anti_alias.png
  80. BIN
      legacy/evas/test/img/evas_test_canvas.png
  81. BIN
      legacy/evas/test/img/evas_test_cheese.png
  82. BIN
      legacy/evas/test/img/evas_test_control_bg.png
  83. BIN
      legacy/evas/test/img/evas_test_control_selection1.png
  84. BIN
      legacy/evas/test/img/evas_test_control_selection2.png
  85. BIN
      legacy/evas/test/img/evas_test_image_0.png
  86. BIN
      legacy/evas/test/img/evas_test_image_1.png
  87. BIN
      legacy/evas/test/img/evas_test_image_10.png
  88. BIN
      legacy/evas/test/img/evas_test_image_11.png
  89. BIN
      legacy/evas/test/img/evas_test_image_12.png
  90. BIN
      legacy/evas/test/img/evas_test_image_13.png
  91. BIN
      legacy/evas/test/img/evas_test_image_14.png
  92. BIN
      legacy/evas/test/img/evas_test_image_15.png
  93. BIN
      legacy/evas/test/img/evas_test_image_2.png
  94. BIN
      legacy/evas/test/img/evas_test_image_3.png
  95. BIN
      legacy/evas/test/img/evas_test_image_4.png
  96. BIN
      legacy/evas/test/img/evas_test_image_5.png
  97. BIN
      legacy/evas/test/img/evas_test_image_6.png
  98. BIN
      legacy/evas/test/img/evas_test_image_7.png
  99. BIN
      legacy/evas/test/img/evas_test_image_8.png
  100. BIN
      legacy/evas/test/img/evas_test_image_9.png
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1,22 +0,0 @@
.icons
evas-config
Makefile
Makefile.in
aclocal.m4
config.status
config.log
config.cache
configure
stamp-h
stamp-h.in
config.sub
config.guess
libtool
config.h
ltmain.sh
ltconfig
config.h.in
libltdl
install-sh
missing
mkinstalldirs

@ -1 +0,0 @@
The Rasterman (Carsten Haitzler) <raster@rasterman.com, raster@valinux.com>

@ -1,20 +0,0 @@
Copyright (C) 2000 Carsten Haitzler and various contributors (see AUTHORS)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies of the Software, its documentation and marketing & publicity
materials, and acknowledgment shall be given in the documentation, materials
and software packages that this Software was used.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@ -1,42 +0,0 @@
Q: Why is EVAS faster with software acceleration than than when I run it
with hardware acceleration switched on?
A: When run with hardware acceleration EVAS uses the GL libraries on your
system; this means that if you have Mesa installed then EVAS will use
the Mesa GL liberties. Mesa however only provides software acceleration
and therefore will run slow compared to EVASs in-built software mode. If
you have a video card that supports hardware acceleration then you should
attempt to get the manufacturers own GL drivers for your computer and
install them making sure that none of the Mesa libraries are left behind
and that where needed sym-links are made to the real drivers.
Q: Why is 'program x' which uses EVAS so slow?
A: See last question. The chance is that the program is trying to use
hardware acceleration by default and that you have Mesa GL libraries
installed on your system. If you don't have acceleration on your video
card then you should search for a way to switch to software acceleration
in the program.
Q: Is there a packaged version of SGI's GLU Implementation for my computer
anywhere?
A: At present SGI's GLU Implementation is available only in the form of a
Redhat package from http://www.mesa3d.org/downloads/sgi.html. You should
download this package and convert it to whatever distribution you are
on using "alien".
Q: Why is my CPU usage at 100% when I use a program running EVAS?
A: When used in software mode, EVAS will use a lot of CPU. In hardware
mode however it depends on your OpenGL drivers. What a lot of drivers
do is limit buffer buffer swaps to vertical blanking gaps only. This
means that the buffers wont be swapped until the vertical blanking gap
is reached, however since there is no method of using interrupts under
Linux/X the GL drivers have to poll in a tight loop waiting for the gap.
Also if the GL libs are accessing the GFX hardware directory then if the
hardware is busy then the app will sit and poll registers until the
hardware is ready. It's basically down to your OpenGL drivers. It's worth
noting as well that your CPU will be high whenever you run evas_test as
it is pushing your system to try and achieve the highest frame rate it
can, a situation that most software using EVAS will never be in.

@ -1,19 +0,0 @@
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = 1.4 foreign
# A list of all the files in the current directory which can be regenerated
MAINTAINERCLEANFILES = INSTALL Makefile.in aclocal.m4 config.guess \
config.h.in config.sub configure install-sh \
ltconfig ltmain.sh missing mkinstalldirs \
stamp-h.in
SUBDIRS = src test doc debian
bin_SCRIPTS = evas-config
EXTRA_DIST = README AUTHORS COPYING evas.spec evas.m4 FAQ-EVAS
m4datadir = @aclocaldir@
m4data_DATA = evas.m4

@ -1,104 +0,0 @@
-------------------------------------------------------------------------------
E V A S - 0.6.0
-------------------------------------------------------------------------------
This is the ``E Canvas'' - a rip off of some of the other canvas's floating
about - Tk and gnome too. it's at the Xlib level. it's intended to be
accelerated by hardware or highly optimised software where possible. It is
intended to be simple and allow for the building of interfaces ontop of it.
What you NEED:
* Imlib2 1.0.3 or higher (and development headers)
* Freetype 1.1, 1.2 or 1.3 - NOT 2.0 and development headers
* X11R6 and development headersand libraries
If you want hardware acceleration to be available:
* OpenGL 1.0 and headers, with hardware accel support and an Xserver with
that too - your milage will vary (Xfree86 4.0 with DRI or Nvidia drivers for
example). make sure you dont have mutliepl libGL's and multiple GL headers
on your system. Rememebr most GL drivers are buggy and you will experience
problems. See your driver maintainers for these :)
if you got this from cvs do:
./autogen.sh
otherwise do:
./configure
then to compile:
make
if you wish to install (as root):
make install
in the test directory you will find a test program:
cd test
./evas_test
This is an overall demo of what Evas can do. You can select the rendering mode
on the left by simply clicking it. Just sit back, watch and relax.
There is also
./evas_test_old
this will by default try the software engine - if you don't have a fast cpu
it will be slow. You can try the other engines:
./evas_test_old -m x11
./evas_test_old -m soft -s 0
./evas_test_old -m hard
x11 is the X11 pixmap engine. -s 0 turns off ``dithering'' and smooth shading
for image objects here for better speed. hard is the opengl hardware 3D
engine. Note that if you do NOT have real hardware accelerated GL it will be
SLOOOOOOOOOOOOOW - VERY slow. Much slower than software. Also Mesa 3.2 and
below has known bugs that cause a segv. It's been fixed in Mesa 3.3.
If evas didn't find OpenGL it will have built a software only engine so you
don't need to try hardware since this will fall back to software mode
automatically.
There is a new evas_test program being written too - it's in progress, so
wait for it to be complete.
-------------------------------------------------------------------------------
MORE DETAILED DESCRIPTION:
-------------------------------------------------------------------------------
Evas? Canvas? What? OK.. you're baffled as to what that stuff is. Time to
explain.
A canvas is a high-level rendering engine. Instead of a program having to
handle exposes or updates then redraw bit by bit (draw line, draw box,
paste image etc.) after having figured out what has changed and what need to
be re-rendered - what data loaded in maps to what... then finally order the
draw in the right way to optimize it - a canvas provides a high-level API to
this kind of thing and handles all the smarts inside.
The result is an application creates an Evas & attaches that evas to a window.
Now it just creates objects - create an image object, a text object, a line
object, a rectangle object etc. It just moves and resizes these objects around
by calling routines in Evas - Evas handles redrawing, scaling, ordering the
draws to account for layers, clipping objects out that don't exist in the
visible Evas area etc. All the application need do is call evas_redraw when
it becomes idle to have the evas redraw what has changed.
This means less headache for the application programmer. Now why do this as
a whole new library? Well - because the library can render the Evas as fast
as possible. It uses Imlib2 to do the grunt work of loading images - and
beyond that it can currently use either imlib2, OpenGL or X11 to render to the
Evas - if you have decent hardware that's supported by OpenGL you will see
in the area of 10-50 times (in future even higher) speedups in rendering
using the GL backend instead of the Imlib2 one (even though Imlib2 is a
highly optimized software rendering engine). The good thing here is that the
application can choose what system to use. If that system isn't available or
Evas didn't compile with it, it will fall back to the nearest approximation
(it will ALWAYS have Imlib2 and X11 rendering backends - Imlib2 being able to
actually alpha blend, but X11 keeping the rendering server-side with pixmaps
and clip masks) so this means a highly optimized rendering subsystem to build
more complex things ontop of.
As it stands right now the API is still under construction - don't bank on it
remaining 100% stable. The backend of evas currently seems to have no bugs or
leaks that I know of, so feel free to punish it.

@ -1,3 +0,0 @@
#undef HAVE_GL
#undef HAVE_GLU
#undef HAVE_RENDER

@ -1,39 +0,0 @@
#! /bin/sh
abort () {
echo "$1 not found or command failed. Aborting!"
exit 1
}
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
THEDIR="`pwd`"
cd "$srcdir"
DIE=0
set -x
aclocal || abort "aclocal"
libtoolize --ltdl --force --copy || abort "libtoolize"
autoheader || abort "autoheader"
automake --foreign --add-missing || abort "automake"
autoconf || abort "autoconf"
if test -z "$*"; then
echo "I am going to run ./configure with no arguments - if you wish "
echo "to pass any to it, please specify them on the $0 command line."
fi
cd "$THEDIR"
$srcdir/configure "$@" || abort "configure"
set +x
echo "Now type:"
echo
echo "make"
echo "make install"
echo
echo "have fun."

@ -1,288 +0,0 @@
# SETUP
AC_INIT(src/Evas.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(evas, 0.6.0)
IMLIB2_CONFIG_IN_PATH=xyes
AC_PROGRAM_CHECK(IMLIB2_CONFIG_IN_PATH, imlib2-config, xyes, xno)
if test $IMLIB2_CONFIG_IN_PATH = xno; then
echo "ERROR:"
echo "The imlib2-config development script was not found in your execute"
echo "path. This may mean one of several things"
echo "1. You may not have installed the Imlib2-devel (or Imlib2-dev)"
echo " packages."
echo "2. You may have Imlib2 installed somewhere not covered by your path."
echo ""
echo "If this is the case make sure you have the packages installed, AND"
echo "that the imlib2-config script is in your execute path (see your"
echo "shell's manual page on setting the \$PATH environment variable)."
AC_MSG_ERROR([Fatal Error: no imlib2-config detected.])
exit;
fi
AC_ARG_WITH(ttf,
[ --with-ttf=DIR use DIR where freetype was installed (eg /opt/freetype)],
[
CPPFLAGS="$CPPFLAGS -I$withval/include";
LDFLAGS="$LDFLAGS -L$withval/lib";
LIBS_TTF="-L"$withval"/lib"
])
gl=yes
AC_ARG_ENABLE(gl,
[ --disable-gl disable building with opengl support],
[
if test x$enableval = xyes; then
gl=yes
else
gl=no
fi
]
)
AC_ARG_WITH(gl,
[ --with-gl=DIR use DIR where opengl was installed (eg /usr/X11R6)],
[
if test x$gl = xyes; then
CPPFLAGS="$CPPFLAGS -I$withval/include";
LDFLAGS="$LDFLAGS -L$withval/lib";
LIBS_GL="-L"$withval"/lib"
fi
])
AC_C_BIGENDIAN
AC_PROG_CC
AM_PROG_CC_STDC
AM_WITH_DMALLOC
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_MAKE_SET
if test X"$enable_shared" = Xyes; then
DLLDFLAGS=-export-dynamic
AC_SUBST(DLLDFLAGS)
fi
AC_PATH_X
AC_PATH_XTRA
if test "x$x_includes" = "x"; then
x_includes="/usr/include"
fi
x_cflags="$X_CFLAGS"
x_ldflags="$X_LDFLAGS"
x_libs="$X_LIBS $X_EXTRA_LIBS -lX11"
AC_CHECK_LIB(
X11,
XOpenDisplay,
x_libs="$x_libs",
AC_MSG_ERROR([ERROR: libX11 not found.]); exit,
$X_LDFLAGS $X_EXTRA_LIBS $X_LIBS
)
AC_CHECK_LIB(
Xext,
XShmAttach,
x_libs="-lXext $x_libs",
AC_CHECK_LIB(
XextSam,
XShmAttach,
x_libs="-lXextSam -lXext $x_libs",
AC_MSG_ERROR([ERROR: XShm not found.]); exit,
$x_libs),
$x_libs)
AC_CHECK_LIB(
Xext,
XShapeCombineMask,
x_libs="-lXext $x_libs",
AC_MSG_ERROR([ERROR: XShape not found.]); exit,
$x_libs)
x_libs="$x_libs -lX11"
AC_CHECK_LIB(
Xrender,
XRenderCreatePicture,
[
x_libs=" -lXrender -lXext $x_libs";
AC_DEFINE(HAVE_RENDER)
],
[],
$x_libs)
AC_CHECK_LIB(
ttf,
TT_Init_FreeType,
TTF_LIBS="-lttf "$LIBS_TTF,
[
echo "ERROR: Evas needs a system with libttf.so (TrueType Font Library)"
echo "You can obtain it from:"
echo "ftp://ftp.enlightenment.org/pub/enlightenment/"
echo "You can also obtain it from:"
echo "http://www.freetype.org/"
echo "You can obtain some truetype fonts from:"
echo "http://voyager.cns.ohiou.edu/~sadkins/web_library/fonts/font_archive/"
echo ""
AC_MSG_ERROR([Fatal Error: no FreeType detected.])
],
$LIBS_TTF -lm)
AC_CHECK_HEADERS(freetype.h freetype/freetype.h freetype1/freetype/freetype.h,[ break] , )
AC_CHECK_HEADER(freetype.h, [ ftype=yes ], [ ftype=no ])
AC_CHECK_HEADER(freetype/freetype.h, [ ftype_ftype=yes ], [ ftype_ftype=no ])
AC_CHECK_HEADER(freetype1/freetype/freetype.h, [ ftype1_ftype=yes ], [ ftype1_ftype=no ])
if test x$ftype = xno; then
if test x$ftype_ftype = xno; then
if test x$ftype1_ftype = xno; then
echo ""
echo "ERROR: freetype.h not found in freetype.h or freetype/freetype.h include"
echo "paths. (ie /usr/include, /usr/local/include etc.). You need the freetype"
echo "header files to build Evas. This may mean you have to install the"
echo "freetype-devel packages for your distribution or if all else fails"
echo "find the source for freetype and install that somewhere where Evas"
echo "can find the header files."
echo ""
echo "You can obtain it from:"
echo "ftp://ftp.enlightenment.org/pub/enlightenment/"
echo "You can also obtain it from:"
echo "http://www.freetype.org/"
echo "You can obtain some truetype fonts from:"
echo "http://voyager.cns.ohiou.edu/~sadkins/web_library/fonts/font_archive/"
echo ""
AC_MSG_ERROR([Fatal Error: no FreeType header files detected.])
fi
fi
fi
ttf_includes="$CPPFLAGS"
ttf_libs="$LIBS_TTF -lm -lttf"
if test x$gl = xyes ; then
gl_includes=""
PREV_CPPFLAGS=$CPPFLAGS
CPPFLAGS=$CPPFLAGS" -I/usr/include -I/usr/local/include "$x_cflags
header_gl_h=xno
header_glu_h=xno
AC_TRY_CPP(
[
#include <GL/gl.h>
],
[
echo "checking for GL/gl.h... yes";
gl_includes=$CPPFLAGS;
header_gl_h=xyes;
]
,
[
echo "checking for GL/gl.h... no";
header_gl_h=xno;
])
if test $header_gl_h = xyes; then
AC_TRY_CPP(
[
#include <GL/gl.h>
#include <GL/glu.h>
],
[
echo "checking for GL/glu.h... yes";
glu_includes=$CPPFLAGS;
header_glu_h=xyes;
]
,
[
echo "checking for GL/glu.h... no";
header_glu_h=xno;
])
fi
have_gl=no
have_glu=no
if test $header_gl_h = xyes; then
AC_CHECK_LIB(
GL,
glBindTexture,
have_gl=yes,
[],
-L/usr/local/lib -lGL $x_libs $x_ldflags $x_cflags $LIBS_GL -lm)
fi
if test "x$have_gl" = "xyes"; then
gl_includes=$gl_includes
gl_ldflags="$gl_ldflags -L/usr/local/lib -lGL $x_libs $x_ldflags $x_cflags $LIBS_GL -lm";
gl_libs=$gl_libs" -lGL"
AC_DEFINE(HAVE_GL)
fi
if test $header_glu_h = xyes; then
AC_CHECK_LIB(
GLU,
gluBuild2DMipmaps,
have_glu=yes,
echo "WARNING:.......";
echo "no libGLU was found. This means filtered (anti-aliased) scaling down";
echo "of images will be disabled.";
echo "Please read the config.log file for more information as to why this library";
echo "was not found.";
,
$gl_ldflags -lGL -lGLU)
AC_CHECK_LIB(
GLU,
gluTessBeginPolygon,
have_glu=yes,
echo "";
echo "ERROR: evas needs a system with libGLU 1.3";
echo "You can obtain it from:";
echo "http://www.mesa3d.org/downloads/sgi.html";
echo "You will need to obtain the SGI'd libGLU.";
echo "debian: download the rpm and use alien to convert it";
echo "";
have_glu = no;
,
$gl_ldflags -lGL -lGLU)
fi
if test have_gl = no; then
echo "WARNING:......."
echo "no OpenGL libraries / headers found. This means no GL support will be"
echo "built into Evas. Ifapplications request 3D Hardware rendering from"
echo "evas, they will be forcibly moved back to using software alpha"
echo "rendering."
echo "Please read the config.log file for more information as to why this library"
echo "was not found."
fi
fi
CPPFLAGS=$PREV_CPPFLAGS
imlib2_includes=`imlib2-config --cflags`
imlib2_libs=`imlib2-config --libs`
AC_SUBST(x_cflags)
AC_SUBST(x_includes)
AC_SUBST(x_ldflags)
AC_SUBST(x_libs)
AC_SUBST(gl_includes)
AC_SUBST(gl_ldflags)
AC_SUBST(gl_libs)
AC_SUBST(imlib2_includes)
AC_SUBST(imlib2_libs)
AC_SUBST(ttf_includes)
AC_SUBST(ttf_libs)
AC_OUTPUT([
Makefile
src/Makefile
test/Makefile
test/img/Makefile
test/fnt/Makefile
evas-config
doc/Makefile
debian/Makefile
], [
chmod +x evas-config
])

@ -1,306 +0,0 @@
# SETUP
AC_INIT(src/Evas.h)
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE(evas, 0.6.0)
IMLIB2_CONFIG_IN_PATH=xyes
AC_PROGRAM_CHECK(IMLIB2_CONFIG_IN_PATH, imlib2-config, xyes, xno)
if test $IMLIB2_CONFIG_IN_PATH = xno; then
echo "ERROR:"
echo "The imlib2-config development script was not found in your execute"
echo "path. This may mean one of several things"
echo "1. You may not have installed the Imlib2-devel (or Imlib2-dev)"
echo " packages."
echo "2. You may have Imlib2 installed somewhere not covered by your path."
echo ""
echo "If this is the case make sure you have the packages installed, AND"
echo "that the imlib2-config script is in your execute path (see your"
echo "shell's manual page on setting the \$PATH environment variable)."
AC_MSG_ERROR([Fatal Error: no imlib2-config detected.])
exit;
fi
AC_ARG_WITH(ttf,
[ --with-ttf=DIR use DIR where freetype was installed (eg /opt/freetype)],
[
CPPFLAGS="$CPPFLAGS -I$withval/include";
LDFLAGS="$LDFLAGS -L$withval/lib";
LIBS_TTF="-L"$withval"/lib"
])
aclocal_usr=yes
AC_ARG_ENABLE(aclocal_usr,
[ --disable-aclocal_usr disable evas forcibly puting evas.m4 in /usr/aclocal and use prefix instead],
[
if test x$enableval = xyes; then
aclocal_usr=yes
else
aclocal_usr=no
fi
]
)
gl=yes
AC_ARG_ENABLE(gl,
[ --disable-gl disable building with opengl support],
[
if test x$enableval = xyes; then
gl=yes
else
gl=no
fi
]
)
AC_ARG_WITH(gl,
[ --with-gl=DIR use DIR where opengl was installed (eg /usr/X11R6)],
[
if test x$gl = xyes; then
CPPFLAGS="$CPPFLAGS -I$withval/include";
LDFLAGS="$LDFLAGS -L$withval/lib";
LIBS_GL="-L"$withval"/lib"
fi
])
AC_C_BIGENDIAN
AC_PROG_CC
AM_PROG_CC_STDC
AM_WITH_DMALLOC
AC_C_CONST
AM_ENABLE_SHARED
AM_PROG_LIBTOOL
AC_PROG_INSTALL
AC_PROG_MAKE_SET
if test X"$enable_shared" = Xyes; then
DLLDFLAGS=-export-dynamic
AC_SUBST(DLLDFLAGS)
fi
AC_PATH_X
AC_PATH_XTRA
if test "x$x_includes" = "x"; then
x_includes="/usr/include"
fi
x_cflags="$X_CFLAGS"
x_ldflags="$X_LDFLAGS"
x_libs="$X_LIBS $X_EXTRA_LIBS -lX11"
AC_CHECK_LIB(
X11,
XOpenDisplay,
x_libs="$x_libs",
AC_MSG_ERROR([ERROR: libX11 not found.]); exit,
$X_LDFLAGS $X_EXTRA_LIBS $X_LIBS
)
AC_CHECK_LIB(
Xext,
XShmAttach,
x_libs="-lXext $x_libs",
AC_CHECK_LIB(
XextSam,
XShmAttach,
x_libs="-lXextSam -lXext $x_libs",
AC_MSG_ERROR([ERROR: XShm not found.]); exit,
$x_libs),
$x_libs)
AC_CHECK_LIB(
Xext,
XShapeCombineMask,
x_libs="-lXext $x_libs",
AC_MSG_ERROR([ERROR: XShape not found.]); exit,
$x_libs)
x_libs="$x_libs -lX11"
AC_CHECK_LIB(
Xrender,
XRenderCreatePicture,
[
x_libs=" -lXrender -lXext $x_libs";
AC_DEFINE(HAVE_RENDER)
],
[],
$x_libs)
AC_CHECK_LIB(
ttf,
TT_Init_FreeType,
TTF_LIBS="-lttf "$LIBS_TTF,
[
echo "ERROR: Evas needs a system with libttf.so (TrueType Font Library)"
echo "You can obtain it from:"
echo "ftp://ftp.enlightenment.org/pub/enlightenment/"
echo "You can also obtain it from:"
echo "http://www.freetype.org/"
echo "You can obtain some truetype fonts from:"
echo "http://voyager.cns.ohiou.edu/~sadkins/web_library/fonts/font_archive/"
echo ""
AC_MSG_ERROR([Fatal Error: no FreeType detected.])
],
$LIBS_TTF -lm)
AC_CHECK_HEADERS(freetype.h freetype/freetype.h freetype1/freetype/freetype.h, [ break ], )
AC_CHECK_HEADER(freetype.h, [ ftype=yes ], [ ftype=no ])
AC_CHECK_HEADER(freetype/freetype.h, [ ftype_ftype=yes ], [ ftype_ftype=no ])
AC_CHECK_HEADER(freetype1/freetype/freetype.h, [ ftype1_ftype=yes ], [ ftype1_ftype=no ])
if test x$ftype = xno; then
if test x$ftype_ftype = xno; then
if test x$ftype1_ftype = xno; then
echo ""
echo "ERROR: freetype.h not found in freetype.h or freetype/freetype.h include"
echo "paths. (ie /usr/include, /usr/local/include etc.). You need the freetype"
echo "header files to build Evas. This may mean you have to install the"
echo "freetype-devel packages for your distribution or if all else fails"
echo "find the source for freetype and install that somewhere where Evas"
echo "can find the header files."
echo ""
echo "You can obtain it from:"
echo "ftp://ftp.enlightenment.org/pub/enlightenment/"
echo "You can also obtain it from:"
echo "http://www.freetype.org/"
echo "You can obtain some truetype fonts from:"
echo "http://voyager.cns.ohiou.edu/~sadkins/web_library/fonts/font_archive/"
echo ""
AC_MSG_ERROR([Fatal Error: no FreeType header files detected.])
fi
fi
fi
ttf_includes="$CPPFLAGS"
ttf_libs="$LIBS_TTF -lm -lttf"
if test x$gl = xyes ; then
gl_includes=""
PREV_CPPFLAGS=$CPPFLAGS
CPPFLAGS=$CPPFLAGS" -I/usr/include -I/usr/local/include "$x_cflags
header_gl_h=xno
header_glu_h=xno
AC_TRY_CPP(
[
#include <GL/gl.h>
],
[
echo "checking for GL/gl.h... yes";
gl_includes=$CPPFLAGS;
header_gl_h=xyes;
]
,
[
echo "checking for GL/gl.h... no";
header_gl_h=xno;
])
if test $header_gl_h = xyes; then
AC_TRY_CPP(
[
#include <GL/gl.h>
#include <GL/glu.h>
],
[
echo "checking for GL/glu.h... yes";
glu_includes=$CPPFLAGS;
header_glu_h=xyes;
]
,
[
echo "checking for GL/glu.h... no";
header_glu_h=xno;
])
fi
have_gl=no
have_glu=no
if test $header_gl_h = xyes; then
AC_CHECK_LIB(
GL,
glBindTexture,
have_gl=yes,
[],
-L/usr/local/lib -lGL $x_libs $x_ldflags $x_cflags $LIBS_GL -lm)
fi
if test "x$have_gl" = "xyes"; then
gl_includes=$gl_includes
gl_ldflags="$gl_ldflags -L/usr/local/lib -lGL $x_libs $x_ldflags $x_cflags $LIBS_GL -lm";
gl_libs=$gl_libs" -lGL"
AC_DEFINE(HAVE_GL)
fi
if test $header_glu_h = xyes; then
AC_CHECK_LIB(
GLU,
gluBuild2DMipmaps,
have_glu=yes,
echo "WARNING:.......";
echo "no libGLU was found. This means filtered (anti-aliased) scaling down";
echo "of images will be disabled.";
echo "Please read the config.log file for more information as to why this library";
echo "was not found.";
,
$gl_ldflags -lGL -lGLU)
AC_CHECK_LIB(
GLU,
gluTessBeginPolygon,
have_glu=yes,
echo "";
echo "ERROR: evas needs a system with libGLU 1.3";
echo "You can obtain it from:";
echo "http://www.mesa3d.org/downloads/sgi.html";
echo "You will need to obtain the SGI'd libGLU.";
echo "debian: download the rpm and use alien to convert it";
echo "";
have_glu=no;
,
$gl_ldflags -lGL -lGLU)
fi
if test have_gl = no; then
echo "WARNING:......."
echo "no OpenGL libraries / headers found. This means no GL support will be"
echo "built into Evas. Ifapplications request 3D Hardware rendering from"
echo "evas, they will be forcibly moved back to using software alpha"
echo "rendering."
echo "Please read the config.log file for more information as to why this library"
echo "was not found."
fi
fi
CPPFLAGS=$PREV_CPPFLAGS
imlib2_includes=`imlib2-config --cflags`
imlib2_libs=`imlib2-config --libs`
AC_SUBST(x_cflags)
AC_SUBST(x_includes)
AC_SUBST(x_ldflags)
AC_SUBST(x_libs)
AC_SUBST(gl_includes)
AC_SUBST(gl_ldflags)
AC_SUBST(gl_libs)
AC_SUBST(imlib2_includes)
AC_SUBST(imlib2_libs)
AC_SUBST(ttf_includes)
AC_SUBST(ttf_libs)
aclocaldir=$datadir"/aclocal"
if test X"$aclocal_usr" = Xyes; then
aclocaldir="/usr/share/aclocal"
fi
AC_SUBST(aclocaldir)
AC_OUTPUT([
Makefile
src/Makefile
test/Makefile
test/img/Makefile
test/fnt/Makefile
evas-config
doc/Makefile
debian/Makefile
], [
chmod +x evas-config
])

@ -1,2 +0,0 @@
Makefile
Makefile.in

@ -1,11 +0,0 @@
EXTRA_DIST = \
changelog \
control \
copyright \
libevas-dev.files \
libevas-sample.dirs \
libevas-sample.files \
libevas.dirs \
libevas.files \
libevas0.postinst \
rules

@ -1,5 +0,0 @@
evas (0.6.0-0cvs2001103001) unstable; urgency=low
* a CVS release
-- Laurence J. Lane <ljlane@debian.org> Tue, 30 Oct 2001 13:03:50 +0000

@ -1,48 +0,0 @@
Source: evas
Section: libs
Priority: optional
Maintainer: Laurence J. Lane <ljlane@debian.org>
Build-Depends: xlibs-dev, xlibmesa-dev, libttf-dev, libimlib2-dev, debhelper (>=2.0)
Standards-Version: 3.5.6.0
Package: libevas0
Section: libs
Architecture: any
Suggests: evas-demo
Depends: ${shlibs:Depends}
Description: enlightenment advanced canvas library
Evas is an advanced canvas library, providing three backends for
rendering: X11 (without some features like alpha-blending), imlib2, or
OpenGL (hardware accelerated). Due to its simple API, evas can be
developed with rapidly, and cleanly.
Install evas if you want to develop applications against the only
hardware-accelerated canvas library, or if you want to try out the
applications under development.
Package: libevas0-dev
Section: devel
Architecture: any
Depends: libevas0 (= ${Source-Version}), libc6-dev
Description: development files for libevas
Headers and static libraries required to develop against evas.
Package: evas-doc
Section: doc
Architecture: all
Depends:
Description: TFM for evas
The evas application programming interface documentation is presented
in pdf and sdw format.
Package: evas-demo
Section: graphics
Architecture: any
Depends: ${shlibs:Depends}
Description: evas library demo
Evas is an advanced canvas library, providing three backends for
rendering: X11 (without some features like alpha-blending), imlib2, or
OpenGL (hardware accelerated). Due to its simple API, evas can be
developed with rapidly, and cleanly.
Install evas if you want to develop applications against the only
hardware-accelerated canvas library, or if you want to try out the
applications under development.

@ -1,27 +0,0 @@
This package was debianized by Laurence J. Lane <ljlane@debian.org> on
Sat, 28 Oct 2000 17:56:46 -0400.
The source code was downloaded from:
http://download.sourceforge.net/enlightenment/evas-0.5.0.tar.gz
Copyright (C) 2000 Carsten Haitzler and various contributors (see AUTHORS)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies of the Software, its documentation and marketing & publicity
materials, and acknowledgment shall be given in the documentation, materials
and software packages that this Software was used.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

@ -1,78 +0,0 @@
.\" This -*- nroff -*- file has been generated from
.\" DocBook SGML with docbook-to-man on Debian GNU/Linux.
...\"
...\" transcript compatibility for postscript use.
...\"
...\" synopsis: .P! <file.ps>
...\"
.de P!
\\&.
.fl \" force out current output buffer
\\!%PB
\\!/showpage{}def
...\" the following is from Ken Flowers -- it prevents dictionary overflows
\\!/tempdict 200 dict def tempdict begin
.fl \" prolog
.sy cat \\$1\" bring in postscript file
...\" the following line matches the tempdict above
\\!end % tempdict %
\\!PE
\\!.
.sp \\$2u \" move below the image
..
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
'\" t
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "evas-config" "3"
.SH "NAME"
evas-config \(em evas library build dependecies
.SH "SYNOPSIS"
.PP
\fBevas-config\fP
.SH "DESCRIPTION"
.PP
This manual page documents briefly the
\fBevas-config\fP command.
.PP
This manual page was written for the \fBDebian GNU/Linux\fP distribution
because the original program does not have a manual page.
.PP
\fBevas-config\fP is a program used to provide info
libs and cflags parameters required to build appications that use the evas
library.
.SH "AUTHOR"
.PP
This manual page was written by Laurence J. Lane (ljlane@debian.org) for
the \fBDebian GNU/Linux\fP system (but may be used by others).
...\" created by instant / docbook-to-man, Mon 28 May 2001, 15:04

@ -1,78 +0,0 @@
.\" This -*- nroff -*- file has been generated from
.\" DocBook SGML with docbook-to-man on Debian GNU/Linux.
...\"
...\" transcript compatibility for postscript use.
...\"
...\" synopsis: .P! <file.ps>
...\"
.de P!
\\&.
.fl \" force out current output buffer
\\!%PB
\\!/showpage{}def
...\" the following is from Ken Flowers -- it prevents dictionary overflows
\\!/tempdict 200 dict def tempdict begin
.fl \" prolog
.sy cat \\$1\" bring in postscript file
...\" the following line matches the tempdict above
\\!end % tempdict %
\\!PE
\\!.
.sp \\$2u \" move below the image
..
.de pF
.ie \\*(f1 .ds f1 \\n(.f
.el .ie \\*(f2 .ds f2 \\n(.f
.el .ie \\*(f3 .ds f3 \\n(.f
.el .ie \\*(f4 .ds f4 \\n(.f
.el .tm ? font overflow
.ft \\$1
..
.de fP
.ie !\\*(f4 \{\
. ft \\*(f4
. ds f4\"
' br \}
.el .ie !\\*(f3 \{\
. ft \\*(f3
. ds f3\"
' br \}
.el .ie !\\*(f2 \{\
. ft \\*(f2
. ds f2\"
' br \}
.el .ie !\\*(f1 \{\
. ft \\*(f1
. ds f1\"
' br \}
.el .tm ? font underflow
..
.ds f1\"
.ds f2\"
.ds f3\"
.ds f4\"
'\" t
.ta 8n 16n 24n 32n 40n 48n 56n 64n 72n
.TH "evas_test" "1"
.SH "NAME"
evas_test \(em evas library demonstartion program
.SH "SYNOPSIS"
.PP
\fBevas_test\fP
.SH "DESCRIPTION"
.PP
This manual page documents briefly the
\fBevas_test\fP command.
.PP
This manual page was written for the \fBDebian GNU/Linux\fP distribution
because the original program does not have a manual page.
.PP
\fBevas_test\fP and \fBevas_test_old\fP are programs that demonstrate the capabilites of evas, the enlightenment
canvasing library. run "evas_test_old -h" for a description of command
line options.
.SH "AUTHOR"
.PP
This manual page was written by Laurence J. Lane (ljlane@debian.org) for
the \fBDebian GNU/Linux\fP system (but may be used by others).
...\" created by instant / docbook-to-man, Mon 28 May 2001, 15:04

@ -1,8 +0,0 @@
#!/bin/sh -e
if test "$1" = "configure"; then
ldconfig
fi
#DEBHELPER#

@ -1,106 +0,0 @@
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 by Joey Hess.
export DH_COMPAT=3
export DH_OPTIONS
INSTALL = /usr/bin/install -p
BUILDDIR = debian/build
package = libevas0
CONFIGURE_OPTS = --datadir=/usr/share --prefix=/usr
configure: $(BUILDDIR)/configure-stamp
$(BUILDDIR)/configure-stamp:
$(INSTALL) -d $(BUILDDIR)
cd $(BUILDDIR); datadir=/usr/share $(CURDIR)/autogen.sh $(CONFIGURE_OPTS)
touch $@
build: configure $(BUILDDIR)/build-stamp
$(BUILDDIR)/build-stamp:
dh_testdir
$(MAKE) -C $(BUILDDIR)
touch $@
clean:
dh_testdir
-$(MAKE) distclean
-rm -rf $(BUILDDIR)
dh_clean
install: DH_OPTIONS=
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
$(MAKE) install -C $(BUILDDIR) DESTDIR=$(CURDIR)/debian/$(package)/
$(INSTALL) -d debian/$(package)-dev/usr/lib
$(INSTALL) -d debian/$(package)-dev/usr/bin
$(INSTALL) -d debian/$(package)-dev/usr/share
$(INSTALL) -d debian/evas-doc/usr/share/doc/evas-doc/
$(INSTALL) -d debian/evas-demo/usr/bin
rm -rvf debian/$(package)/usr/share/evas/doc/
#mv debian/$(package)/usr/share/aclocal debian/$(package)-dev/usr/share/
$(INSTALL) -D debian/$(package)/@aclocaldir@/evas.m4 debian/$(package)-dev/usr/share/aclocal/evas.m4
rm -rf debian/$(package)/@aclocaldir@/
mv debian/$(package)/usr/share debian/evas-demo/usr
mv debian/$(package)/usr/include debian/$(package)-dev/usr
mv debian/$(package)/usr/lib/*.so debian/$(package)-dev/usr/lib/
mv debian/$(package)/usr/lib/*.la debian/$(package)-dev/usr/lib/
mv debian/$(package)/usr/lib/*.a debian/$(package)-dev/usr/lib/
mv debian/$(package)/usr/bin/evas-config debian/$(package)-dev/usr/bin/
mv debian/$(package)/usr/bin/evas_test* debian/evas-demo/usr/bin/
$(INSTALL) -m0644 doc/*.pdf doc/*.sdw debian/evas-doc/usr/share/doc/evas-doc
$(INSTALL) -d debian/evas-demo/usr/share/man/man1
$(INSTALL) debian/evas_test.1 debian/evas-demo/usr/share/man/man1/
$(INSTALL) -d debian/$(package)-dev/usr/share/man/man3
$(INSTALL) debian/evas-config.3 debian/$(package)-dev/usr/share/man/man3/
cd debian/evas-demo/usr/share/man/man1; ln -s evas_test.1.gz evas_test_old.1.gz
rm -rvf debian/evas-demo/usr/share/evas/evas/doc
binary-indep: DH_OPTIONS=-i
binary-indep: build install
dh_testdir
dh_testroot
dh_installdocs AUTHORS README
dh_installchangelogs
dh_compress -Xpdf -Xsdw
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
binary-arch: DH_OPTIONS=-a
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs AUTHORS README
dh_installmenu
dh_installchangelogs
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_makeshlibs
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
stuff:
docbook-to-man evas_test.1.sgml > evas_test.1
docbook-to-man evas-config.3.sgml > evas-config.3
.PHONY: build clean binary-indep binary-arch binary install

@ -1,2 +0,0 @@
Makefile.in
Makefile

@ -1,5 +0,0 @@
EXTRA_DIST = \
evas.sdw evas.pdf
evasdir = $(datadir)/evas/doc
evas_DATA = \
evas.sdw evas.pdf

Binary file not shown.

Binary file not shown.

@ -1,59 +0,0 @@
#!/bin/sh
prefix=@prefix@
exec_prefix=@exec_prefix@
exec_prefix_set=no
usage="\
Usage: evas-config [--prefix[=DIR]] [--exec-prefix[=DIR]] [--version] [--libs] [--cflags]"
if test $# -eq 0; then
echo "${usage}" 1>&2
exit 1
fi
while test $# -gt 0; do
case "$1" in
-*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
*) optarg= ;;
esac
case $1 in
--prefix=*)
prefix=$optarg
if test $exec_prefix_set = no ; then
exec_prefix=$optarg
fi
;;
--prefix)
echo $prefix
;;
--exec-prefix=*)
exec_prefix=$optarg
exec_prefix_set=yes
;;
--exec-prefix)
echo $exec_prefix
;;
--version)
echo @VERSION@
;;
--cflags)
if test @includedir@ != /usr/include ; then
includes=-I@includedir@
fi
echo $includes @x_cflags@ @gl_includes@ @imlib2_includes@
;;
--libs)
libdirs=-L@libdir@
echo $libdirs -levas @gl_ldflags@ @gl_libs@ @LDFLAGS@ @x_libs@ @x_ldflags@ @imlib2_libs@
;;
*)
echo "${usage}" 1>&2
exit 1
;;
esac
shift
done
exit 0

@ -1,198 +0,0 @@
# Configure paths for Evas
# Conrad Parker 2001-01-23
# blatantly ripped from gtk.m4, Owen Taylor 97-11-3
dnl AM_PATH_EVAS([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]])
dnl Test for Evas, and define EVAS_CFLAGS and EVAS_LIBS
dnl
AC_DEFUN(AM_PATH_EVAS,
[dnl
dnl Get the cflags and libraries from the evas-config script
dnl
AC_ARG_WITH(evas-prefix,[ --with-evas-prefix=PFX Prefix where Evas is installed (optional)],
evas_config_prefix="$withval", evas_config_prefix="")
AC_ARG_WITH(evas-exec-prefix,[ --with-evas-exec-prefix=PFX Exec prefix where Evas is installed (optional)],
evas_config_exec_prefix="$withval", evas_config_exec_prefix="")
AC_ARG_ENABLE(evastest, [ --disable-evastest Do not try to compile and run a test Evas program],
, enable_evastest=yes)
if test x$evas_config_exec_prefix != x ; then
evas_config_args="$evas_config_args --exec-prefix=$evas_config_exec_prefix"
if test x${EVAS_CONFIG+set} != xset ; then
EVAS_CONFIG=$evas_config_exec_prefix/bin/evas-config
fi
fi
if test x$evas_config_prefix != x ; then
evas_config_args="$evas_config_args --prefix=$evas_config_prefix"
if test x${EVAS_CONFIG+set} != xset ; then
EVAS_CONFIG=$evas_config_prefix/bin/evas-config
fi
fi
AC_PATH_PROG(EVAS_CONFIG, evas-config, no)
min_evas_version=ifelse([$1], ,0.0.3,$1)
AC_MSG_CHECKING(for Evas - version >= $min_evas_version)
no_evas=""
if test "$EVAS_CONFIG" = "no" ; then
no_evas=yes
else
EVAS_CFLAGS=`$EVAS_CONFIG $evas_config_args --cflags`
EVAS_LIBS=`$EVAS_CONFIG $evas_config_args --libs`
evas_config_major_version=`$EVAS_CONFIG $evas_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\1/'`
evas_config_minor_version=`$EVAS_CONFIG $evas_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\2/'`
evas_config_micro_version=`$EVAS_CONFIG $evas_config_args --version | \
sed 's/\([[0-9]]*\).\([[0-9]]*\).\([[0-9]]*\)/\3/'`
dnl **********************************************************************
dnl Evas cannot currently report its own version ; version info is not
dnl given in Evas.h
dnl Thus, the "enable_evastest" stuff is currently disabled, enable once
dnl you can determine the currently installed version by querying Evas[.h]
dnl
dnl K. 2001-01-23
dnl **********************************************************************
dnl if test "x$enable_evastest" = "xyes" ; then
dnl ac_save_CFLAGS="$CFLAGS"
dnl ac_save_LIBS="$LIBS"
dnl CFLAGS="$CFLAGS $EVAS_CFLAGS"
dnl LIBS="$EVAS_LIBS $LIBS"
dnl dnl
dnl dnl Now check if the installed Evas is sufficiently new. (Also sanity
dnl dnl checks the results of evas-config to some extent
dnl dnl
dnl rm -f conf.evastest
dnl AC_TRY_RUN([
dnl #include <Evas.h>
dnl #include <stdio.h>
dnl #include <stdlib.h>
dnl
dnl int
dnl main ()
dnl {
dnl int major, minor, micro;
dnl char *tmp_version;
dnl
dnl system ("touch conf.evastest");
dnl
dnl /* HP/UX 9 (%@#!) writes to sscanf strings */
dnl tmp_version = g_strdup("$min_evas_version");
dnl if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
dnl printf("%s, bad version string\n", "$min_evas_version");
dnl exit(1);
dnl }
dnl
dnl if ((evas_major_version != $evas_config_major_version) ||
dnl (evas_minor_version != $evas_config_minor_version) ||
dnl (evas_micro_version != $evas_config_micro_version))
dnl {
dnl printf("\n*** 'evas-config --version' returned %d.%d.%d, but Evas (%d.%d.%d)\n",
dnl $evas_config_major_version, $evas_config_minor_version, $evas_config_micro_version,
dnl evas_major_version, evas_minor_version, evas_micro_version);
dnl printf ("*** was found! If evas-config was correct, then it is best\n");
dnl printf ("*** to remove the old version of Evas. You may also be able to fix the error\n");
dnl printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
dnl printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
dnl printf("*** required on your system.\n");
dnl printf("*** If evas-config was wrong, set the environment variable EVAS_CONFIG\n");
dnl printf("*** to point to the correct copy of evas-config, and remove the file config.cache\n");
dnl printf("*** before re-running configure\n");
dnl }
dnl #if defined (EVAS_MAJOR_VERSION) && defined (EVAS_MINOR_VERSION) && defined (EVAS_MICRO_VERSION)
dnl else if ((evas_major_version != EVAS_MAJOR_VERSION) ||
dnl (evas_minor_version != EVAS_MINOR_VERSION) ||
dnl (evas_micro_version != EVAS_MICRO_VERSION))
dnl {
dnl printf("*** Evas header files (version %d.%d.%d) do not match\n",
dnl EVAS_MAJOR_VERSION, EVAS_MINOR_VERSION, EVAS_MICRO_VERSION);
dnl printf("*** library (version %d.%d.%d)\n",
dnl evas_major_version, evas_minor_version, evas_micro_version);
dnl }
dnl #endif /* defined (EVAS_MAJOR_VERSION) ... */
dnl else
dnl {
dnl if ((evas_major_version > major) ||
dnl ((evas_major_version == major) && (evas_minor_version > minor)) ||
dnl ((evas_major_version == major) && (evas_minor_version == minor) && (evas_micro_version >= micro)))
dnl {
dnl return 0;
dnl }
dnl else
dnl {
dnl printf("\n*** An old version of Evas (%d.%d.%d) was found.\n",
dnl evas_major_version, evas_minor_version, evas_micro_version);
dnl printf("*** You need a version of Evas newer than %d.%d.%d. The latest version of\n",
dnl major, minor, micro);
dnl printf("*** Evas is always available from ftp://ftp.enlightenment.org.\n");
dnl printf("***\n");
dnl printf("*** If you have already installed a sufficiently new version, this error\n");
dnl printf("*** probably means that the wrong copy of the evas-config shell script is\n");
dnl printf("*** being found. The easiest way to fix this is to remove the old version\n");
dnl printf("*** of Evas, but you can also set the EVAS_CONFIG environment to point to the\n");
dnl printf("*** correct copy of evas-config. (In this case, you will have to\n");
dnl printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
dnl printf("*** so that the correct libraries are found at run-time))\n");
dnl }
dnl }
dnl return 1;
dnl }
dnl ],, no_evas=yes,[echo $ac_n "cross compiling; assumed OK... $ac_c"])
dnl CFLAGS="$ac_save_CFLAGS"
dnl LIBS="$ac_save_LIBS"
dnl fi
dnl **********************************************************************
fi
if test "x$no_evas" = x ; then
AC_MSG_RESULT(yes)
ifelse([$2], , :, [$2])
else
AC_MSG_RESULT(no)
if test "$EVAS_CONFIG" = "no" ; then
echo "*** The evas-config script installed by Evas could not be found"
echo "*** If Evas was installed in PREFIX, make sure PREFIX/bin is in"
echo "*** your path, or set the EVAS_CONFIG environment variable to the"
echo "*** full path to evas-config."
else
if test -f conf.evastest ; then
:
else
echo "*** Could not run Evas test program, checking why..."
CFLAGS="$CFLAGS $EVAS_CFLAGS"
LIBS="$LIBS $EVAS_LIBS"
AC_TRY_LINK([
#include <Evas.h>
#include <stdio.h>
], [ return ((evas_major_version) || (evas_minor_version) || (evas_micro_version)); ],
[ echo "*** The test program compiled, but did not run. This usually means"
echo "*** that the run-time linker is not finding Evas or finding the wrong"
echo "*** version of Evas. If it is not finding Evas, you'll need to set your"
echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
echo "*** to the installed location Also, make sure you have run ldconfig if that"
echo "*** is required on your system"
echo "***"
echo "*** If you have an old version installed, it is best to remove it, although"
echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
echo "***"
echo "*** If you have a RedHat 5.0 system, you should remove the Evas package that"
echo "*** came with the system with the command"
echo "***"
echo "*** rpm --erase --nodeps evas evas-devel" ],
[ echo "*** The test program failed to compile or link. See the file config.log for the"
echo "*** exact error that occured. This usually means Evas was incorrectly installed"
echo "*** or that you have moved Evas since it was installed. In the latter case, you"
echo "*** may want to edit the evas-config script: $EVAS_CONFIG" ])
CFLAGS="$ac_save_CFLAGS"
LIBS="$ac_save_LIBS"
fi
fi
EVAS_CFLAGS=""
EVAS_LIBS=""
ifelse([$3], , :, [$3])
fi