+2005-09-30 Guilhem BONNEFILLE <guilhem.bonnefille@laposte.net>
+ * configure.ac, src/Makefile.am (SUBDIRS): added auto-tools support for src/icons
+
2005-09-29
Alex Foobarian <foobarian@gmail.com>:
* Added support for waypoint symbols (changing, loading, saving), and a small number of icons.
My (Evan's) changes:
* Fix above v-vs-t patch to not crash on tracks without timestamp.
* Not show v-vs-t graph and/or elevation map if the necessary data isn't there.
+Guilhem BONNEFILLE <guilhem.bonnefille@laposte.net>'s changes
+ * bootstrap: new file to bootstrap auto-tools
+ * src/config.h (VIK_CONFIG_ALPHABETIZED_TRW): no more set via this file
+ * Makefile.am (bin_SCRIPTS): viking-remote added
+ * configure.ac: --enable-alphabetized-trw option added
2005-09-07
Autotools support by Guilhem Bonnefille.
# Process this file with autoconf to produce a configure script.
AC_PREREQ(2.59)
-AC_INIT(viking, 0.1.1pre1)
+AC_INIT(viking, 0.1.1pre2)
AM_INIT_AUTOMAKE()
dnl AC_CONFIG_SRCDIR([src/main.c])
dnl AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_PROG_MAKE_SET
+AC_CHECK_PROG([GDK_PIXBUF_CSOURCE],gdk-pixbuf-csource,[yes])
+if test $GDK_PIXBUF_CSOURCE != "yes"
+then
+ AC_MSG_ERROR([gdk-pixbuf-csource is needed but not found])
+fi
+
# Checks for libraries.
AM_PATH_GTK_2_0(2.2.0,,AC_MSG_ERROR(needs GTK+ 2.2.0),gthread)
AC_FUNC_STRTOD
AC_CHECK_FUNCS([bzero floor gethostbyname memset mkdir pow realpath socket sqrt strcasecmp strchr strdup strncasecmp strtol strtoul])
+# Expat
+
# Options
AC_ARG_ENABLE(alphabetized-trw, AC_HELP_STRING([--enable-alphabetized-trw],
[enable alphabetized track & waypoints (default is enable)]),
# Configuration
AC_CONFIG_FILES([Makefile
src/Makefile
+ src/icons/Makefile
doc/Makefile
doc/dev/Makefile])
AC_OUTPUT
# This is the Makefile for the viking gps viewer program.
# This file is licensed through the GPL version 2 or newer.
+SUBDIRS = icons
+
bin_PROGRAMS = viking
viking_SOURCES = main.c \
+ icons.h \
+ menu.xml.h \
viking.h globals.h mapcoord.h config.h \
viktrack.c viktrack.h \
vikwaypoint.c vikwaypoint.h \
INCLUDES = @GTK_CFLAGS@
LDADD = @GTK_LIBS@
AM_CFLAGS = -Wall -g
+
+icons.h: icons/*_h
+ echo "/* Generated file */" > icons.h
+ for file in icons/*_h ; do echo "#include \"$$file\"" >> icons.h ; done
+
+CLEANFILES = icons.h
\ No newline at end of file
--- /dev/null
+WAYPOINT_ICONS = \
+ wp_camp.png \
+ wp_car.png \
+ wp_deer.png \
+ wp_flag.png \
+ wp_geocache.png \
+ wp_geocache_fnd.png \
+ wp_house.png \
+ wp_wpt_dot.png
+
+ICONS = \
+ addtr_18.png \
+ addwp_18.png \
+ edtr_18.png \
+ edwp_18.png \
+ geomove_18.png \
+ geozoom_18.png \
+ mapdl_18.png \
+ ruler_18.png \
+ showpic_18.png \
+ zoom_18.png
+
+EXTRA_DIST = $(ICONS) $(WAYPOINT_ICONS)
+
+BUILT_SOURCES = $(EXTRA_DIST:%.png=%.png_h)
+CLEANFILES = $(BUILT_SOURCES)
+
+SUFFIXES = .png_h .png
+
+.png.png_h:
+ gdk-pixbuf-csource --name="`basename $< .png`" --struct $< > $@
\ No newline at end of file