discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

DGS patches


From: Dennis Leeuw
Subject: DGS patches
Date: Wed, 07 Feb 2001 15:17:16 +0100

Hi all,

Attached I have two patches for DGS (from the gs directory) that patches
DGS for installation into the GNUstep tree.
Before compilation you first need to do:

mkdir -p $GNUSTEP_SYSTEM_ROOT/Developer/Examples/DGS

That's the only one I can't seem to solve.

Install the ghostscript fonts in $GNUSTEP_SYSTEM_ROOT/Library/Fonts

The texteroids works, so I assume everything will work fine. No time
right now to do more extensive testing.

I'll describe the complete install in a new version of the Build Guide.


Greetings,

Dennis.
#    Copyright (C) 1997, 1998 Aladdin Enterprises.  All rights reserved.
# 
# This file is part of GNU Ghostscript.
# 
# GNU Ghostscript is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility to
# anyone for the consequences of using it or for whether it serves any
# particular purpose or works at all, unless he says so in writing.  Refer to
# the GNU General Public License for full details.
# 
# Everyone is granted permission to copy, modify and redistribute GNU
# Ghostscript, but only under the conditions described in the GNU General
# Public License.  A copy of this license is supposed to have been given to
# you along with GNU Ghostscript so you can know your rights and
# responsibilities.  It should be in a file named COPYING.  Among other
# things, the copyright notice and this notice must be preserved on all
# copies.
# 
# Aladdin Enterprises is not affiliated with the Free Software Foundation or
# the GNU Project.  GNU Ghostscript, as distributed by Aladdin Enterprises,
# does not depend on any other GNU software.

# $Id: unix-gcc.mak.in,v 1.13 1999/12/28 09:38:41 masata-y Exp $
# makefile for Unix/gcc/X11 configuration.

# ------------------------------- Options ------------------------------- #

####### The following are the only parts of the file you should need to edit.

# Define the source, generated intermediate file, and object directories
# for the graphics library (GL) and the PostScript/PDF interpreter (PS).

GLSRCDIR=.
GLGENDIR=./obj
GLOBJDIR=./obj
PSSRCDIR=.
PSGENDIR=./obj
PSOBJDIR=./obj

# Do not edit the next group of lines.

#include $(COMMONDIR)/gccdefs.mak
#include $(COMMONDIR)/unixdefs.mak
#include $(COMMONDIR)/generic.mak
GLSRC=$(GLSRCDIR)/
include $(GLSRC)version.mak
PSSRC=$(PSSRCDIR)/

# ------ Generic options ------ #

# Define the installation commands and target directories for
# executables and files.  The commands are only relevant to `make install';
# the directories also define the default search path for the
# initialization files (gs_*.ps) and the fonts.

# If your system has installbsd, change install to installbsd in the next line.
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@

prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
scriptdir = $(exec_prefix)/bin
mandir = @mandir@
man1ext = 1
man1dir = $(mandir)/man$(man1ext)
datadir = @datadir@
gsdir = $(GNUSTEP_SYSTEM_ROOT)/Library
gsdatadir = $(gsdir)/DGS

docdir=$(GNUSTEP_SYSTEM_ROOT)/Documentation/html/dgs
exdir=$(GNUSTEP_SYSTEM_ROOT)/Developer/Examples/DGS
GS_DOCDIR=$(docdir)

# Define the default directory/ies for the runtime
# initialization and font files.  Separate multiple directories with a :.

GS_LIB_DEFAULT=$(gsdatadir):$(gsdir)/Fonts:$(GNUSTEP_LOCAL_ROOT)/Library/Fonts:$(GNUSTEP_NETWORK_ROOT)/Library/Fonts

# Define whether or not searching for initialization files should always
# look in the current directory first.  This leads to well-known security
# and confusion problems, but users insist on it.
# NOTE: this also affects searching for files named on the command line:
# see the "File searching" section of Use.htm for full details.
# Because of this, setting SEARCH_HERE_FIRST to 0 is not recommended.

