Permalink
Browse files

initial autoconf support

  • Loading branch information...
1 parent 80e3b1c commit b94ae163630327e3ed99dbde978c2a566b92725d @oetiker committed Oct 7, 2011
Binary file not shown.
View
@@ -18,7 +18,7 @@ AUTOMAKE_OPTIONS = foreign
SUBDIRS = frontend backend
-EXTRA_DIST = COPYRIGHT LICENSE CHANGES setup/build-perl-modules.sh setup/sdbs.inc
+EXTRA_DIST = COPYRIGHT LICENSE CHANGES AUTHORS setup/build-perl-modules.sh setup/sdbs.inc
YEAR := $(shell date +%Y)
DATE := $(shell date +%Y-%m-%d)
@@ -17,7 +17,6 @@
AUTOMAKE_OPTIONS = foreign
ETC = etc/extopus.cfg.dist
-
BIN = bin/ep.pl bin/run.sh bin/siamdumper.pl
PM := $(shell find lib/ -name "*.pm")
@@ -38,13 +37,13 @@ dist_bin_SCRIPTS = $(BIN)
if BUILD_QOOXDOO_APP
-script/ep.js: $(shell find ../../frontend/source/class/ep -name "*.js")
- cd ../../frontend && $(QOOXDOO_PATH)/tool/bin/generator.py -m QOOXDOO_PATH:$(QOOXDOO_PATH) -m CACHE:./cache -m BUILD_PATH:../backend/public build
+public/script/ep.js: $(shell find ../frontend/source/class/ep -name "*.js")
+ cd ../frontend && $(QOOXDOO_PATH)/tool/bin/generator.py -m QOOXDOO_PATH:$(QOOXDOO_PATH) -m CACHE:./cache -m BUILD_PATH:../backend/public build
endif
install-exec-hook:
- [ x$PERL5LIB != x ] && cd "$(DESTDIR)$(bindir)" && $(PERL) -i -p -e 's{^#!.*perl.*}{#!$(PERL)}; s{.*# PERL5LIB}{use lib qw($(PERL5LIB)); # PERL5LIB}' $(dist_bin_SCRIPTS)
+ [ x$PERL5LIB != x ] && cd "$(DESTDIR)$(bindir)" && $(PERL) -i -p -e 's{^#!.*perl.*}{#!$(PERL)}; s{.*# PERL5LIB}{use lib qw($(PERL5LIB)); # PERL5LIB}' $(dist_bin_SCRIPTS)
dist-hook:
@@ -54,6 +53,6 @@ dist-hook:
install-data-local:
mkdir -p $(DESTDIR)$(HTDOCSDIR)
echo "#!/bin/sh" > $(DESTDIR)$(HTDOCSDIR)/index.fcgi.dist
- echo "export REMOCULAR_CONF=$(prefix)/etc/remocular.cfg" >> $(DESTDIR)$(HTDOCSDIR)/index.fcgi.dist
+ echo "export EXTOPUS_CONF=$(prefix)/etc/extopus.cfg" >> $(DESTDIR)$(HTDOCSDIR)/index.fcgi.dist
echo "$(prefix)/bin/ep.pl fastcgi" >> $(DESTDIR)$(HTDOCSDIR)/index.fcgi.dist
chmod +x $(DESTDIR)$(HTDOCSDIR)/index.fcgi.dist
View
@@ -83,7 +83,18 @@ if test "$enable_pkgonly" != yes; then
if test x$prfx = xNONE; then
prfx=$ac_default_prefix
fi
- for module in Mojolicious Mojo::Server::FastCGI Config::Grammar IPC::Run; do
+ for module in \
+ Mojolicious \
+ MojoX::Dispatcher::Qooxdoo::Jsonrpc \
+ Mojo::Server::FastCGI \
+ Config::Grammar \
+ SIAM \
+ DBD::SQLite \
+ JSON::XS \
+ Mojo::JSON::Any \
+ Excel::Writer::XLSX \
+ Spreadsheet::WriteExcel
+ do
AC_MSG_CHECKING([checking for perl module '$module'])
if ${PERL} -I$prfx/thirdparty/lib/perl5 -e 'use '$module 2>/dev/null ; then
AC_MSG_RESULT([Ok])
@@ -118,12 +129,8 @@ fi
AC_CONFIG_FILES([
Makefile
backend/Makefile
- backend/bin/Makefile
- backend/lib/Makefile
- backend/etc/Makefile
- backend/public/Makefile
frontend/Makefile
- ])
+])
AC_SUBST(VERSION)
@@ -2,15 +2,10 @@
. `dirname $0`/sdbs.inc
-if python -V 2>&1 | egrep -q '2.[5-9]'; then
-:
-else
- simplebuild http://www.python.org/ftp/python/2.7.1 Python-2.7.1.tgz
-fi
-
for module in \
Mojolicious \
MojoX::Dispatcher::Qooxdoo::Jsonrpc \
+ Mojo::Server::FastCGI \
Config::Grammar \
SIAM \
DBD::SQLite \

0 comments on commit b94ae16

Please sign in to comment.