]> git.pld-linux.org Git - packages/xv.git/blob - xv-PLD.patch
8db6be1037328014cfbc7d8acb69fa2e5bec8956
[packages/xv.git] / xv-PLD.patch
1 diff -urN xv-3.10a.orig/Makefile xv-3.10a/Makefile
2 --- xv-3.10a.orig/Makefile      Fri Oct 15 17:27:01 1999
3 +++ xv-3.10a/Makefile   Fri Oct 15 17:36:01 1999
4 @@ -1,7 +1,7 @@
5  # Makefile for xv
6  
7  # your C compiler (and options) of choice
8 -CC = cc
9 +CC = gcc
10  # CC = gcc -ansi
11  
12  # use this if you're using 'cc' on a DEC Alpha (OSF/1) or MIPS (Ultrix) system:
13 @@ -14,7 +14,7 @@
14  #       -Wuninitialized -Wparentheses
15  
16  
17 -CCOPTS = -O 
18 +CCOPTS = $(RPM_OPT_FLAGS)
19  
20  
21  ### NOTE: Sun running OpenWindows:
22 @@ -45,45 +45,49 @@
23  ### if, for whatever reason, you're unable to get the JPEG library to compile
24  ### on your machine, *COMMENT OUT* the following lines
25  ###
26 -JPEG    = -DDOJPEG
27 -JPEGDIR = jpeg
28 -JPEGINC = -I$(JPEGDIR)
29 -JPEGLIB = $(JPEGDIR)/libjpeg.a
30 -$(JPEGDIR)/jconfig.h:
31 -       cd $(JPEGDIR) ; ./configure CC='$(CC)'
32 -$(JPEGLIB):  $(JPEGDIR)/jconfig.h
33 -       cd $(JPEGDIR) ; make
34 +JPEG    = -DDOJPEG
35 +#JPEGDIR = jpeg
36 +#JPEGINC = -I$(JPEGDIR)
37 +#JPEGLIB = $(JPEGDIR)/libjpeg.a
38 +#$(JPEGDIR)/jconfig.h:
39 +#      cd $(JPEGDIR) ; ./configure CC='$(CC)'
40 +#$(JPEGLIB):  $(JPEGDIR)/jconfig.h
41 +#      cd $(JPEGDIR) ; make
42 +JPEGLIB = -ljpeg
43  
44  
45  ###
46  ### if, for whatever reason, you're unable to get the PNG library to compile
47  ### on your machine, *COMMENT OUT* the following lines
48  ###
49 -PNG    = -DDOPNG
50 -PNGDIR = /usr/local/src/libpng
51 -PNGINC = -I$(PNGDIR)
52 -PNGLIB = -L$(PNGDIR) -lpng
53 +PNG    = -DDOPNG
54 +#PNGDIR = /usr/local/src/libpng
55 +#PNGINC = -I$(PNGDIR)
56 +#PNGLIB = -L$(PNGDIR) -lpng
57 +PNGLIB = -lpng
58  
59  
60  ###
61  ### if, for whatever reason, you're unable to get the PNG library to compile
62  ### on your machine, *COMMENT OUT* the following lines
63  ###
64 -ZLIBDIR = /usr/local/src/zlib
65 -ZLIBINC = -I$(ZLIBDIR)
66 -ZLIBLIB = -L$(ZLIBDIR) -lz
67 +#ZLIBDIR = /usr/local/src/zlib
68 +#ZLIBINC = -I$(ZLIBDIR)
69 +#ZLIBLIB = -L$(ZLIBDIR) -lz
70 +ZLIBLIB = -lz
71  
72  
73  ###
74  ### if, for whatever reason, you're unable to get the TIFF library to compile
75  ### on your machine, *COMMENT OUT* the following lines
76  ###
77 -TIFF    = -DDOTIFF
78 -TIFFDIR = tiff
79 -TIFFINC = -I$(TIFFDIR)
80 -TIFFLIB = $(TIFFDIR)/libtiff.a
81 -$(TIFFLIB):
82 -       ( cd $(TIFFDIR) ; make CC='$(CC)' )
83 +TIFF    = -DDOTIFF
84 +#TIFFDIR = tiff
85 +#TIFFINC = -I$(TIFFDIR)
86 +#TIFFLIB = $(TIFFDIR)/libtiff.a
87 +#$(TIFFLIB):
88 +#      ( cd $(TIFFDIR) ; make CC='$(CC)' )
89 +TIFFLIB = -ltiff
90  
91  
92  ###
93 @@ -121,7 +125,7 @@
94  
95  
96  ### for LINUX, uncomment the following line
97 -#MCHN = -DLINUX
98 +MCHN = -DLINUX
99  
100  
101  # For SCO 1.1 (UNIX 3.2v2) machines, uncomment the following:
102 @@ -207,7 +211,7 @@
103         $(NODIRENT) $(VPRINTF) $(TIMERS) $(UNIX) $(BSDTYPES) $(RAND) \
104         $(DXWM) $(MCHN) $(PNG) $(PNGINC) $(ZLIBINC)
105  
106 -LIBS = -lX11 $(JPEGLIB) $(TIFFLIB) $(PNGLIB) $(ZLIBLIB) -lm
107 +LIBS = -lX11 $(JPEGLIB) $(TIFFLIB) $(PNGLIB) $(ZLIBLIB) -lm -L/usr/X11R6/lib
108  
109  OBJS =         xv.o xvevent.o xvroot.o xvmisc.o xvimage.o xvcolor.o xvsmooth.o \
110         xv24to8.o xvgif.o xvpm.o xvinfo.o xvctrl.o xvscrl.o xvalg.o \
111 @@ -226,10 +230,10 @@
112  
113  
114  
115 -all: $(JPEGLIB) $(TIFFLIB) xv bggen vdcomp xcmap xvpictoppm
116 +all: xv bggen vdcomp xcmap xvpictoppm
117  
118  
119 -xv: $(OBJS) $(JPEGLIB) $(TIFFLIB)
120 +xv: $(OBJS)
121         $(CC) -o xv $(CFLAGS) $(OBJS) $(LIBS)
122  
123  bggen: bggen.c
124 diff -urN xv-3.10a.orig/xv.h xv-3.10a/xv.h
125 --- xv-3.10a.orig/xv.h  Fri Oct 15 17:27:01 1999
126 +++ xv-3.10a/xv.h       Fri Oct 15 17:33:35 1999
127 @@ -115,10 +115,6 @@
128  
129  #ifndef VMS
130  #  include <errno.h>
131 -   extern int   errno;             /* SHOULD be in errno.h, but often isn't */
132 -#  ifndef __NetBSD__
133 -     extern char *sys_errlist[];     /* this too... */
134 -#  endif
135  #endif
136  
137  
This page took 0.053117 seconds and 2 git commands to generate.