SEARCH_HERE_FIRST=1

# Define the name of the interpreter initialization file.
# (There is no reason to change this.)

GS_INIT=gs_init.ps

# Choose generic configuration options.

# -DDEBUG
#       includes debugging features (-Z switch) in the code.
#         Code runs substantially slower even if no debugging switches
#         are set.
# -DNOPRIVATE
#       makes private (static) procedures and variables public,
#         so they are visible to the debugger and profiler.
#         No execution time or space penalty.
#
# -DDISPLAYGHOSTSCRIPT
#       enables the Display GhostScript code.  Some (little) performance
#         penalty for non-DGS use, as well as space penalty.
#         (note: changes some structures, so must be consistantly set)

#GENOPT=-DDEBUG
GENOPT=-DDISPLAYGHOSTSCRIPT -DVERSION=\"@address@hidden" 
-DGS_VERSION=\"@address@hidden"

# Define the name of the executable file.

address@hidden@

# Define the directories for debugging and profiling binaries, relative to
# the standard binaries.

DEBUGRELDIR=../debugobj
PGRELDIR=../pgobj

# Define the directory where the IJG JPEG library sources are stored,
# and the major version of the library that is stored there.
# You may need to change this if the IJG library version changes.
# See jpeg.mak for more information.

JSRCDIR=jpeg
JVERSION=6

# Choose whether to use a shared version of the IJG JPEG library (-ljpeg).
# DON'T DO THIS. If you do, the resulting executable will not be able to
# read some PostScript files containing JPEG data, because Adobe chose to
# define PostScript's JPEG capabilities in a way that is slightly
# incompatible with the JPEG standard.  See Make.htm for more details.

# DON'T SET THIS TO 1!  See the comment just above.
SHARE_JPEG=0
JPEG_NAME=jpeg

# Define the directory where the PNG library sources are stored,
# and the version of the library that is stored there.
# You may need to change this if the libpng version changes.
# See libpng.mak for more information.

PSRCDIR=libpng
PVERSION=96

# Choose whether to use a shared version of the PNG library, and if so,
# what its name is.
# See gs.mak and Make.htm for more information.

address@hidden@
LIBPNG_NAME=png

# Define the directory where the zlib sources are stored.
# See zlib.mak for more information.

ZSRCDIR=zlib

# Choose whether to use a shared version of the zlib library, and if so,
# what its name is (usually libz, but sometimes libgz).
# See gs.mak and Make.htm for more information.

address@hidden@
#ZLIB_NAME=gz
ZLIB_NAME=z

# Define how to build the library archives.  (These are not used in any
# standard configuration.)

AR=ar
ARFLAGS=qc
address@hidden@

# Define the configuration ID.  Read gs.mak carefully before changing this.

CONFIG=

# ------ Platform-specific options ------ #

# Define the name of the C compiler.

address@hidden@

# Define the name of the linker for the final link step.
# Normally this is the same as the C compiler.

CCLD=$(CC)

# Define the default gcc flags.
# Note that depending whether or not we are running a version of gcc with
# the 2.7.0-2.7.2 optimizer bug, either "-Dconst=" or
# "-Wcast-qual -Wwrite-strings" is automatically included.

GCFLAGS=-Wall -Wcast-align -Wstrict-prototypes -Wwrite-strings -fno-common

# Define the added flags for standard, debugging, and profiling builds.

CFLAGS_STANDARD=-O2
CFLAGS_DEBUG=-g -O
CFLAGS_PROFILE=-pg -O2

