Adding autotools framework for the maemo frontend.
authorTobias Brunner <tobias@strongswan.org>
Fri, 4 Jun 2010 11:41:01 +0000 (13:41 +0200)
committerTobias Brunner <tobias@strongswan.org>
Thu, 14 Oct 2010 15:36:16 +0000 (17:36 +0200)
src/frontends/maemo/Makefile.am [new file with mode: 0644]
src/frontends/maemo/NEWS [new file with mode: 0644]
src/frontends/maemo/autogen.sh [new file with mode: 0755]
src/frontends/maemo/configure.ac [new file with mode: 0644]
src/frontends/maemo/data/Makefile.am [new file with mode: 0644]
src/frontends/maemo/src/Makefile.am [new file with mode: 0644]

diff --git a/src/frontends/maemo/Makefile.am b/src/frontends/maemo/Makefile.am
new file mode 100644 (file)
index 0000000..d01eb3c
--- /dev/null
@@ -0,0 +1,5 @@
+EXTRA_DIST = \
+       autogen.sh
+
+SUBDIRS = src data
+
diff --git a/src/frontends/maemo/NEWS b/src/frontends/maemo/NEWS
new file mode 100644 (file)
index 0000000..ffacf70
--- /dev/null
@@ -0,0 +1,4 @@
+strongswan-applet-1.0.0
+-----------------------
+
+- Initial release
diff --git a/src/frontends/maemo/autogen.sh b/src/frontends/maemo/autogen.sh
new file mode 100755 (executable)
index 0000000..6039708
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/sh
+libtoolize --force &&
+aclocal &&
+automake -a &&
+autoconf
diff --git a/src/frontends/maemo/configure.ac b/src/frontends/maemo/configure.ac
new file mode 100644 (file)
index 0000000..6d1d7ed
--- /dev/null
@@ -0,0 +1,54 @@
+AC_INIT(strongswan-applet, 1.0.0)
+AM_INIT_AUTOMAKE
+
+# Programs
+AC_PROG_CC
+AC_PROG_INSTALL
+AC_PROG_LIBTOOL
+
+# Headers
+AC_HEADER_STDC
+
+# Library dependencies
+PKG_CHECK_MODULES(HILDON, hildon-1 hildon-fm-2 hildon-control-panel libhildondesktop-1)
+AC_SUBST(HILDON_CFLAGS)
+AC_SUBST(HILDON_LIBS)
+
+PKG_CHECK_MODULES(DBUS, dbus-glib-1 >= 0.60)
+AC_SUBST(DBUS_CFLAGS)
+AC_SUBST(DBUS_LIBS)
+
+PKG_CHECK_MODULES(OSSO, osso-af-settings >= 0.8.5 libosso >= 0.9.17 gnome-vfs-2.0 >= 2.8.4.11 gnome-vfs-module-2.0 >= 2.8.4.11)
+AC_SUBST(OSSO_CFLAGS)
+AC_SUBST(OSSO_LIBS)
+
+# Application icon install directories
+icon_18x18dir=$datadir/icons/hicolor/18x18/hildon
+icon_24x24dir=$datadir/icons/hicolor/24x24/hildon
+icon_32x32dir=$datadir/icons/hicolor/32x32/hildon
+icon_48x48dir=$datadir/icons/hicolor/48x48/hildon
+icon_scalabledir=$datadir/icons/hicolor/scalable/hildon
+
+# Hildon control panel plugin install directories
+pluginlibdir=`$PKG_CONFIG hildon-control-panel --variable=pluginlibdir`
+plugindesktopentrydir=`$PKG_CONFIG hildon-control-panel --variable=plugindesktopentrydir`
+
+# Hildon status widget install directories
+statuslibdir=`$PKG_CONFIG libhildondesktop-1 --variable=hildondesktoplibdir`
+statusdesktopentrydir=`$PKG_CONFIG libhildondesktop-1 --variable=hildonstatusmenudesktopentrydir`
+
+AC_SUBST(icon_18x18dir)
+AC_SUBST(icon_24x24dir)
+AC_SUBST(icon_32x32dir)
+AC_SUBST(icon_48x48dir)
+AC_SUBST(icon_scalabledir)
+AC_SUBST(pluginlibdir)
+AC_SUBST(plugindesktopentrydir)
+AC_SUBST(statuslibdir)
+AC_SUBST(statusdesktopentrydir)
+
+AC_OUTPUT(
+         Makefile \
+         src/Makefile \
+         data/Makefile
+)
diff --git a/src/frontends/maemo/data/Makefile.am b/src/frontends/maemo/data/Makefile.am
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+
diff --git a/src/frontends/maemo/src/Makefile.am b/src/frontends/maemo/src/Makefile.am
new file mode 100644 (file)
index 0000000..8b13789
--- /dev/null
@@ -0,0 +1 @@
+