--- /dev/null
+###############################################################################
+# #
+# IPFire.org - A linux based firewall #
+# Copyright (C) 2007, 2008 Michael Tremer & Christian Schmidt #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include $(PKGROOT)/Include
+
+PKG_NAME = autogen
+PKG_VER = 5.9.4
+PKG_REL = 0
+
+PKG_MAINTAINER =
+PKG_GROUP = Development/Tools
+PKG_URL = http://www.gnu.org/software/autogen/
+PKG_LICENSE = GPLv3
+PKG_SUMMARY = Automated text file generator.
+
+PKG_DEPS += guile libxml2
+
+define PKG_DESCRIPTION
+ AutoGen is a tool designed to simplify the creation and maintenance of \
+ programs that contain large amounts of repetitious text. It is especially \
+ valuable in programs that have several blocks of text that must be kept \
+ synchronised.
+endef
+
+PKG_TARBALL = $(THISAPP).tar.gz
+
+define STAGE_TEST
+ cd $(DIR_APP) && make check
+endef
--- /dev/null
+diff -urNp autogen-5.9.4.orig/autoopts/autoopts-config.in autogen-5.9.4/autoopts/autoopts-config.in
+--- autogen-5.9.4.orig/autoopts/autoopts-config.in 2007-12-24 02:33:16.000000000 +0530
++++ autogen-5.9.4/autoopts/autoopts-config.in 2008-02-25 00:38:27.000000000 +0530
+@@ -17,17 +17,17 @@
+ includedir="@includedir@"
+ exec_prefix="@exec_prefix@"
+ bindir="@bindir@"
+- libdir="@libdir@"
+- ldopts="@AG_LDFLAGS@"
++ libdir=""
++ ldopts=""
+ exeext="@EXEEXT@"
+ version="@AO_CURRENT@:@AO_REVISION@:@AO_AGE@"
+ dotver="@AO_CURRENT@.@AO_REVISION@.@AO_AGE@"
+ pkgdatadir="${datadir}/${package}"
+ autogen="${bindir}/autogen${exeext}"
+- ldflags="-L${libdir} -lopts"
++ ldflags="-lopts"
+ libs="${ldflags}"
+ libsrc="${pkgdatadir}/libopts-${dotver}.tar.gz"
+- static_libs="${libdir}/libopts.a"
++ static_libs=""
+ cflags="-I${includedir}"
+ test -n "${ldopts}" && ldflags="${ldopts}${libdir} ${ldflags}"
+ test "${includedir}" = "/usr/include" && cflags=""
--- /dev/null
+diff -urNp autogen-5.9.4.orig/autoopts/mk-autoopts-pc.in autogen-5.9.4/autoopts/mk-autoopts-pc.in
+--- autogen-5.9.4.orig/autoopts/mk-autoopts-pc.in 2007-12-24 02:33:16.000000000 +0530
++++ autogen-5.9.4/autoopts/mk-autoopts-pc.in 2008-02-24 21:21:13.000000000 +0530
+@@ -18,7 +18,6 @@
+ exec_prefix="@exec_prefix@"
+ bindir="@bindir@"
+ libdir="@libdir@"
+- ldopts="@AG_LDFLAGS@"
+ exeext="@EXEEXT@"
+ version="@AO_CURRENT@:@AO_REVISION@:@AO_AGE@"
+ dotver="@AO_CURRENT@.@AO_REVISION@.@AO_AGE@"