EXTRA_DIST = \
autogen.sh \
xournal.glade \
- xournal.gladep
+ xournal.gladep \
+ maemo/xournal.desktop \
+ maemo/xournal.service
install-data-local:
@$(NORMAL_INSTALL)
fi \
fi
+if USE_HILDON
+desktopdir = $(datadir)/applications/hildon
+desktop_DATA = maemo/xournal.desktop
+
+servicedir = $(libdir)/dbus-1.0/services
+service_DATA = maemo/xournal.service
+endif
AM_PROG_CC_STDC
AC_HEADER_STDC
-pkg_modules="gtk+-2.0 >= 2.4.0 libgnomecanvas-2.0 >= 2.4.0 libgnomeprintui-2.2 >= 2.0.0"
+dnl set this var to NONE (PC) or other thing (Maemo)
+usehildon='NONE'
+if test "x$usehildon" != xNONE
+then
+ pkg_modules="gtk+-2.0 >= 2.4.0 libgnomecanvas-2.0 >= 2.4.0 libgnomeprintui-2.2 >= 2.0.0 hildon-libs libosso"
+else
+ pkg_modules="gtk+-2.0 >= 2.4.0 libgnomecanvas-2.0 >= 2.4.0 libgnomeprintui-2.2 >= 2.0.0"
+fi
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
AC_SUBST(PACKAGE_CFLAGS)
AC_SUBST(PACKAGE_LIBS)
+AM_CONDITIONAL(USE_HILDON, test "x$usehildon" != xNONE)
+
AC_OUTPUT([
Makefile
src/Makefile