From 33a9906a504d894349311ad1932076e25ae49e85 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Wed, 25 Jul 2007 23:37:45 +0200 Subject: [PATCH] An unfinished experiment in making a separate release of all libraries. --- free/libs/Makefile | 32 ++++++++++++++++++++++++++++++++ free/libs/README | 3 +++ free/libs/configure | 32 ++++++++++++++++++++++++++++++++ free/libs/defconfig | 31 +++++++++++++++++++++++++++++++ 4 files changed, 98 insertions(+) create mode 100644 free/libs/Makefile create mode 100644 free/libs/README create mode 100755 free/libs/configure create mode 100644 free/libs/defconfig diff --git a/free/libs/Makefile b/free/libs/Makefile new file mode 100644 index 00000000..07745f67 --- /dev/null +++ b/free/libs/Makefile @@ -0,0 +1,32 @@ +# Makefile for the stand-alone release of Sherlock libraries +# (c) 2007 Martin Mares + +# The default target +all: runtree libs + +# Include configuration +s=. +-include obj/config.mk +obj/config.mk: + @echo "You need to run configure first." && false + +# We will use the libucw build system +include $(s)/build/Maketop + +# Set up names of common libraries (to avoid forward references in rules) +LIBLANG=$(o)/lang/liblang.pc +LIBCHARSET=$(o)/charset/libcharset.pc +LIBIMAGES=$(o)/images/libimages.pc +LIBSH=$(o)/sherlock/libsh.pc + +# Include makefiles of libraries we wish to use +include $(s)/lib/Makefile +include $(s)/charset/Makefile +include $(s)/lang/Makefile +include $(s)/images/Makefile +include $(s)/sherlock/Makefile + +libs: $(LIBUCW) $(LIBSH) $(LIBIMAGES) $(LIBCHARSET) $(LIBLANG) + +# And finally the default rules of the build system +include $(s)/build/Makebottom diff --git a/free/libs/README b/free/libs/README new file mode 100644 index 00000000..b24bded8 --- /dev/null +++ b/free/libs/README @@ -0,0 +1,3 @@ +README for the free release of libraries + + FIXME: Write diff --git a/free/libs/configure b/free/libs/configure new file mode 100755 index 00000000..0313d745 --- /dev/null +++ b/free/libs/configure @@ -0,0 +1,32 @@ +#!/usr/bin/perl +# Configure Script for Stand-Alone Sherlock Libraries +# (c) 2007 Martin Mares + +use warnings; +use strict; + +our $srcdir; +BEGIN { + my $pkgfile = "lib/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."; + } + } + require "$srcdir/lib/perl/Configure.pm"; + UCW::Configure::import UCW::Configure; +} + +Init($srcdir, "defconfig"); ## FIXME: Shouldn't we use default.cfg everywhere? +Include "sherlock/default.cfg"; +Log "### Configuring Sherlock Libraries " . Get("SHERLOCK_VERSION") . " with configuration " . Get("CONFIG") . "\n"; +Include Get("CONFIG"); +Include "lib/autoconf.cfg"; +Include "sherlock/autoconf.cfg"; +Finish(); + +Log "\nConfigured, run `make' to build everything.\n"; diff --git a/free/libs/defconfig b/free/libs/defconfig new file mode 100644 index 00000000..24d9eb75 --- /dev/null +++ b/free/libs/defconfig @@ -0,0 +1,31 @@ +# Default configuration of Sherlock libraries + +# Version string used by all Sherlock libraries +# FIXME! +Set("SHERLOCK_VERSION" => "0.0"); + +UnSet("CONFIG_LARGE_FILES"); + +# We want to build all libraries shared +Set("CONFIG_SHARED"); + +# Liblang settings +Set("CONFIG_LANG"); +Set("MAX_WORD_LEN" => 64); + +# Libimages settings +Set("CONFIG_IMAGES"); +Set("CONFIG_IMAGES_LIBJPEG"); +Set("CONFIG_IMAGES_LIBPNG"); +Set("CONFIG_IMAGES_LIBUNGIF"); +UnSet("CONFIG_IMAGES_LIBGIF"); +UnSet("CONFIG_IMAGES_LIBMAGICK"); + +# We want the public API +Set("CONFIG_INSTALL_API"); + +# FIXME +Set("DEFAULT_CONFIG" => "cf/library"); + +# Return success +1; -- 2.39.2