Permalink
Browse files

Begin autotoolization of plugins (addons done!)

  • Loading branch information...
hyperair committed Jun 14, 2009
1 parent b6cbf60 commit caa463a4c0aa7249200d5295e0cd23d86678d982
Showing with 77 additions and 0 deletions.
  1. +5 −0 Makefile.am
  2. +1 −0 addons/Makefile.am
  3. +7 −0 addons/build/plugin.m4
  4. +24 −0 addons/src/Makefile.am
  5. +4 −0 autogen.sh
  6. +36 −0 configure.ac
View
@@ -0,0 +1,5 @@
+ACLOCAL_AMFLAGS = -I m4 -I addons/build
+
+SUBDIRS = \
+ po \
+ addons
View
@@ -0,0 +1 @@
+SUBDIRS = src
View
@@ -0,0 +1,7 @@
+AC_DEFUN([GP_CHECK_ADDONS],
+[
+ AC_CONFIG_FILES([
+ addons/Makefile
+ addons/src/Makefile
+ ])
+])
View
@@ -0,0 +1,24 @@
+geanyplugins_LTLIBRARIES = \
+ addons.la
+
+addons_la_SOURCES = \
+ addons.h \
+ ao_doclist.h \
+ ao_openuri.h \
+ ao_systray.h \
+ tasks.h \
+ addons.c \
+ ao_doclist.c \
+ ao_openuri.c \
+ ao_systray.c \
+ tasks.c
+
+addons_la_CFLAGS = \
+ $(AM_CFLAGS) \
+ $(GEANY_CFLAGS) \
+ -DLOCALEDIR=\"$(LOCALEDIR)\"
+
+addons_la_LIBADD = \
+ $(GEANY_LIBS)
+
+addons_la_LDFLAGS = -module -avoid-version
View
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+intltoolize -cf
+autoreconf -vfi
View
@@ -0,0 +1,36 @@
+AC_PREREQ([2.63])
+AC_INIT([geany-plugins], [0.17])
+AM_INIT_AUTOMAKE([foreign dist-bzip2 tar-ustar subdir-objects])
+
+AC_CONFIG_SRCDIR([po/LINGUAS])
+AC_CONFIG_HEADERS([config.h])
+AC_CONFIG_MACRO_DIR([m4])
+
+AC_PROG_CC
+AC_PROG_LIBTOOL
+
+dnl i18n
+IT_PROG_INTLTOOL([0.35.0])
+GETTEXT_PACKAGE=geany-plugins
+AC_SUBST(GETTEXT_PACKAGE)
+AC_DEFINE_UNQUOTED(
+ [GETTEXT_PACKAGE],
+ ["$GETTEXT_PACKAGE"],
+ [The domain to use with gettext])
+AM_GLIB_GNU_GETTEXT
+LOCALEDIR="${datadir}/locale"
+AC_SUBST(LOCALEDIR)
+
+dnl common checks
+PKG_CHECK_MODULES([GEANY], [geany >= 0.16])
+geanypluginsdir=`${PKG_CONFIG} --variable=libdir geany}`/geany
+AC_SUBST([geanypluginsdir])
+
+dnl plugin checks
+GP_CHECK_ADDONS
+
+AC_CONFIG_FILES([
+ Makefile
+ po/Makefile.in
+])
+AC_OUTPUT

0 comments on commit caa463a

Please sign in to comment.