Mercurial > MadButterfly
changeset 169:7ca25f18902f
Autotoolize MadButterfly.
author | sylee@eeepc |
---|---|
date | Fri, 31 Oct 2008 00:12:17 +0800 |
parents | 52f7566777f9 |
children | f3366433eee5 |
files | Makefile.am autogen.sh configure.ac libmbfly.pc.in src/Makefile.am |
diffstat | 5 files changed, 75 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile.am Fri Oct 31 00:12:17 2008 +0800 @@ -0,0 +1,4 @@ +SUBDIRS = src +pkgconfigdir = $(libdir)/pkgconfig +pkgconfig_DATA = libmbfly.pc +EXTRA_DIST = libmbfly.pc.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/autogen.sh Fri Oct 31 00:12:17 2008 +0800 @@ -0,0 +1,8 @@ +#!/bin/sh + +aclocal +autoheader +libtoolize --automake --copy +automake --add-missing --foreign +autoconf +rm -fr autom4te.cache
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/configure.ac Fri Oct 31 00:12:17 2008 +0800 @@ -0,0 +1,38 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.61) +AC_INIT([MadButterfly], [0.0], [http://www.assembla.com/spaces/MadButterfly]) +AC_CONFIG_HEADER([config.h]) +AM_INIT_AUTOMAKE([foreign]) + +# Checks for programs. +AC_PROG_CC +AM_PROG_LIBTOOL + +# Checks for libraries. +PKG_CHECK_MODULES([cairo], [cairo >= 1.6.0], , AC_MSG_ERROR([not found])) + +# Checks for header files. +AC_PATH_X +AC_HEADER_STDC +AC_CHECK_HEADERS([stdint.h stdlib.h string.h sys/time.h unistd.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIZE_T +AC_HEADER_TIME +AC_STRUCT_TM +AC_TYPE_UINT32_T +AC_TYPE_UINT64_T + +# Checks for library functions. +AC_FUNC_MALLOC +AC_FUNC_REALLOC +AC_FUNC_SELECT_ARGTYPES +AC_CHECK_FUNCS([gettimeofday memset select sqrt strdup]) + +AC_CONFIG_FILES([Makefile + libmbfly.pc + src/Makefile]) +AC_OUTPUT
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libmbfly.pc.in Fri Oct 31 00:12:17 2008 +0800 @@ -0,0 +1,11 @@ +prefix=@prefix@ +exec_prefix=@exec_prefix@ +libdir=@libdir@ +includedir=@includedir@ + +Name: libmbfly +Description: MadButterfly (http://www.assembla.com/spaces/MadButterfly) is a toolkit for GUI environment. It is designed for embedded system. It make GUI designers and programmers work seperately. Designer export their artifacts to files with SVG format. MadButterfly provides a tool to translate graphics in SVG into C code and a framework that programmer can manipulate graphics. It works like a Javascript programmer to manipulate DOM object. Programmers using MadButterfly manipulate objects corresponding to SVG tags to interact with users of application. +Version: @PACKAGE_VERSION@ +Requires: cairo >= 1.6.0 +Libs: -L${libdir} -lmbfly +Cflags: -I${includedir}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Makefile.am Fri Oct 31 00:12:17 2008 +0800 @@ -0,0 +1,14 @@ +include_HEADERS = animate.h mb.h mb_timer.h mb_types.h observer.h paint.h redraw_man.h shapes.h tools.h X_supp.h + +lib_LTLIBRARIES = libmbfly.la + +bin_PROGRAMS = X_main + +libmbfly_la_SOURCES = animate.c chgcolor.c coord.c event.c geo.c observer.c paint.c redraw_man.c rotate.c shape_path.c shape_rect.c shape_text.c shift.c timer.c timertool.c tools.c visibility.c X_supp.c +libmbfly_la_CPPFLAGS = @cairo_CFLAGS@ +libmbfly_la_LDFLAGS = @cairo_LIBS@ + +X_main_SOURCES = X_main.c +X_main_LDADD = $(top_builddir)/src/libmbfly.la +X_main_CPPFLAGS = @cairo_CFLAGS@ -I$(top_builddir)/src +X_main_LDFLAGS = @cairo_LIBS@