# Define the other compilation flags.  Add at most one of the following:
#       -DBSD4_2 for 4.2bsd systems.
#       -DSYSV for System V or DG/UX.
#       -DSYSV -D__SVR3 for SCO ODT, ISC Unix 2.2 or before,
#          or any System III Unix, or System V release 3-or-older Unix.
#       -DSVR4 -DSVR4_0 (not -DSYSV) for System V release 4.0.
#       -DSVR4 (not -DSYSV) for System V release 4.2 (or later) and Solaris 2.
# XCFLAGS can be set from the command line.
# We don't include -ansi, because this gets in the way of the platform-
#   specific stuff that <math.h> typically needs; nevertheless, we expect
#   gcc to accept ANSI-style function prototypes and function definitions.
address@hidden@ @TCPD@

CFLAGS=$(CFLAGS_STANDARD) $(GCFLAGS) $(XCFLAGS)

# Define platform flags for ld.
# SunOS 4.n may need -Bstatic.
# Solaris 2.6 (and possibly some other versions) with any of the SHARE_
# parameters set to 1 may need
#       -R /usr/local/xxx/lib:/usr/local/lib
# giving the full path names of the shared library directories.
# XLDFLAGS can be set from the command line.
address@hidden@

LDFLAGS=$(XLDFLAGS) -fno-common

# Define any extra libraries to link into the executable.
# ISC Unix 2.2 wants -linet.
# SCO Unix needs -lsocket if you aren't including the X11 driver.
# SVR4 may need -lnsl.
# (Libraries required by individual drivers are handled automatically.)

address@hidden@ @LIBWRAP_LIBS@


# Define the include switch(es) for the glib header files.

address@hidden@

# Define the include switch(es) for the DPS header files.
# DPS/include is the normal public include files but we need access to
# some of the private header files as well, so DPS/lib/dps is the source
# directory for the DPSClient library.

DPSINCLUDE=-I../DPS/include -I../DPS/lib/dps

# Define the include switch(es) for the X11 header files.
# This can be null if handled in some other way (e.g., the files are
# in /usr/include, or the directory is supplied by an environment variable);
# in particular, SCO Xenix, Unix, and ODT just want
#XINCLUDE=
# Note that x_.h expects to find the header files in $(XINCLUDE)/X11,
# not in $(XINCLUDE).

address@hidden@

# Define the directory/ies and library names for the X11 library files.
# XLIBDIRS is for ld and should include -L; XLIBDIR is for LD_RUN_PATH
# (dynamic libraries on SVR4) and should not include -L.
# Newer SVR4 systems can use -R in XLIBDIRS rather than setting XLIBDIR.
# Both can be null if these files are in the default linker search path;
# in particular, SCO Xenix, Unix, and ODT just want
#XLIBDIRS=
# Solaris and other SVR4 systems with dynamic linking probably want
#XLIBDIRS=-L/usr/openwin/lib -R/usr/openwin/lib
# X11R6 (on any platform) may need
#XLIBS=Xt SM ICE Xext X11

#XLIBDIRS=-L/usr/local/X/lib
address@hidden@
XLIBDIR=
XLIBS=Xt @X_PRE_LIB_NAMES@ Xext X11

# Define whether this platform has floating point hardware:
#       FPU_TYPE=2 means floating point is faster than fixed point.
# (This is the case on some RISCs with multiple instruction dispatch.)
#       FPU_TYPE=1 means floating point is at worst only slightly slower
# than fixed point.
#       FPU_TYPE=0 means that floating point may be considerably slower.
#       FPU_TYPE=-1 means that floating point is always much slower than
# fixed point.

FPU_TYPE=1

# ------ Devices and features ------ #

# Choose the language feature(s) to include.  See gs.mak for details.

#FEATURE_DEVS=psl3.dev pdf.dev dpsnext.dev pipe.dev rasterop.dev
FEATURE_DEVS=dpsx.dev pipe.dev dpsnext.dev

# Choose whether to compile the .ps initialization files into the executable.
# See gs.mak for details.

COMPILE_INITS=0

# Choose whether to store band lists on files or in memory.
# The choices are 'file' or 'memory'.

#****** Banding is not supported.
#BAND_LIST_STORAGE=file

