View | Details | Raw Unified
Collapse All | Expand All

(-) pl230src.orig/src/Makefile (-25 / +29 lines)
 Lines 121-131    Link Here 
#### For PNG (only) uncomment the following.. (this will use a version of GD that comes
#### For PNG (only) uncomment the following.. (this will use a version of GD that comes
#### bundled with ploticus; you need to have libpng and zlib ).  Set GD16H if your
#### bundled with ploticus; you need to have libpng and zlib ).  Set GD16H if your
#### png.h or other header files are in a nonstandard place, eg GD16H = -I/home/scg/lib
#### png.h or other header files are in a nonstandard place, eg GD16H = -I/home/scg/lib
ploticus: plpng 
# ploticus: plpng 
PLPNG = pl 
# PLPNG = pl 
GD16LIBS = -lpng -lz
# GD16LIBS = -lpng -lz
GD16H = 
# GD16H = 
ZFLAG = -DWZ
# ZFLAG = -DWZ
#### For pseudo-GIF (only) uncomment the following..  (this will use a version of GD that
#### For pseudo-GIF (only) uncomment the following..  (this will use a version of GD that
 Lines 147-164    Link Here 
####  uncomment the following.. (gd 1.84+, libpng, zlib, libjpeg required).  Set GD18H if your 
####  uncomment the following.. (gd 1.84+, libpng, zlib, libjpeg required).  Set GD18H if your 
#### png.h or other header files are in a nonstandard place, eg GD18H = -I/home/scg/lib
#### png.h or other header files are in a nonstandard place, eg GD18H = -I/home/scg/lib
# ploticus: plgd18 
#ploticus: plgd18
# GD18LIBS = -lgd -lpng -lz -ljpeg 
#GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype 
# GD18H = 
#GD18H = 
# GDFREETYPE = 
# GDFREETYPE = 
# ZFLAG = -DWZ
#ZFLAG = -DWZ
#### For JPEG, WBMP, PNG, and FreeType2, using your copy of GD 1.84+,          ######
#### For JPEG, WBMP, PNG, and FreeType2, using your copy of GD 1.84+,          ######
#### uncomment the following..  (gd 1.84+, libpng, zlib, libjpeg, libfreetype  ######
#### uncomment the following..  (gd 1.84+, libpng, zlib, libjpeg, libfreetype  ######
#### are all required).  Set GDFONTPATH to directory containing .ttf files     ######
#### are all required).  Set GDFONTPATH to directory containing .ttf files     ######
# ploticus: plgd18 
#ploticus: plgd18
# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype
# GD18LIBS = -lgd -lpng -lz -ljpeg -lfreetype -lfreetype
# GD18H = 
# GD18H = 
# GDFREETYPE = -DGDFREETYPE
# GDFREETYPE = -DGDFREETYPE
# ZFLAG = -DWZ
# ZFLAG = -DWZ
 Lines 168-173    Link Here 
# ploticus: plnogd 
# ploticus: plnogd 
# NOGDFLAG = -DNOGD
# NOGDFLAG = -DNOGD
EXE=pl
ploticus: $(EXE)
################################################################
################################################################
 Lines 176-182    Link Here 
################################################################
################################################################
#### If you plan to do a "make install", where do you want the executable(s) to be moved to?
#### If you plan to do a "make install", where do you want the executable(s) to be moved to?
BIN = /usr/local/bin
BIN = /usr/bin
#### To set a hard-coded directory for prefabs files, uncomment & edit the following.. 
#### To set a hard-coded directory for prefabs files, uncomment & edit the following.. 
 Lines 219-225    Link Here 
# ..and if your ming.h is in a nonstandard place add a line like this:
# ..and if your ming.h is in a nonstandard place add a line like this:
# MINGH = -I/home/scg/lib
# MINGH = -I/home/scg/lib
#### Otherwise, for no SWF capability, uncomment the following line
#### Otherwise, for no SWF capability, uncomment the following line
NOSWFFLAG = -DNOSWF 
# NOSWFFLAG = -DNOSWF 
#### To completely remove safety limits on cpu time uncomment the following..
#### To completely remove safety limits on cpu time uncomment the following..
 Lines 252-258    Link Here 
LIBS = $(XLIBS) -lm $(ADDLIBS) 
LIBS = $(XLIBS) -lm $(ADDLIBS) 
CFLAGS = -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) \
CFLAGS += -DPLOTICUS -D$(PLATFORM) -DTDH_NOREC $(ZFLAG) $(FLAGS) $(LOCALE_FLAG) $(GDLEVEL) \
  $(NOGDFLAG) $(NOXFLAG) $(NOPSFLAG) $(NOSVGFLAG) $(NOSWFFLAG) $(INCLUDEDIRS) \
  $(NOGDFLAG) $(NOXFLAG) $(NOPSFLAG) $(NOSVGFLAG) $(NOSWFFLAG) $(INCLUDEDIRS) \
  $(MINGH) $(NORLIMFLAG) -DPREFABS_DIR=\"$(PREFABS_DIR)\"
  $(MINGH) $(NORLIMFLAG) -DPREFABS_DIR=\"$(PREFABS_DIR)\"
 Lines 269-307    Link Here 
  $(LOCALEOBJ)
  $(LOCALEOBJ)
