diff options
author | Kevin E Martin <kem@kem.org> | 2005-06-30 22:28:08 +0000 |
---|---|---|
committer | Kevin E Martin <kem@kem.org> | 2005-06-30 22:28:08 +0000 |
commit | 70e2335cc8e9f1c377a70880696ee2d83558456e (patch) | |
tree | b6a5cca21fe5fdd828fd865757387fe0f1359bc7 | |
parent | 8dbbdb2b6491edd6a0ec957d3a742802d2946fa3 (diff) | |
download | xorg-font-util-70e2335cc8e9f1c377a70880696ee2d83558456e.tar.gz |
Initial build system files for font module
-rw-r--r-- | AUTHORS | 0 | ||||
-rw-r--r-- | COPYING | 33 | ||||
-rw-r--r-- | ChangeLog | 0 | ||||
-rw-r--r-- | INSTALL | 0 | ||||
-rw-r--r-- | Makefile.am | 57 | ||||
-rw-r--r-- | NEWS | 0 | ||||
-rw-r--r-- | README | 0 | ||||
-rwxr-xr-x | autogen.sh | 12 | ||||
-rw-r--r-- | configure.ac | 34 | ||||
-rw-r--r-- | fontutil.m4 | 51 |
10 files changed, 187 insertions, 0 deletions
@@ -0,0 +1,33 @@ +Copyright (c) 2003 The NetBSD Foundation, Inc. +All rights reserved. + +This code is derived from software contributed to The NetBSD Foundation +by Ben Collver <collver1@attbi.com>. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. All advertising materials mentioning features or use of this software + must display the following acknowledgement: + This product includes software developed by the NetBSD + Foundation, Inc. and its contributors. +4. Neither the name of The NetBSD Foundation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS +``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS +BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR +CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF +SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS +INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN +CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) +ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE +POSSIBILITY OF SUCH DAMAGE. diff --git a/ChangeLog b/ChangeLog new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/ChangeLog diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..3bc9ac8 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,57 @@ +# Copyright 2005 Red Hat, Inc. +# +# Permission to use, copy, modify, distribute, and sell this software +# and its documentation for any purpose is hereby granted without +# fee, provided that the above copyright notice appear in all copies +# and that both that copyright notice and this permission notice +# appear in supporting documentation, and that the name of Red Hat +# not be used in advertising or publicity pertaining to distribution +# of the software without specific, written prior permission. Red +# Hat makes no representations about the suitability of this software +# for any purpose. It is provided "as is" without express or implied +# warranty. +# +# RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN +# NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR +# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +# OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +# NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +# CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +bin_PROGRAMS = ucs2any bdftruncate + +ucs2any_SOURCES = ucs2any.c + +bdftruncate_SOURCES = bdftruncate.pl + +bdftruncate$(EXEEXT): $(bdftruncate_SOURCES) + @rm -f $@ + cp $< $@ + +mapfilesdir = $(libdir)/X11/fonts/util +mapfiles_DATA = \ + map-ISO8859-1 \ + map-ISO8859-2 \ + map-ISO8859-3 \ + map-ISO8859-4 \ + map-ISO8859-5 \ + map-ISO8859-6 \ + map-ISO8859-7 \ + map-ISO8859-8 \ + map-ISO8859-9 \ + map-ISO8859-10 \ + map-ISO8859-11 \ + map-ISO8859-13 \ + map-ISO8859-14 \ + map-ISO8859-15 \ + map-ISO8859-16 \ + map-JISX0201.1976-0 \ + map-KOI8-R + +man1_MANS = bdftruncate.man ucs2any.man + +aclocaldir = $(datadir)/aclocal +aclocal_DATA = fontutil.m4 + +EXTRA_DIST = $(mapfiles_DATA) $(man1_MANS) autogen.sh $(aclocal_DATA) diff --git a/autogen.sh b/autogen.sh new file mode 100755 index 0000000..904cd67 --- /dev/null +++ b/autogen.sh @@ -0,0 +1,12 @@ +#! /bin/sh + +srcdir=`dirname $0` +test -z "$srcdir" && srcdir=. + +ORIGDIR=`pwd` +cd $srcdir + +autoreconf -v --install || exit 1 +cd $ORIGDIR || exit $? + +$srcdir/configure --enable-maintainer-mode "$@" diff --git a/configure.ac b/configure.ac new file mode 100644 index 0000000..509580b --- /dev/null +++ b/configure.ac @@ -0,0 +1,34 @@ +dnl Copyright 2005 Red Hat, Inc. +dnl +dnl Permission to use, copy, modify, distribute, and sell this software +dnl and its documentation for any purpose is hereby granted without +dnl fee, provided that the above copyright notice appear in all copies +dnl and that both that copyright notice and this permission notice +dnl appear in supporting documentation, and that the name of Red Hat +dnl not be used in advertising or publicity pertaining to distribution +dnl of the software without specific, written prior permission. Red +dnl Hat makes no representations about the suitability of this software +dnl for any purpose. It is provided "as is" without express or implied +dnl warranty. +dnl +dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN +dnl NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR +dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +dnl OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +dnl CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +dnl +dnl Process this file with autoconf to create configure. + +AC_PREREQ([2.57]) +AC_INIT(font-util, [7.0], [xorg@freedestkop.org], font-util) +AM_INIT_AUTOMAKE([foreign dist-bzip2]) +AM_MAINTAINER_MODE + +AM_CONFIG_HEADER(config.h) + +AC_PROG_CC +AC_PROG_INSTALL + +AC_OUTPUT([Makefile]) diff --git a/fontutil.m4 b/fontutil.m4 new file mode 100644 index 0000000..9446703 --- /dev/null +++ b/fontutil.m4 @@ -0,0 +1,51 @@ +dnl Copyright 2005 Red Hat, Inc. +dnl +dnl Permission to use, copy, modify, distribute, and sell this software +dnl and its documentation for any purpose is hereby granted without +dnl fee, provided that the above copyright notice appear in all copies +dnl and that both that copyright notice and this permission notice +dnl appear in supporting documentation, and that the name of Red Hat +dnl not be used in advertising or publicity pertaining to distribution +dnl of the software without specific, written prior permission. Red +dnl Hat makes no representations about the suitability of this software +dnl for any purpose. It is provided "as is" without express or implied +dnl warranty. +dnl +dnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN +dnl NO EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR +dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS +dnl OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, +dnl NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN +dnl CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +dnl +dnl Process this file with autoconf to create configure. + +# UTILFONT_MAPFILES() +# ------------------- +# Adds --with-mapfiles=path and verifies map file location. If no explicit +# path is given, then it tries to find an appropriate one by first falling +# back to $prefix and finally to $x_libraries. If no prefix is given, then +# it tries /usr/X11R6. +AC_DEFUN([UTILFONT_MAPFILES],[ +AC_PATH_X +AC_ARG_WITH(mapfiles, [ --with-mapfiles=path path to mapfiles], + TMPFUDIR=$with_mapfiles, + TMPFUDIR=) +AC_MSG_CHECKING([for font map files]) +if ! test -e "$TMPFUDIR/map-ISO8859-1" ; then + TMPPFX=`echo $prefix` + if test "$prefix" = "NONE" ; then + TMPPFX="/usr/X11R6" + fi + TMPFUDIR="$TMPPFX/lib/X11/fonts/util" + if ! test -e "$TMPFUDIR/map-ISO8859-1" ; then + TMPFUDIR="$x_libraries/X11/fonts/util" + if ! test -e "$TMPFUDIR/map-ISO8859-1" ; then + AC_MSG_ERROR([Not found]) + fi + fi +fi +AC_MSG_RESULT($TMPFUDIR) +$1_PATH="$TMPFUDIR" +]) |