-SUBDIRS = src tests
+if GLADEUI_FOUND
+SUBDIRS_GLADE = glade
+else
+SUBDIRS_GLADE =
+endif
+
+SUBDIRS = src tests $(SUBDIRS_GLADE)
ACLOCAL_AMFLAGS = -I m4
if [ "$NOCONFIGURE" = "" ]; then
$srcdir/configure "$@" || exit 1
- if [ "$1" = "--help" ]; then exit 0 else
- echo "Now type \`make\' to compile $PKG_NAME" || exit 1
+ if [ "$1" = "--help" ]; then
+ exit 0
+ else
+ echo "Now type \`make\' to compile $PKG_NAME" || exit 1
fi
else
echo "Skipping configure process."
AC_SUBST(GTKMAPSERVER_CFLAGS)
AC_SUBST(GTKMAPSERVER_LIBS)
+PKG_CHECK_EXISTS(gladeui-2.0 >= 3.10.0, [GLADEUI_FOUND=yes], [GLADEUI_FOUND=no])
+
+AM_CONDITIONAL(GLADEUI_FOUND, test $GLADEUI_FOUND = yes)
+
# Checks for header files.
AC_HEADER_STDC
src/Makefile
tests/Makefile
])
+
+if test $GLADEUI_FOUND = yes; then
+AC_CONFIG_FILES([
+ glade/Makefile
+ glade/icons/Makefile
+ glade/icons/hicolor/Makefile
+ glade/icons/hicolor/16x16/Makefile
+ glade/icons/hicolor/16x16/actions/Makefile
+ glade/icons/hicolor/22x22/Makefile
+ glade/icons/hicolor/22x22/actions/Makefile
+])
+fi
+
AC_OUTPUT
--- /dev/null
+SUBDIRS = icons
+
+glademodulesdir = `pkg-config --variable=moduledir gladeui-2.0`
+
+gladecatalogsdir = `pkg-config --variable=catalogdir gladeui-2.0`
+
+gladecatalogs_DATA = gtkmapserver.xml
+
+EXTRA_DIST = $(gladecatalogs_DATA)
+
+if PLATFORM_WIN32
+libmodulesext = -0.dll
+libmodulesextglade = .dll
+libmodulesdir = $(bindir)
+else
+libmodulesext = .so
+libmodulesextglade = $(libmodulesext)
+libmodulesdir = $(libdir)
+endif
+
+install-exec-hook:
+ cd $(glademodulesdir) && \
+ ln -s -f $(libmodulesdir)/libgtkmapserver$(libmodulesext) libgtkmapserver$(libmodulesextglade)
+
+uninstall-hook:
+ rm -f $(glademodulesdir)/libgtkmapserver$(libmodulesext)
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<glade-catalog name="gtkmapserver" library="gtkmapserver" depends="gtk+" domain="gtkmapserver" book="gtkmapserver">
+
+ <glade-widget-classes>
+ <glade-widget-class name="GtkMapserver" generic-name="gtkmapserver" title="Mapserver">
+ <properties>
+ <!--<property name="Separator" id="separator" />-->
+ </properties>
+ </glade-widget-class>
+ </glade-widget-classes>
+
+ <glade-widget-group name="gtk-control-display" title="Control and Display">
+ <glade-widget-class-ref name="GtkMapserver" />
+ </glade-widget-group>
+
+</glade-catalog>
--- /dev/null
+SUBDIRS = hicolor
--- /dev/null
+SUBDIRS = actions
--- /dev/null
+iconsdir = `pkg-config --variable=pixmapdir gladeui-2.0`/hicolor/16x16/actions
+
+icons_DATA = widget-gtkmapserver-gtkmapserver.png
+
+EXTRA_DIST = $(icons_DATA)
--- /dev/null
+SUBDIRS = actions
--- /dev/null
+iconsdir = `pkg-config --variable=pixmapdir gladeui-2.0`/hicolor/22x22/actions
+
+icons_DATA = widget-gtkmapserver-gtkmapserver.png
+
+EXTRA_DIST = $(icons_DATA)
--- /dev/null
+SUBDIRS = 16x16 22x22