# Choose which compression method to use when storing band lists in memory.
# The choices are 'lzw' or 'zlib'.  lzw is not recommended, because the
# LZW-compatible code in Ghostscript doesn't actually compress its input.

#****** Banding is not supported.
#BAND_LIST_COMPRESSOR=zlib

# Choose the implementation of file I/O: 'stdio', 'fd', or 'both'.
# See gs.mak and sfxfd.c for more details.

FILE_IMPLEMENTATION=stdio

# Choose the device(s) to include.  See devs.mak for details,
# devs.mak and contrib.mak for the list of available devices.

DEVICE_DEVS=x11.dev x11alpha.dev x11cmyk.dev x11gray2.dev x11gray4.dev 
x11mono.dev
DEVICE_DEVS1=
DEVICE_DEVS2=
DEVICE_DEVS3=
DEVICE_DEVS4=
DEVICE_DEVS5=
DEVICE_DEVS6=
DEVICE_DEVS7=
DEVICE_DEVS8=
DEVICE_DEVS9=
DEVICE_DEVS10=
DEVICE_DEVS11=
DEVICE_DEVS12=
DEVICE_DEVS13=
DEVICE_DEVS14=
DEVICE_DEVS15=

# ---------------------------- End of options --------------------------- #

# Define the name of the partial makefile that specifies options --
# used in dependencies.

MAKEFILE=$(GLSRC)unix-gcc.mak

# Define the ANSI-to-K&R dependency.  There isn't one, but we do have to
# detect whether we're running a version of gcc with the const optimization
# bug.

AK=$(GLGENDIR)/cc.tr

# Define the compilation rules and flags.

CCFLAGS=$(GENOPT) $(CFLAGS)
CC_=$(CC) `cat $(AK)` $(CCFLAGS)
CCAUX=$(CC)
#We can't use -fomit-frame-pointer with -pg....
#CC_LEAF=$(CC_)
CC_LEAF=$(CC_) -fomit-frame-pointer

# ---------------- End of platform-specific section ---------------- #

include $(GLSRC)unixhead.mak
include $(GLSRC)gs.mak
include $(GLSRC)lib.mak
include $(PSSRC)int.mak
include $(GLSRC)jpeg.mak
# zlib.mak must precede libpng.mak
include $(GLSRC)zlib.mak
include $(GLSRC)libpng.mak
include $(GLSRC)devs.mak
include $(GLSRC)contrib.mak
include $(GLSRC)unixtail.mak
include $(GLSRC)unix-end.mak
include $(GLSRC)unixinst.mak

include $(GLSRC)maint.mak

# This has to come last so it won't be taken as the default target.
$(AK): 
        if test ! -d $(GLGENDIR); then mkdir $(GLGENDIR); fi
        if ( gcc --version | grep "2.7.[01]" >/dev/null || test `gcc --version` 
= 2.7.2 ); then echo -Dconst= >$(AK); else echo -Wcast-qual -Wwrite-strings 
>$(AK); fi



#    Copyright (C) 1997, 1998 Aladdin Enterprises.  All rights reserved.
# 
# This file is part of GNU Ghostscript.
# 
# GNU Ghostscript is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility to
# anyone for the consequences of using it or for whether it serves any
# particular purpose or works at all, unless he says so in writing.  Refer to
# the GNU General Public License for full details.
# 
# Everyone is granted permission to copy, modify and redistribute GNU
# Ghostscript, but only under the conditions described in the GNU General
# Public License.  A copy of this license is supposed to have been given to
# you along with GNU Ghostscript so you can know your rights and
# responsibilities.  It should be in a file named COPYING.  Among other
# things, the copyright notice and this notice must be preserved on all
# copies.
# 
# Aladdin Enterprises is not affiliated with the Free Software Foundation or
# the GNU Project.  GNU Ghostscript, as distributed by Aladdin Enterprises,
# does not depend on any other GNU software.

