1 diff -aur xrmap-2.34.orig/Imakefile xrmap-2.34.new/Imakefile
2 --- xrmap-2.34.orig/Imakefile 2009-01-11 13:26:33.000000000 +0100
3 +++ xrmap-2.34.new/Imakefile 2009-01-11 13:59:49.000000000 +0100
5 XCOMM Install to /usr or /usr/local (or something else) ??
9 XCOMM Name of man subdirectory of DESTDIR:
10 -MANDIR=/X11R6/man/man1
11 +MANDIR=share/man/man1
13 XCOMM Name of bin subdirectory of DESTDIR: /X11R6/bin or maybe just /bin
17 XCOMM Name of share subdirectory of xrmap:
18 -SHAREDIR=/share/xrmap
21 XCOMM Name of library subdirectory of DESTDIR:
22 -EMXBINDIR=$(SHAREDIR)/bin
25 XCOMM Name of DOCDIR's subdirectories of DESTDIR:
26 -DOCDIR=/X11R6/lib/X11/doc
27 -DOCHTMLDIR=/X11R6/lib/X11/doc/html
29 +DOCHTMLDIR=$(DOCDIR)/html
31 XCOMM Do you want to use the libxpm bug work around ? Comment out if not
32 XPMWORKAROUND=-DXPMBUG
34 -XCOMM Do you want to use GPS tracking
35 -#define DOGPS=-DDOGPS
38 XCOMM Normally -- except for new architectures -- you should be done there.
40 XCOMM Compile options:
45 -CCOPTIONS=-O $(XPMWORKAROUND) -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\" -DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\" $(DOGPS)
46 +CCOPTIONS=-O $(XPMWORKAROUND) -DZLIB -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\" -DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\"
50 -SRCS=gpstrack.c explorer.c image.c xrmap.c
51 -OBJS=gpstrack.o explorer.o image.o xrmap.o
54 -SRCS=explorer.c image.c xrmap.c
55 -OBJS=explorer.o image.o xrmap.o
58 -LOCAL_LIBRARIES=$(XLIB) $(XPMLIB) $(GPSLIB) $(ZLIBDIR) -ljpeg -lpng -lz -lm
60 +LOCAL_LIBRARIES=$(XLIB) $(XPMLIB) $(ZLIBDIR) -ljpeg -lpng -lz -lm
61 DEPLIBS= # I don't know what I'm doing, and I hate imake!
64 diff -aur xrmap-2.34.orig/Makefile.noimake xrmap-2.34.new/Makefile.noimake
65 --- xrmap-2.34.orig/Makefile.noimake 2009-01-11 13:26:33.000000000 +0100
66 +++ xrmap-2.34.new/Makefile.noimake 2009-01-11 15:16:06.000000000 +0100
70 X11DIR=$(DESTDIR)/X11R6
72 -EMXBINDIR=$(SHAREDIR)/bin
75 PS_VIEWER="gv -noantialias"
76 IM_VIEWER="display -background gray84"
78 +HTML_VIEWER="firefox"
79 PRINT_CMD="lpr -Plocal"
80 -EDITOR=$(DESTDIR)$(SHAREDIR)"/bin/emx"
81 +EDITOR=$(DESTDIR)/bin/emx
82 MIDIPLAYER="timidity -ig"
84 SVG_CONVERT="inkscape %s --export-height=%d --export-png=%s"
86 -# Do you want to use GPS tracking
87 -# #define DOGPS=-DDOGPS
94 CCOPTIONS=-O6 -g -Wall -DZLIB -DXPMBUG -DSHAREDIR=\"$(DESTDIR)$(SHAREDIR)\" \
95 -DPS_VIEWER=\"$(PS_VIEWER)\" -DIM_VIEWER=\"$(IM_VIEWER)\" \
96 -DSVG_VIEWER=\"$(SVG_VIEWER)\" -DSVG_CONVERT=\"$(SVG_CONVERT)\" \
97 -DHTML_VIEWER=\"$(HTML_VIEWER)\" -DPRINT_CMD=\"$(PRINT_CMD)\" \
98 -DEDITOR=\"$(EDITOR)\" -DMIDIPLAYER=\"$(MIDIPLAYER)\" \
99 - -DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\" $(DOGPS)
100 + -DEMXBINDIR=\"$(DESTDIR)$(EMXBINDIR)\"
102 LDOPTIONS=-O6 -g -Wall -lXpm -lX11 $(GPSLIB) -ljpeg -lz -lpng -lm -L/usr/X11R6/lib
103 ## LDOPTIONS=-O6 -g -Wall libxpm/libXpm.a -lX11 $(GPSLIB) -ljpeg -lz -lpng -lm -L/usr/X11R6/lib
105 all: $(GPSTRACK) explorer.o image.o xrmap.o
106 - gcc $(LDOPTIONS) -o xrmap $(GPSTRACK) explorer.o image.o xrmap.o
107 - cd editkit ; make -f Makefile.kit emx \
108 - DESTDIR=$(DESTDIR) \
109 - BINDIR=$(EMXBINDIR) \
110 - MANDIR=$(SHAREDIR)/editkit/man \
111 - SHAREDIR=$(SHAREDIR)/editkit/rc
112 + gcc $(LDOPTIONS) -o xrmap explorer.o image.o xrmap.o
113 cd earthview ; make DESTDIR=$(DESTDIR)
118 gcc $(CCOPTIONS) -c image.c
120 -gpstrack.o: gpstrack.h gpstrack.c
121 - gcc $(CCOPTIONS) -c gpstrack.c
123 xrmap.o: xrmap.h version.h bitmaps.h numdefs.h menudefs.h gpstrack.h xrmap.c
124 gcc $(CCOPTIONS) -c xrmap.c
127 - install -c -s xrmap $(X11DIR)/bin
128 + install -c -s xrmap $(DESTDIR)/bin
129 mkdir -p $(DESTDIR)$(SHAREDIR)
130 cp -f Xrmaprc Locations $(DESTDIR)$(SHAREDIR)
131 ./tools/extprogs >> $(DESTDIR)$(SHAREDIR)/Xrmaprc
133 cp -f earthview/README $(DESTDIR)$(SHAREDIR)/doc/README.earthview
135 cp -fR rc $(DESTDIR)$(SHAREDIR)
136 - cp -f xrmap.man $(X11DIR)/man/man1/xrmap.1x
137 - if [ -r $(X11DIR)/xrmap.1x.gz ] ; \
138 - then gzip -f $(DESTDIR)$(MANDIR)/xrmap.1x ; fi
139 - cd editkit ; make -f Makefile.kit emx \
140 - DESTDIR=$(DESTDIR) \
141 - BINDIR=$(EMXBINDIR) \
142 - MANDIR=$(SHAREDIR)/editkit/man \
143 - SHAREDIR=$(SHAREDIR)/editkit/rc ; \
144 - make -f Makefile.kit install DESTDIR=$(DESTDIR)
145 + cp -f xrmap.man $(DESTDIR)/share/man/man1x/xrmap.1x
146 cd earthview ; make install DESTDIR=$(DESTDIR)
149 diff -aur xrmap-2.34.orig/earthview/Makefile xrmap-2.34.new/earthview/Makefile
150 --- xrmap-2.34.orig/earthview/Makefile 2009-01-11 13:26:33.000000000 +0100
151 +++ xrmap-2.34.new/earthview/Makefile 2009-01-11 15:00:23.000000000 +0100
156 -BINDIR=$(DESTDIR)/X11R6/bin
157 +BINDIR=$(DESTDIR)/bin
158 DATADIR=$(DESTDIR)/share/xrmap/earthdata
164 install -c -s earthview $(BINDIR)
165 - cp -f README $(DESTDIR)/share/xrmap/doc/README.earthview
166 + cp -f README $(DESTDIR)/share/doc/xrmap/README.earthview
170 diff -aur xrmap-2.34.orig/editkit/Imakefile xrmap-2.34.new/editkit/Imakefile
171 --- xrmap-2.34.orig/editkit/Imakefile 2009-01-11 13:26:33.000000000 +0100
172 +++ xrmap-2.34.new/editkit/Imakefile 2009-01-11 14:06:07.000000000 +0100
175 XCOMM Name of man subdirectory of DESTDIR:
177 - MANDIR=/X11R6/man/man1
178 + MANDIR=/usr/share/man/man1
181 XCOMM Name of bin subdirectory of DESTDIR: /X11R6/bin or maybe just /bin
187 XCOMM Name of share subdirectory of DESTDIR_XRMAP:
189 - SHAREDIR=$(DESTDIR)/share/editkit
190 + SHAREDIR=$(DESTDIR)/usr/share/xrmap/editkit
193 XCOMM Name of DOCDIR's subdirectories of DESTDIR:
195 - DOCDIR=/X11R6/lib/X11/doc
196 + DOCDIR=$(DESTDIR)/usr/share/doc/xrmap
199 - DOCHTMLDIR=/X11R6/lib/X11/doc/html
200 + DOCHTMLDIR=$(DESTDIR)/usr/share/doc/xrmap/html
204 diff -aur xrmap-2.34.orig/editkit/Makefile.kit xrmap-2.34.new/editkit/Makefile.kit
205 --- xrmap-2.34.orig/editkit/Makefile.kit 2009-01-11 13:26:33.000000000 +0100
206 +++ xrmap-2.34.new/editkit/Makefile.kit 2009-01-11 14:52:25.000000000 +0100
208 # TLL for Terry Loveall personal settings
211 -SHAREDIR=/usr/share/editkit
212 +SHAREDIR=/usr/share/xrmap/editkit
215 CFLAGS = -O2 -fomit-frame-pointer -pipe -Wall -DTHREED -DGREEK -DJUSTIFY -DSHAREDIR="\"$(SHAREDIR)\""
218 emx.o: Makefile version.h messages.def x11.c edit.h edit.c x11_bind_em.c
219 gcc $(CFLAGS) -DEMACS -o emx.o -c x11.c
222 - if [ -x edt ]; then cp -f edt $(BINDIR); fi
223 - if [ -x emt ]; then cp -f emt $(BINDIR); fi
224 - if [ -x edx ]; then cp -f edx $(BINDIR); fi
225 - if [ -x emx ]; then cp -f emx $(BINDIR); fi
226 - mkdir -p $(SHAREDIR)
227 - cp -f rc.example $(SHAREDIR)/rc.common
228 - cp -f README $(SHAREDIR)
229 - if [ -x edt ] || [ -x edx ]; then cp -f MANUAL.wo*ar $(SHAREDIR); fi
230 - if [ -x emt ] || [ -x emx ]; then cp -f MANUAL.emacs $(SHAREDIR); fi
231 - if [ -x edt ]; then cd $(SHAREDIR); ln -sf rc.common edtrc; fi
232 - if [ -x emt ]; then cd $(SHAREDIR); ln -sf rc.common emtrc; fi
233 - if [ -x edx ]; then cd $(SHAREDIR); ln -sf rc.common edxrc; fi
234 - if [ -x emx ]; then cd $(SHAREDIR); ln -sf rc.common emxrc; fi
235 + ln -sf rc.common emxrc
238 -rm -f *.o *~ edt emt edx emx
239 diff -aur xrmap-2.34.orig/version.h xrmap-2.34.new/version.h
240 --- xrmap-2.34.orig/version.h 2009-01-11 13:26:33.000000000 +0100
241 +++ xrmap-2.34.new/version.h 2009-01-11 15:22:19.000000000 +0100
244 #define PACKAGE "xrmap"
245 #define VERSION "2.34"
246 -#define DATEPKG "March 13, 2005"
247 +#define DATEPKG "August 21, 2008"
248 #define COPYRIGHT "(C) Jean-Pierre Demailly, licensed under the GPL"