]> mj.ucw.cz Git - libucw.git/commitdiff
Added building of a separate libucw package.
authorMartin Mares <mj@ucw.cz>
Sun, 16 Nov 2008 20:36:02 +0000 (21:36 +0100)
committerMartin Mares <mj@ucw.cz>
Sun, 16 Nov 2008 20:36:02 +0000 (21:36 +0100)
free/libs/README
free/libucw/Makefile [new file with mode: 0644]
free/libucw/README [new file with mode: 0644]
free/libucw/configure [new file with mode: 0755]
free/libucw/default.cfg [new file with mode: 0644]

index 1f643c2bca0a736a2ac60d8e11e8fd8727028cc0..23dae5c5a319607e23c4423cd75b781b6735703f 100644 (file)
@@ -2,6 +2,8 @@ Sherlock Holmes Libraries 3.99
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 (c) 1997--2008 Martin Mares <mj@ucw.cz>
 (c) 2000--2008 Robert Spalek <robert@ucw.cz>
+(c) 2006--2008 Pavel Charvat <pchar@ucw.cz>
+(c) 2008 Michal Vaner <vorner@ucw.cz>
 
 This package contains all libraries from the freely distributable version
 of the Sherlock Holmes search engine (see http://www.ucw.cz/holmes/).
@@ -12,5 +14,5 @@ See doc/install.html for build requirements and instructions.
 
 See doc/configure.html if you want to tweak build options.
 
-After you compile the library, you can issue `make docs' to build the API
-documentation. It will appear in run/doc.
+When you compile the libraries, an API documentation is also built. It will
+appear in run/doc/. (It is not complete yet, though.)
diff --git a/free/libucw/Makefile b/free/libucw/Makefile
new file mode 100644 (file)
index 0000000..627cf9c
--- /dev/null
@@ -0,0 +1,40 @@
+# Makefile for the stand-alone release of libucw
+# (c) 2008 Martin Mares <mj@ucw.cz>
+
+# The default target
+all: runtree libs api programs extras configs
+
+# Include configuration
+s=.
+-include obj/config.mk
+obj/config.mk:
+       @echo "You need to run configure first." && false
+
+BUILDSYS=$(s)/build
+
+# We will use the libucw build system
+include $(BUILDSYS)/Maketop
+
+# Install the build system
+include $(BUILDSYS)/Makefile
+
+# The UCW library
+include $(s)/ucw/Makefile
+
+# Build documentation by default?
+ifdef CONFIG_DOC
+all: docs
+endif
+
+libs: $(LIBUCW)
+
+# And finally the default rules of the build system
+include $(BUILDSYS)/Makebottom
+
+ifndef CONFIG_LOCAL
+install: all $(INSTALL_TARGETS)
+else
+install:
+       @echo "Nothing to install, this is a local build." && false
+endif
+.PHONY: install
diff --git a/free/libucw/README b/free/libucw/README
new file mode 100644 (file)
index 0000000..c8f67f0
--- /dev/null
@@ -0,0 +1,15 @@
+The UCW Library 3.99
+~~~~~~~~~~~~~~~~~~~~
+(c) 1997--2008 Martin Mares <mj@ucw.cz>
+(c) 2000--2008 Robert Spalek <robert@ucw.cz>
+(c) 2006--2008 Pavel Charvat <pchar@ucw.cz>
+(c) 2008 Michal Vaner <vorner@ucw.cz>
+
+See doc/using-libs for description of the library.
+
+See doc/install.html for build requirements and instructions.
+
+See doc/configure.html if you want to tweak build options.
+
+When you compile the libraries, an API documentation is also built. It will
+appear in run/doc/. (It is not complete yet, though.)
diff --git a/free/libucw/configure b/free/libucw/configure
new file mode 100755 (executable)
index 0000000..4f3303d
--- /dev/null
@@ -0,0 +1,35 @@
+#!/usr/bin/perl
+# Configure Script for Stand-Alone LibUCW
+# (c) 2008 Martin Mares <mj@ucw.cz>
+
+use warnings;
+use strict;
+
+our $srcdir;
+BEGIN {
+       my $pkgfile = "ucw/wildmatch.c";
+       if (!defined ($srcdir = $ENV{"SRCDIR"})) {
+               if (-f $pkgfile) {
+                       $srcdir=".";
+               } elsif ($0 =~ m@^(.*)/configure$@ && -f "$1/$pkgfile") {
+                       $srcdir=$1;
+               } else {
+                       die "Don't know how to find myself. Please set SRCDIR manually.\n";
+               }
+       }
+}
+
+use lib "$srcdir/ucw/perl/";
+use UCW::Configure;
+
+Init($srcdir, "default.cfg");
+Include "ucw/default.cfg";
+Log "### Configuring LibUCW " . Get("SHERLOCK_VERSION") . " with configuration " . Get("CONFIG") . "\n";
+Include Get("CONFIG");
+require UCW::Configure::Paths;
+require UCW::Configure::C;
+require UCW::Configure::LibUCW;
+require UCW::Configure::Doc;
+Finish();
+
+Log "\nConfigured, run `make' to build everything.\n";
diff --git a/free/libucw/default.cfg b/free/libucw/default.cfg
new file mode 100644 (file)
index 0000000..2c9527e
--- /dev/null
@@ -0,0 +1,20 @@
+# Default configuration of LibUCW (see ucw/default.cfg for an explanation)
+
+# Do we want shared or static libraries?
+Set("CONFIG_SHARED");
+
+# We want the public API
+Set("CONFIG_INSTALL_API");
+
+# Libucw should support files >2GB and threading
+Set("CONFIG_LARGE_FILES");
+Set("CONFIG_UCW_THREADS" => 1);
+
+# Libucw extensions
+Set("CONFIG_UCW_PERL" => 1);
+Set("CONFIG_UCW_PERL_MODULES" => 1);
+Set("CONFIG_UCW_SHELL_UTILS" => 1);
+Set("CONFIG_UCW_UTILS" => 1);
+
+# Return success
+1;