Skip to content

Commit

Permalink
Add Type1 subdirectory to lib/Xfonts, update build system accordingly.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorensp committed Jun 16, 2005
1 parent 01c8cee commit b96f539
Show file tree
Hide file tree
Showing 8 changed files with 93 additions and 8 deletions.
16 changes: 14 additions & 2 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -53,18 +53,30 @@ FC_DIR = src/fc
FC_LIB = src/fc/libfc.la
endif

if XFONT_TYPE1
TYPE1_DIR = src/Type1
TYPE1_LIB = src/Type1/libtype1.la
endif

# if XFONT_SPEEDO
# SPEEDO_DIR = src/Speedo
# SPEEDO_LIB = src/Speedo/libspeedo.la
# endif

UTIL_DIR = src/util
UTIL_LIB = src/util/libutil.la

STUBS_LIB = src/stubs/libstubs.la
STUBS_DIR = src/stubs

SUBDIRS=$(FONTFILE_DIR) $(FREETYPE_DIR) $(BITMAP_DIR) \
$(BUILTINS_DIR) $(FC_DIR) $(UTIL_DIR) $(STUBS_DIR) $(FONTCACHE_DIR)
$(BUILTINS_DIR) $(FC_DIR) $(UTIL_DIR) $(STUBS_DIR) $(FONTCACHE_DIR) \
$(TYPE1_DIR) $(SPEEDO_DIR)

libXfont_la_LIBADD = $(FREETYPE_LIB) $(BITMAP_LIB) $(BUILTINS_LIB) \
$(FC_LIB) $(FONTFILE_LIB) $(UTIL_LIB) $(STUBS_LIB) \
$(FREETYPE_LIBS) $(Z_LIBS) $(MATH_LIBS) $(FONTCACHE_LIB)
$(FREETYPE_LIBS) $(Z_LIBS) $(MATH_LIBS) $(FONTCACHE_LIB) \
$(TYPE_1_LIB) $(SPEEDO_LIB)

libXfont_la_SOURCES =

Expand Down
12 changes: 12 additions & 0 deletions autogen.sh
Original file line number Diff line number Diff line change
@@ -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 "$@"
7 changes: 7 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,12 @@ if test "x$XFONT_BITMAP" = xyes; then
AC_DEFINE(XFONT_BITMAP,1,[Support bitmap font files])
fi

AC_ARG_ENABLE(type1, [ --disable-type1 ], [XFONT_TYPE1=$enableval], [XFONT_TYPE1=yes])
AM_CONDITIONAL(XFONT_TYPE1, [test "x$XFONT_TYPE1" = xyes ])
if test "x$XFONT_TYPE1" = xyes; then
AC_DEFINE(XFONT_TYPE1,1,[Support Type 1 font files])
fi

if test "x$XFONT_BULITINS" = xyes -o "x$XFONT_BITMAP" = xyes -o "x$XFONT_FREETYPE" = xyes; then
XFONT_FONTFILE=yes
else
Expand Down Expand Up @@ -145,6 +151,7 @@ AC_OUTPUT([Makefile
src/FreeType/Makefile
src/builtins/Makefile
src/bitmap/Makefile
src/Type1/Makefile
src/fc/Makefile
src/util/Makefile
src/stubs/Makefile
Expand Down
55 changes: 55 additions & 0 deletions src/Type1/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
INCLUDES = \
-I${top_srcdir}/include/X11/fonts

noinst_LTLIBRARIES = libtype1.la

libtype1_la_SOURCES = \
afm.c \
AFM.h \
arith.c \
arith.h \
blues.h \
cidchar.c \
cluts.h \
curves.c \
curves.h \
digit.h \
fontfcn.c \
fontfcn.h \
fonts.h \
hdigit.h \
hints.c \
hints.h \
lines.c \
lines.h \
objects.c \
objects.h \
paths.c \
paths.h \
pictures.h \
range.h \
regions.c \
regions.h \
scanfont.c \
spaces.c \
spaces.h \
strokes.h \
t1funcs.c \
t1hdigit.h \
t1imager.h \
t1info.c \
t1intf.h \
t1io.c \
t1malloc.c \
t1snap.c \
t1stdio.h \
t1stub.c \
t1unicode.c \
t1unicode.h \
token.c \
token.h \
tokst.h \
trig.h \
type1.c \
util.c \
util.h
4 changes: 2 additions & 2 deletions src/Type1/objects.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
/*SHARED*/

/*END SHARED*/
#include <Xdefs.h>
#include <Xfuncproto.h>
#include <X11/Xdefs.h>
#include <X11/Xfuncproto.h>
#ifndef FONTMODULE
#include <stdlib.h>
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/Type1/t1funcs.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ from The Open Group.

#include "fntfilst.h"
#include "fontutil.h"
#include "FSproto.h"
#include <X11/fonts/FSproto.h>
#include "fontenc.h"
#include "t1unicode.h"

Expand Down
2 changes: 1 addition & 1 deletion src/Type1/t1info.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ from The Open Group.
#else
#include "xf86_ansic.h"
#endif
#include "FSproto.h"
#include <X11/fonts/FSproto.h>

#ifdef BUILDCID
#ifndef FONTMODULE
Expand Down
3 changes: 1 addition & 2 deletions src/Type1/t1io.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
#include <fcntl.h>
#include <unistd.h>
#else
#include "Xdefs.h" /* Bool declaration */
#include "Xmd.h" /* INT32 declaration */
#include "xf86_ansic.h"
#endif
Expand All @@ -67,7 +66,7 @@
#ifdef WIN32
#include <X11/Xw32defs.h>
#endif
#include "Xdefs.h"
#include <X11/Xdefs.h>

/* Constants and variables used in the decryption */
#define c1 ((unsigned short)52845)
Expand Down

0 comments on commit b96f539

Please # to comment.