pl: pl.o $(OBJ) $(XOBJ) gd00files gd13files
pl: pl.o $(OBJ) $(XOBJ) gd00files gd13files
	$(CC) pl.o $(FLAGS) $(OBJ) $(GD13) $(GD) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL)
	$(CC) pl.o $(CFLAGS) $(OBJ) $(GD13) $(GD) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL)
plpng: pl.o $(OBJ) $(XOBJ) gd00files gd16files
plpng: pl.o $(OBJ) $(XOBJ) gd00files gd16files
	$(CC) pl.o $(FLAGS) $(OBJ) $(GD16) $(GD) $(XOBJ) $(GD16LIBS) $(LIBS) $(MING) -o $(PLPNG)
	$(CC) pl.o $(CFLAGS) $(OBJ) $(GD16) $(GD) $(XOBJ) $(GD16LIBS) $(LIBS) $(MING) -o $(PLPNG)
gd00files: 
gd00files: 
	$(CC) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c
	$(CC) $(CFLAGS) -I./gd13 -I./ -c gdfontg.c gdfontl.c gdfontmb.c gdfonts.c gdfontt.c
	echo "done with gd00files" > gd00files
	echo "done with gd00files" > gd00files
gd13files: 
gd13files: 
	$(CC) -c grgd.c -DGD13 -I./gd13 -o grgd13.o
	$(CC) -c $(CFLAGS) grgd.c -DGD13 -I./gd13 -o grgd13.o
	$(CC) -c $(CFLAGS) devstuff.c -DGD13 -o devstuff13.o
	$(CC) -c $(CFLAGS) devstuff.c -DGD13 -o devstuff13.o
	$(CC) -c gd13.c -I./gd13 
	$(CC) -c $(CFLAGS) gd13.c -I./gd13 
	echo "done with gd13files" > gd13files
	echo "done with gd13files" > gd13files
gd16files: 
gd16files: 
	$(CC) -c grgd.c -DGD16 -I./ -I./gd16 -o grgd16.o
	$(CC) -c $(CFLAGS) grgd.c -DGD16 -I./ -I./gd16 -o grgd16.o
	$(CC) -c $(CFLAGS) devstuff.c -DGD16 -o devstuff16.o
	$(CC) -c $(CFLAGS) devstuff.c -DGD16 -o devstuff16.o
	$(CC) -c -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c
	$(CC) -c $(CFLAGS) -I./gd16 -I./ $(GD16H) gd16.c gd_io.c gd_io_dp.c gd_io_file.c gd_png.c
	echo "done with gd16files" > gd16files
	echo "done with gd16files" > gd16files
# GD18: 
# GD18: 
plgd18: pl.o $(OBJ) $(XOBJ) gd18files
plgd18: pl.o $(OBJ) $(XOBJ) gd18files
	$(CC) $(FLAGS) pl.o grgd.o devstuff.o $(OBJ) $(XOBJ) $(GD18LIBS) $(LIBS) $(MING) -o $(PL)
	$(CC) $(CFLAGS) pl.o grgd.o devstuff.o $(OBJ) $(XOBJ) $(GD18LIBS) $(LIBS) $(MING) -o $(PL)
gd18files:
gd18files:
	$(CC) -c grgd.c devstuff.c -DGD18 $(GDFREETYPE) $(GD18H) $(CFLAGS)
	$(CC) -c $(CFLAGS) grgd.c devstuff.c -DGD18 $(GDFREETYPE) $(GD18H)
# NOGD: 
# NOGD: 
plnogd: pl.o $(OBJ) $(XOBJ) nogdfiles
plnogd: pl.o $(OBJ) $(XOBJ) nogdfiles
	$(CC) $(FLAGS) pl.o devstuff.o $(OBJ) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL)
	$(CC) $(CFLAGS) pl.o devstuff.o $(OBJ) $(XOBJ) $(LIBS) $(ZLIB) $(MING) -o $(PL)
nogdfiles:
nogdfiles:
	$(CC) -c devstuff.c $(CFLAGS)
	$(CC) -c devstuff.c $(CFLAGS)
 Lines 309-315    Link Here 
install:
install:
	mv $(EXE) $(BIN)
	mv $(EXE) $(DESTDIR)$(BIN)
clean:
clean:
	$(RMCOM) *.o gd??files 
	$(RMCOM) *.o gd??files 
(-) pl230src.orig/src/interact.c (-1 / +2 lines)
 Lines 84-90    Link Here 
/* =================================== */
/* =================================== */
/* GETCLICK wait until a key or button is hit.. */
/* GETCLICK wait until a key or button is hit.. */
/* when using postscript, this will do a showpage and return. */
/* when using postscript, this will do a showpage and return. */
#ifndef NOX11
PLG_getclick()
PLG_getclick()
{
{
double x, y;
double x, y;
 Lines 100-105    Link Here 
return( Egetkey( &x, &y, &e ) );
return( Egetkey( &x, &y, &e ) );
}
}
#endif
/* ================================ */
/* ================================ */
/* HE This gets called by the X11 driver when we are waiting for an event 
/* HE This gets called by the X11 driver when we are waiting for an event