# $Id: unixinst.mak,v 1.4 2000/04/10 21:19:18 masata-y Exp $
# Partial makefile common to all Unix and Desqview/X configurations,
# containing the `install' targets.
# This is the very last part of the makefile for these configurations.

install: install-exec install-scripts install-data

# The sh -c in the rules below is required because Ultrix's implementation
# of sh -e terminates execution of a command if any error occurs, even if
# the command traps the error with ||.

# We include mkdirs for datadir, gsdir, and gsdatadir in all 3 install
# rules, just in case bindir or scriptdir is a subdirectory of any of these.

install-exec: 
        -mkdir $(datadir)
        -mkdir $(gsdir)
        -mkdir $(gsdatadir)
        -mkdir $(bindir)
        -mkdir $(exdir)
        $(INSTALL_PROGRAM) $(GS_XE) $(bindir)/$(GS)

install-scripts: gsnd
        -mkdir $(datadir)
        -mkdir $(gsdir)
        -mkdir $(gsdatadir)
        -mkdir $(scriptdir)
        sh -c 'for f in dpsnx.agent ;\
        do if ( test -f $$f ); then $(INSTALL_PROGRAM) $$f $(scriptdir)/$$f; 
fi;\
        done'

MAN1_PAGES=dgs
install-data: 
        -mkdir $(mandir)
        -mkdir $(man1dir)
        sh -c 'for f in $(MAN1_PAGES) ;\
        do if ( test -f $$f.1 ); then $(INSTALL_DATA) $$f.1 
$(man1dir)/$$f.$(man1ext); fi;\
        done'
        -mkdir $(datadir)
        -mkdir $(gsdir)
        -mkdir $(gsdir)/Fonts
        -mkdir $(gsdatadir)
        sh -c 'for f in \
Fontmap  \
gs_init.ps gs_btokn.ps gs_ccfnt.ps gs_cff.ps gs_cidfn.ps gs_cmap.ps  \
gs_diskf.ps gs_dpnxt.ps gs_dps.ps gs_dps1.ps gs_dps2.ps gs_epsf.ps  \
gs_fonts.ps gs_kanji.ps gs_lev2.ps gs_ll3.ps  \
gs_pfile.ps gs_res.ps gs_setpd.ps gs_statd.ps  \
gs_ttf.ps gs_typ32.ps gs_typ42.ps gs_type1.ps  \
gs_dbt_e.ps gs_iso_e.ps gs_ksb_e.ps gs_std_e.ps gs_sym_e.ps  \
 \
 \
 \
 \
 \
 \
 \
 \
 \
gs_l2img.ps  \
 \
 \
gs_mex_e.ps gs_mro_e.ps gs_pdf_e.ps gs_wan_e.ps  \
gs_pdfwr.ps  ;\
        do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(gsdatadir)/$$f; fi;\
        done'
        -mkdir $(docdir)
        sh -c 'for f in \
 \
 \
 Bug-form.htm C-style.htm Commprod.htm Copying.htm Current.htm \
DLL.htm Devices.htm Drivers.htm Fonts.htm  \
Helpers.htm Hershey.htm History1.htm History2.htm History3.htm History4.htm  \
Htmstyle.htm Humor.htm Install.htm Language.htm Lib.htm Make.htm  New-user.htm \
News.htm Ps2pdf.htm Psfiles.htm Public.htm  \
Readme.htm Source.htm  Unix-lpr.htm Use.htm Xfonts.htm ;\
        do if ( test -f $$f ); then $(INSTALL_DATA) $$f $(docdir)/$$f; fi;\
        done'
        -mkdir $(exdir)
        for f in \
 \
 \
ridt91.eps  ;\
        do $(INSTALL_DATA) $$f $(exdir)/$$f ;\
        done

Attachment: dleeuw.vcf
Description: Card for Dennis Leeuw


reply via email to

[Prev in Thread] Current Thread [Next in Thread]