]> git.pld-linux.org Git - packages/xbl.git/blame - xbl-config.patch
- release 2
[packages/xbl.git] / xbl-config.patch
CommitLineData
5d36e4c8
JB
1--- xbl-1.1.2/bl.c.orig 2003-08-31 21:59:38.000000000 +0200
2+++ xbl-1.1.2/bl.c 2004-04-10 00:13:26.974843528 +0200
3@@ -306,8 +306,10 @@
4 sprintf(buf,"%s/Xbl",RESOURCEDIR) ;
5 getres( XrmGetFileDatabase(buf) , allargs ) ;
6
7+ /*
8 sprintf(buf,"%s/Xbl",SCOREDIR) ;
9 getres( XrmGetFileDatabase(buf) , allargs ) ;
10+ */
11
12 /* I don't remember why these lines should be commented....
13
14--- xbl-1.1.2/buttons.c.orig 2003-06-29 15:40:35.000000000 +0200
15+++ xbl-1.1.2/buttons.c 2004-04-10 00:17:01.872174168 +0200
16@@ -318,7 +318,7 @@
17 FILE *f ;
18
19 XFlush(b->menu->bl->x.display) ;
20- sprintf(buf,"%s/COPYING",SCOREDIR) ;
21+ sprintf(buf,"/usr/share/xbl/COPYING") ;
22 f = fopen( buf,"r" ) ;
23
24 if ( f==0 )
25--- xbl-1.1.2/Makefile.in.orig 2003-08-31 21:59:38.000000000 +0200
26+++ xbl-1.1.2/Makefile.in 2004-04-10 00:20:13.222084560 +0200
27@@ -14,7 +14,7 @@
28 USE_SETGID=-DUSE_SETGID
29
30 # group owner of games file.
31-GROUP_GID=5
c4996e56 32+GROUP_GID=20
5d36e4c8 33 @GROUP_GID@
c4996e56 34
35 ###########################################################################
5d36e4c8 36@@ -23,34 +23,32 @@
c4996e56 37 ###########################################################################
38
39 # Comment next line if you don't want to use "xmkmf" informations.
40-USE_XMKMF=YES
41+# USE_XMKMF=YES
42 # Comment next line if you don't want to use "imake" informations.
43-IMAKE_OPTIONS=-DTOP=/ -DUseInstalled
44+# IMAKE_OPTIONS=-DTOP=/ -DUseInstalled
45+
46+DESTDIR=
47
48 # Directory who contain X Resource Database
49 # The default value if overrided by configure if xmkmf or imake exists.
50 #
51-RESOURCEDIR=/usr/lib/X11/app-defaults
52-@XAPPLOADDIR@
2ea0324a 53+RESOURCEDIR=$(DESTDIR)/usr/share/X11/app-defaults
c4996e56 54
55 # Directory where install binary
56 # The default value if overrided by configure if xmkmf or imake exists.
57 #
58-BINDIR=/usr/local/bin
59-@BINDIR@
5d36e4c8 60+BINDIR=$(DESTDIR)/usr/bin
c4996e56 61
62 # Directory who contain score
63 # Put your HOME if you have a private use of the game
64 # The default value if overrided by configure if xmkmf or imake exists.
65 #
66-SCOREDIR=/usr/local/lib/xbl
67-@SCOREDIR@
1e9c844c 68+SCOREDIR=$(DESTDIR)/var/games/xbl
c4996e56 69
70 # Directory where put man pages.
71 # The default value if overrided by configure if xmkmf or imake exists.
72 #
73-MANPATH=/usr/local/man
74-@MANPATH@
5d36e4c8 75+MANPATH=$(DESTDIR)/usr/share/man
c4996e56 76
77 ###########################################################################
78 # Some values defined in imakefiles
5d36e4c8 79@@ -83,7 +81,7 @@
c4996e56 80
81 # For linking (configure script will modify this line)
82 # xmkmf et imake informations are take into account.
83-LIBS = @LIBS@ -lm
2ea0324a 84+LIBS = -lXext -lX11 -lm
c4996e56 85
86 all:demo
87
5d36e4c8 88@@ -94,7 +92,7 @@
c4996e56 89 -DRESOURCEDIR=\"$(RESOURCEDIR)\" \
90 -DXBLVERSION=\"$(XBLVERSION)\" \
91 -DGROUP_GID=$(GROUP_GID) \
5d36e4c8
JB
92- $(USE_SETGID) @DEFS@ @CFLA@ -g
93+ $(USE_SETGID) @DEFS@ @CFLA@ @CFLAGS@
c4996e56 94 # For link edit options
95 LDOPTIONS=$(CFLAGS)
96 LDOPTIONS=@LDOPTIONS@
5d36e4c8 97@@ -124,28 +122,16 @@
c4996e56 98 @echo "Executable go in $(BINDIR)"
99 @echo "Scores go in $(SCOREDIR)"
100 @echo "Defaults go in $(RESOURCEDIR)/Xbl"
101- @echo "Man pages go in $(MANPATH)/mann or man1"
102+ @echo "Man pages go in $(MANPATH)/man6"
103 @-if [ "" != "$(USE_SETGID)" ] ; then \
104 echo "You use GID=$(GROUP_GID) protection" ; \
105 fi
106 @echo "Type <Return> to continue installation"
107 @echo "Type NO to stop installation"
108- @read LINE && test "" = "$$LINE"
109- #
110- # Remove old score file
111- #
112- @-if [ -d "$(SCOREDIR)" ] ; \
113- then \
114- echo "The scoring method and speeds of Xbl had change" ; \
115- echo "If your version is older than 0.2e, destroy score." ; \
116- echo "Type <Return> to destroy old score files" ; \
117- echo "Type NO to hold old score files" ; \
118- read LINE && test "" = "$$LINE" && rm $(SCOREDIR)/[1-9]* ; \
119- exit 0 ; \
120- fi
121 #
122 # Install executable
123 #
124+ -mkdir -p $(BINDIR)
125 $(CP) bl $(BINDIR)/xbl
126 -if [ "" = "$(USE_SETGID)" ] ; then \
127 chmod 755 $(BINDIR)/xbl ;\
5d36e4c8 128@@ -158,9 +144,10 @@
c4996e56 129 # Install executable
130 #
131 -mkdir $(SCOREDIR) 2>/dev/null
5d36e4c8 132+ -mkdir -p $(RESOURCEDIR) $(SCOREDIR) $(DESTDIR)/usr/share/xbl
c4996e56 133 $(CP) Xbl.ad $(RESOURCEDIR)/Xbl ; chmod 644 $(RESOURCEDIR)/Xbl
134 $(CP) Xbl.ad $(SCOREDIR)/Xbl ; chmod 644 $(SCOREDIR)/Xbl
135- $(CP) COPYING $(SCOREDIR) ; chmod 444 $(SCOREDIR)/COPYING
5d36e4c8 136+ $(CP) COPYING $(DESTDIR)/usr/share/xbl
c4996e56 137 -if [ "" = "$(USE_SETGID)" ] ; then \
138 chmod 777 $(SCOREDIR) ;\
139 chmod 666 $(SCOREDIR)/[1-9]* ;\
5d36e4c8 140@@ -173,17 +160,15 @@
c4996e56 141 #
142 # Install manual pages
143 #
144- -if [ -d $(MANPATH)/mann ] ; \
145+ -mkdir -p $(MANPATH)/man6
146+ -if [ -d $(MANPATH)/man6 ] ; \
147 then \
148- $(CP) xbl.man $(MANPATH)/mann/xbl.n ;\
149- chmod 444 $(MANPATH)/mann/xbl.n ; \
150+ $(CP) xbl.man $(MANPATH)/man6/xbl.6x ;\
151+ chmod 444 $(MANPATH)/man6/xbl.6x ; \
152 else \
153 $(CP) xbl.man $(MANPATH)/man1/xbl.1 ;\
154 chmod 444 $(MANPATH)/man1/xbl.1 ; \
155 fi
156- cp *.gif *.html $(SCOREDIR)
157- #
158- -ls -lsa $(SCOREDIR) $(BINDIR)/xbl $(MANPATH)/man[1n]/xbl.[1n]
159 @echo "Type xbl to play"
160
161 bl:$(OBJ)
This page took 0.137587 seconds and 4 git commands to generate.