games: Move all games into games subdir

Moved all games into a subdir called games and
then updated makefiles as necessary.

If not one objects to this one then I will
probably do the same for audio next.

Daniel Laird
This commit is contained in:
Daniel Laird
2008-08-29 13:27:37 +00:00
parent 022b95d6ef
commit 1b5c1e7bdb
25 changed files with 24 additions and 30 deletions

15
package/games/Config.in Normal file
View File

@@ -0,0 +1,15 @@
menuconfig BR2_GAMES
bool "Games"
default y
help
Support for games
if BR2_GAMES
source "package/games/ace_of_penguins/Config.in"
source "package/games/gnuchess/Config.in"
source "package/games/lxdoom/Config.in"
source "package/games/magiccube4d/Config.in"
source "package/games/rubix/Config.in"
source "package/games/vice/Config.in"
source "package/games/xboard/Config.in"
endif

View File

@@ -0,0 +1,11 @@
config BR2_PACKAGE_ACE_OF_PENGUINS
bool "ace_of_penguins"
select BR2_PACKAGE_LIBPNG
depends on BR2_PACKAGE_XORG||BR2_PACKAGE_XORG7
help
The Ace of Penguins is a set of Unix/X solitaire games based
on the ones available for Windows but with a number of
enhancements.
http://www.delorie.com/store/ace/

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,15 @@
#############################################################
#
# ace_of_penguins
#
#############################################################
ACE_OF_PENGUINS_VERSION = 1.2
ACE_OF_PENGUINS_SOURCE = ace-$(ACE_OF_PENGUINS_VERSION).tar.gz
ACE_OF_PENGUINS_SITE = http://www.delorie.com/store/ace/
ACE_OF_PENGUINS_AUTORECONF = YES
ACE_OF_PENGUINS_STAGING = NO
ACE_OF_PENGUINS_TARGET = YES
ACE_OF_PENGUINS_DEPENDENCIES = uclibc libpng $(XSERVER)
$(eval $(call AUTOTARGETS,package/games,ace_of_penguins))

View File

@@ -0,0 +1,6 @@
config BR2_PACKAGE_GNUCHESS
bool "gnuchess"
help
GNU Chess lets most modern computers play a full game of chess.
http://ftp.gnu.org/pub/gnu/chess

View File

@@ -0,0 +1,11 @@
--- a/src/input.c 2003-07-01 13:06:43.000000000 -0400
+++ a/src/input.c 2008-02-13 12:24:43.000000000 -0500
@@ -92,7 +92,7 @@ void getline_standard(char *p)
fgets(inputstr, MAXSTR, stdin);
}
-static pthread_t input_thread;
+pthread_t input_thread;
/* Mutex and condition variable for thread communication */

View File

@@ -0,0 +1,17 @@
#############################################################
#
# gnuchess
#
#############################################################
GNUCHESS_VERSION = 5.07
GNUCHESS_SOURCE = gnuchess-$(GNUCHESS_VERSION).tar.gz
GNUCHESS_SITE = $(BR2_GNU_MIRROR)/chess
GNUCHESS_INSTALL_STAGING = NO
GNUCHESS_INSTALL_TARGET = YES
GNUCHESS_CONF_ENV = ac_cv_func_realloc_0_nonnull=yes ac_cv_func_malloc_0_nonnull=yes
GNUCHESS_DEPENDENCIES = uclibc
$(eval $(call AUTOTARGETS,package/games,gnuchess))

View File

@@ -0,0 +1,9 @@
config BR2_PACKAGE_LXDOOM
bool "lxdoom"
help
This is the linux version of the popular doom game.
config BR2_PACKAGE_LXDOOM_WAD
bool "lxdoom-wad"
depends on BR2_PACKAGE_LXDOOM
help
This is the shareware wad data files for the doom game.

View File

@@ -0,0 +1,173 @@
diff -Nrup lxdoom-1.4.4/src/m_menu.c lxdoom-1.4.4-avr32/src/m_menu.c
--- a/src/m_menu.c 2000-03-17 15:50:30.000000000 -0500
+++ b/src/m_menu.c 2007-10-22 17:18:43.000000000 -0400
@@ -38,6 +38,7 @@ rcsid[] = "$Id: m_menu.c,v 1.24 2000/03/
#include <fcntl.h>
#include <unistd.h>
+#include <bits/posix1_lim.h>
#include "doomdef.h"
#include "doomstat.h"
diff -Nrup lxdoom-1.4.4/src/p_maputl.c lxdoom-1.4.4-avr32/src/p_maputl.c
--- a/src/p_maputl.c 1999-10-12 09:01:13.000000000 -0400
+++ b/src/p_maputl.c 2007-10-22 17:20:56.000000000 -0400
@@ -322,7 +322,7 @@ void P_SetThingPosition(mobj_t *thing)
//
// A fast function for testing intersections between things and linedefs.
-boolean CONSTFUNC ThingIsOnLine(const mobj_t *t, const line_t *l)
+boolean ThingIsOnLine(const mobj_t *t, const line_t *l)
{
int dx = l->dx >> FRACBITS; // Linedef vector
int dy = l->dy >> FRACBITS;
diff -Nrup lxdoom-1.4.4/src/r_data.c lxdoom-1.4.4-avr32/src/r_data.c
--- a/src/r_data.c 2000-01-25 17:40:45.000000000 -0500
+++ b/src/r_data.c 2007-10-22 17:19:29.000000000 -0400
@@ -38,6 +38,7 @@ rcsid[] = "$Id: r_data.c,v 1.13 2000/01/
#include "r_main.h"
#include "r_sky.h"
#include "lprintf.h" // jff 08/03/98 - declaration of lprintf
+#include <bits/posix1_lim.h>
//
// Graphics.
diff -Nrup lxdoom-1.4.4/src/r_segs.c lxdoom-1.4.4-avr32/src/r_segs.c
--- a/src/r_segs.c 1999-10-17 04:52:04.000000000 -0400
+++ b/src/r_segs.c 2007-10-22 17:14:46.000000000 -0400
@@ -47,15 +47,15 @@ rcsid[] = "$Id: r_segs.c,v 1.14 1999/10/
// killough 1/6/98: replaced globals with statics where appropriate
// True if any of the segs textures might be visible.
-static boolean segtextured;
-static boolean markfloor; // False if the back side is the same plane.
-static boolean markceiling;
-static boolean maskedtexture;
-static int toptexture;
-static int bottomtexture;
-static int midtexture;
+boolean segtextured;
+boolean markfloor; // False if the back side is the same plane.
+boolean markceiling;
+boolean maskedtexture;
+int toptexture;
+int bottomtexture;
+int midtexture;
-static fixed_t toptexheight, midtexheight, bottomtexheight; // cph
+fixed_t toptexheight, midtexheight, bottomtexheight; // cph
angle_t rw_normalangle; // angle to line origin
int rw_angle1;
@@ -65,28 +65,28 @@ lighttable_t **walllights;
//
// regular wall
//
-static int rw_x;
-static int rw_stopx;
-static angle_t rw_centerangle;
-static fixed_t rw_offset;
-static fixed_t rw_scale;
-static fixed_t rw_scalestep;
-static fixed_t rw_midtexturemid;
-static fixed_t rw_toptexturemid;
-static fixed_t rw_bottomtexturemid;
-static int worldtop;
-static int worldbottom;
-static int worldhigh;
-static int worldlow;
-static fixed_t pixhigh;
-static fixed_t pixlow;
-static fixed_t pixhighstep;
-static fixed_t pixlowstep;
-static fixed_t topfrac;
-static fixed_t topstep;
-static fixed_t bottomfrac;
-static fixed_t bottomstep;
-static short *maskedtexturecol;
+int rw_x;
+int rw_stopx;
+angle_t rw_centerangle;
+fixed_t rw_offset;
+fixed_t rw_scale;
+fixed_t rw_scalestep;
+fixed_t rw_midtexturemid;
+fixed_t rw_toptexturemid;
+fixed_t rw_bottomtexturemid;
+int worldtop;
+int worldbottom;
+int worldhigh;
+int worldlow;
+fixed_t pixhigh;
+fixed_t pixlow;
+fixed_t pixhighstep;
+fixed_t pixlowstep;
+fixed_t topfrac;
+fixed_t topstep;
+fixed_t bottomfrac;
+fixed_t bottomstep;
+short *maskedtexturecol;
//
// R_ScaleFromGlobalAngle
--- a/src/wi_stuff.c 2008-02-12 14:02:42.000000000 -0500
+++ b/src/wi_stuff.c 2008-02-12 14:04:34.000000000 -0500
@@ -368,7 +368,7 @@ static const patch_t * items;
static const patch_t * frags;
// Time sucks.
-static const patch_t * time;
+static const patch_t * mytime;
static const patch_t * par;
static const patch_t * sucks;
diff -Nrup lxdoom-1.4.4/src/d_main.c lxdoom-1.4.4-avr32/src/d_main.c
--- a/src/d_main.c 2000-03-27 05:33:49.000000000 -0500
+++ b/src/d_main.c 2007-10-22 17:18:05.000000000 -0400
@@ -39,7 +39,7 @@ static const char rcsid[] = "$Id: d_main
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
-
+#include <bits/posix1_lim.h>
#include "doomdef.h"
#include "doomstat.h"
#include "dstrings.h"
@@ -228,7 +228,7 @@ void D_Display (void)
case -1:
case GS_LEVEL:
V_SetPalette(0); // cph - use default (basic) palette
- default:
+ default:;
}
switch (gamestate) {
@@ -241,7 +241,7 @@ void D_Display (void)
case GS_DEMOSCREEN:
D_PageDrawer();
break;
- default:
+ default:;
}
} else if (gametic) { // In a level
boolean redrawborderstuff;
diff -Nrup lxdoom-1.4.4/src/g_game.c lxdoom-1.4.4-avr32/src/g_game.c
--- a/src/g_game.c 2000-03-17 15:50:30.000000000 -0500
+++ b/src/g_game.c 2007-10-22 17:18:10.000000000 -0400
@@ -67,6 +67,7 @@ rcsid[] = "$Id: g_game.c,v 1.36 2000/03/
#include "lprintf.h"
#include "i_main.h"
#include "i_system.h"
+#include <bits/posix1_lim.h>
#define SAVEGAMESIZE 0x20000
#define SAVESTRINGSIZE 24
@@ -868,7 +869,7 @@ void G_Ticker (void)
switch (prevgamestate) {
case GS_INTERMISSION:
WI_End();
- default:
+ default:;
}
prevgamestate = gamestate;
}

View File

@@ -0,0 +1,35 @@
#############################################################
#
# lxdoom-wad
#
#############################################################
LXDOOM_WAD_VERSION = 1.8
LXDOOM_WAD_SOURCE = doom-$(LXDOOM_WAD_VERSION).wad.gz
LXDOOM_WAD_SITE = ftp://ftp.idsoftware.com/idstuff/doom/
LXDOOM_WAD_DIR=$(BUILD_DIR)/lxdoom-$(LXDOOM_WAD_VERSION)-wad
$(DL_DIR)/$(LXDOOM_WAD_SOURCE):
$(WGET) -P $(DL_DIR) $(LXDOOM_WAD_SITE)/$(LXDOOM_WAD_SOURCE)
$(LXDOOM_WAD_DIR)/.unpacked: $(DL_DIR)/$(LXDOOM_WAD_SOURCE)
mkdir -p $(LXDOOM_WAD_DIR)
cp -f $(DL_DIR)/$(LXDOOM_WAD_SOURCE) $(LXDOOM_WAD_DIR)
gunzip -d $(LXDOOM_WAD_DIR)/$(LXDOOM_WAD_SOURCE)
touch $@
$(LXDOOM_WAD_DIR)/.installed: $(LXDOOM_WAD_DIR)/.unpacked
cp -f $(LXDOOM_WAD_DIR)/* $(TARGET_DIR)/usr/games
touch $@
lxdoom-wad: lxdoom $(LXDOOM_WAD_DIR)/.installed
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_LXDOOM_WAD)),y)
TARGETS+=lxdoom-wad
endif

View File

@@ -0,0 +1,20 @@
#############################################################
#
# lxdoom
#
#############################################################
LXDOOM_VERSION = 1.4.4
LXDOOM_SOURCE = lxdoom-$(LXDOOM_VERSION).tar.gz
LXDOOM_SITE = http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/lxdoom
LXDOOM_INSTALL_STAGING = NO
LXDOOM_INSTALL_TARGET = YES
LXDOOM_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
LXDOOM_CONF_OPT = --target=$(GNU_TARGET_NAME) --host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) --prefix=/usr \
--includedir=/usr/include --enable-shared \
$(DISABLE_NLS)
LXDOOM_DEPENDENCIES = uclibc
$(eval $(call AUTOTARGETS,package/games,lxdoom))

View File

@@ -0,0 +1,6 @@
config BR2_PACKAGE_MAGICCUBE4D
bool "magiccube4d"
help
Another rubiks cube-like game in 4D
http://avr32linux.org/twiki/bin/viewfile/Main

View File

@@ -0,0 +1,13 @@
--- a/Makefile.in 2000-04-01 22:45:36.000000000 -0500
+++ b/Makefile.in 2008-02-29 13:18:24.000000000 -0500
@@ -126,6 +126,10 @@ tgz: $(SRCTGZ)
bindist: $(BINTGZ)
+install :
+ mkdir -p $(GAMESDIR)
+ install -c magiccube4d $(GAMESDIR)
+
rpm: $(SRCTGZ)
rpm -ta $(SRCTGZ)

View File

@@ -0,0 +1,11 @@
--- a/configure 2000-02-10 23:19:34.000000000 -0500
+++ b/configure 2008-02-29 13:12:33.000000000 -0500
@@ -686,7 +686,7 @@ fi
if test "$GXX" = "yes" ; then
- WFLAGS="$WFLAGS -pedantic -Wall -W -Wunused -Werror"
+ WFLAGS="$WFLAGS -pedantic -Wall -W -Wunused"
fi
echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
echo "configure:693: checking how to run the C preprocessor" >&5

View File

@@ -0,0 +1,16 @@
#############################################################
#
# magiccube4d
#
#############################################################
MAGICCUBE4D_VERSION = 2_2
MAGICCUBE4D_SOURCE = magiccube4d-src-$(MAGICCUBE4D_VERSION).tar.gz
MAGICCUBE4D_SITE = http://avr32linux.org/twiki/pub/Main/MagicCube4D
MAGICCUBE4D_INSTALL_STAGING = NO
MAGICCUBE4D_INSTALL_TARGET = YES
MAGICCUBE4D_INSTALL_TARGET_OPT = GAMESDIR=$(TARGET_DIR)/usr/games install
MAGICCUBE4D_DEPENDENCIES = uclibc
$(eval $(call AUTOTARGETS,package/games,magiccube4d))

View File

@@ -0,0 +1,6 @@
config BR2_PACKAGE_RUBIX
bool "rubix"
help
A 3D rubiks cube game for X
http://avr32linux.org/twiki/pub/Main/Rubix

View File

@@ -0,0 +1,135 @@
diff -Nrup rubix-1.0.5/fillpoly.c rubix-1.0.5-avr32/fillpoly.c
--- rubix-1.0.5/fillpoly.c 2003-10-12 15:41:43.000000000 -0400
+++ rubix-1.0.5-avr32/fillpoly.c 2008-02-29 12:39:51.000000000 -0500
@@ -435,7 +435,7 @@ void fill_lines(device *d, int thecol)
);
#endif
}
- } else if (d->depth==16) { /* here 16bpp */
+ } else if ((d->depth==16) | (d->depth==15)) { /* here 16bpp */
register int i;
#ifndef PC_ARCHI
register int j;
diff -Nrup rubix-1.0.5/line.c rubix-1.0.5-avr32/line.c
--- rubix-1.0.5/line.c 2003-10-12 14:15:19.000000000 -0400
+++ rubix-1.0.5-avr32/line.c 2008-02-29 12:39:51.000000000 -0500
@@ -1317,7 +1317,7 @@ void drawline(device *d, line *l)
#endif
if (d->depth==8)
drawline8(d, l);
- else if (d->depth==16)
+ else if ((d->depth==16) | (d->depth==15))
drawline16(d, l);
else if (d->depth==24)
drawline24(d, l);
diff -Nrup rubix-1.0.5/Makefile rubix-1.0.5-avr32/Makefile
--- rubix-1.0.5/Makefile 2003-12-04 14:27:58.000000000 -0500
+++ rubix-1.0.5-avr32/Makefile 2008-02-29 12:58:30.000000000 -0500
@@ -11,21 +11,17 @@
# Customize to fit your needs (especially if it does not work for now).
LANGUAGE=ENGLISH
-GAMESDIR=/usr/games
#architecture=-DPC_ARCHI
# For Solaris
#EXTRALIBS=-lsocket
-CC=gcc
CFLAGS=-Wall -O3 -fomit-frame-pointer -ffast-math \
-DGAMESDIR="\"$(GAMESDIR)\"" \
-D$(LANGUAGE) $(architecture)
#CFLAGS=-Wall -g -ffast-math -Iplayer $(architecture)
-XINC=-I/usr/X11R6/include
-XLIB=-L/usr/X11R6/lib -lX11
#the following should not be changed.
@@ -37,7 +33,7 @@ rubix : $(OBJ)
install :
mkdir -p $(GAMESDIR)
- install -c -s rubix $(GAMESDIR)
+ install -c rubix $(GAMESDIR)
clean :
rm -f *.o *~ core *.bak *.dat gmon.out
diff -Nrup rubix-1.0.5/screen.c rubix-1.0.5-avr32/screen.c
--- rubix-1.0.5/screen.c 2004-04-26 04:26:05.000000000 -0400
+++ rubix-1.0.5-avr32/screen.c 2008-02-29 12:39:51.000000000 -0500
@@ -80,11 +80,17 @@ void error_statement(SCREEN *s)
int reset_data_buffers(SCREEN *s)
{
+ int temp;
if (s->im)
XDestroyImage(s->im);
+ if (s->depth == 15) {
+ temp=16;
+ } else {
+ temp=s->depth;
+ }
- s->buffer=(char *)malloc(((SCREEN_X+7)/8)*SCREEN_Y*s->depth);
+ s->buffer=(char *)malloc(((SCREEN_X+7)/8)*SCREEN_Y*temp);
if (!s->buffer) {
error_statement(s);
@@ -106,7 +112,7 @@ int reset_data_buffers(SCREEN *s)
*/
/* Sed - december 2003 - no it has to be 8 */
s->im=XCreateImage(s->d, DefaultVisual(s->d, DefaultScreen(s->d)),
- s->depth==32?24:s->depth, ZPixmap,
+ s->depth, ZPixmap,
0, s->buffer, SCREEN_X, SCREEN_Y, 8, 0);
if (!s->im) {
@@ -139,8 +145,8 @@ int init_screen(SCREEN *s)
s->depth=DefaultDepth(s->d, DefaultScreen(s->d));
- if (s->depth!=8 && s->depth!=16 && s->depth!=24) {
- fprintf(stderr, "screen depth not supported (only 8, 16 and 24bpp (which means 32bpp too) handled\n");
+ if (s->depth!=8 && s->depth!=15 && s->depth!=16 && s->depth!=24) {
+ fprintf(stderr, "screen depth not supported (only 8, 15, 16 and 24bpp (which means 32bpp too) handled\n");
XCloseDisplay(s->d);
s->d=(Display *)0;
return -1;
@@ -182,10 +188,10 @@ int init_screen(SCREEN *s)
/* let's create and map our window */
s->w=XCreateWindow(s->d, DefaultRootWindow(s->d), 0, 0,
- SCREEN_X, SCREEN_Y, 3, s->depth==32?24:s->depth,
+ SCREEN_X, SCREEN_Y, 3, s->depth,
CopyFromParent, CopyFromParent, 0, NULL);
s->h=XCreateWindow(s->d, DefaultRootWindow(s->d), 0, 0,
- HELP_X, HELP_Y, 3, s->depth==32?24:s->depth,
+ HELP_X, HELP_Y, 3, s->depth,
CopyFromParent, CopyFromParent, 0, NULL);
xch.res_name = "rubix";
@@ -946,13 +952,18 @@ void close_screen(SCREEN *s)
void clear_screen(SCREEN *s)
{
/* fill s->im with pixel[10], avoid XPutPixel which is rather slow... */
- int i, w, dw;
+ int i, w, dw, temp;
+ if (s->depth == 15) {
+ temp = 16;
+ } else {
+ temp = s->depth;
+ }
w = (SCREEN_X+7)/8;
- dw = s->depth/8;
+ dw = temp/8;
XPutPixel(s->im, 0, 0, pixel[10]);
for (i=1; i<8*w; i++)
memcpy(s->buffer + i*dw, s->buffer, dw);
- w = w * s->depth;
+ w = w * temp;
for (i=1; i<SCREEN_Y; i++)
memcpy(s->buffer + i*w, s->buffer, w);
}

View File

@@ -0,0 +1,18 @@
#############################################################
#
# rubix
#
#############################################################
RUBIX_VERSION = 1.0.5
RUBIX_SOURCE = rubix-$(RUBIX_VERSION).tar.bz2
RUBIX_SITE = http://avr32linux.org/twiki/pub/Main/Rubix
RUBIX_INSTALL_STAGING = NO
RUBIX_INSTALL_TARGET = YES
RUBIX_INSTALL_TARGET_OPT = GAMESDIR=$(TARGET_DIR)/usr/games install
RUBIX_MAKE_OPT = CC=$(TARGET_CC) XINC="-I$(STAGING_DIR)/usr/include/X11" XLIB="-L$(STAGING_DIR)/usr/lib -lX11"
RUBIX_DEPENDENCIES = uclibc
$(eval $(call AUTOTARGETS,package/games,rubix))

View File

@@ -0,0 +1,6 @@
config BR2_PACKAGE_VICE
bool "vice"
help
VICE is a Commodore emulator
http://www.viceteam.org/online

View File

@@ -0,0 +1,20 @@
--- a/src/network.c 2007-07-15 18:49:24.000000000 -0400
+++ b/src/network.c 2008-03-01 21:29:40.000000000 -0500
@@ -742,7 +742,7 @@ int network_start_server(void)
#ifdef HAVE_IPV6
if (netplay_ipv6) {
- bzero((char*)&server_addr6, sizeof(struct sockaddr_in6));
+ memset((char*)&server_addr6, 0, sizeof(struct sockaddr_in6));
server_addr6.sin6_port = htons(server_port);
server_addr6.sin6_family = PF_INET6;
server_addr6.sin6_addr=in6addr_any;
@@ -853,7 +853,7 @@ int network_connect_client(void)
}
#ifdef HAVE_IPV6
if (netplay_ipv6) {
- bzero((char*)&server_addr6, sizeof(struct sockaddr_in6));
+ memset((char*)&server_addr6, 0, sizeof(struct sockaddr_in6));
server_addr6.sin6_port = htons(server_port);
server_addr6.sin6_family = PF_INET6;
memcpy(&server_addr6.sin6_addr, server_hostent->h_addr, server_hostent->h_length);

View File

@@ -0,0 +1,17 @@
#############################################################
#
# vice
#
#############################################################
VICE_VERSION = 1.22
VICE_SOURCE = vice-$(VICE_VERSION).tar.gz
VICE_SITE = http://www.viceteam.org/online
VICE_INSTALL_STAGING = NO
VICE_INSTALL_TARGET = YES
VICE_CONF_OPT = --without-resid --with-alsa CFLAGS="-O0"
VICE_DEPENDENCIES = uclibc
$(eval $(call AUTOTARGETS,package/games,vice))

View File

@@ -0,0 +1,6 @@
config BR2_PACKAGE_XBOARD
bool "xboard"
help
XBoard and WinBoard are graphical user interfaces for chess.
http://ftp.gnu.org/gnu/xboard

View File

@@ -0,0 +1,55 @@
--- a/Makefile.in 2003-11-28 16:12:57.000000000 -0500
+++ b/Makefile.in 2008-02-13 13:18:34.000000000 -0500
@@ -63,27 +63,27 @@ default: xboard zic2xpm
all: default pseudosource info FAQ html dvi ps
install: installdirs default
- $(INSTALL_PROGRAM) -s xboard $(bindir)/xboard
- $(INSTALL_PROGRAM) -s zic2xpm $(bindir)/zic2xpm
- $(INSTALL_PROGRAM) cmail $(bindir)/cmail
- $(INSTALL_PROGRAM) $(srcdir)/pxboard $(bindir)/pxboard
- $(INSTALL_DATA) $(srcdir)/xboard.man $(man6dir)/xboard$(man6ext)
- $(INSTALL_DATA) $(srcdir)/zic2xpm.man $(man6dir)/zic2xpm$(man6ext)
- $(INSTALL_DATA) xboard.info $(infodir)/xboard.info
+ $(INSTALL_PROGRAM) xboard $(DESTDIR)$(bindir)/xboard
+ $(INSTALL_PROGRAM) zic2xpm $(DESTDIR)$(bindir)/zic2xpm
+ $(INSTALL_PROGRAM) cmail $(DESTDIR)$(bindir)/cmail
+ $(INSTALL_PROGRAM) $(srcdir)/pxboard $(DESTDIR)$(bindir)/pxboard
+ $(INSTALL_DATA) $(srcdir)/xboard.man $(DESTDIR)$(man6dir)/xboard$(man6ext)
+ $(INSTALL_DATA) $(srcdir)/zic2xpm.man $(DESTDIR)$(man6dir)/zic2xpm$(man6ext)
+ $(INSTALL_DATA) xboard.info $(DESTDIR)$(infodir)/xboard.info
-PATH=$$PATH:/sbin:/usr/sbin install-info \
- $(infodir)/xboard.info $(infodir)/dir
+ $(infodir)/xboard.info $(DESTDIR)$(infodir)/dir
installdirs: mkinstalldirs
$(srcdir)/mkinstalldirs $(bindir) $(mandir) $(man6dir) $(infodir)
uninstall:
- rm -f $(bindir)/xboard $(bindir)/cmail $(bindir)/pxboard
- rm -f $(bindir)/zic2xpm
- rm -f $(man6dir)/xboard$(man6ext) $(man6dir)/cmail$(man6ext)
- rm -f $(man6dir)/zic2xpm$(man6ext)
- rm -f $(infodir)/xboard.info
+ rm -f $(DESTDIR)$(bindir)/xboard $(DESTDIR)$(bindir)/cmail $(DESTDIR)$(bindir)/pxboard
+ rm -f $(DESTDIR)$(bindir)/zic2xpm
+ rm -f $(DESTDIR)$(man6dir)/xboard$(man6ext) $(DESTDIR)$(man6dir)/cmail$(man6ext)
+ rm -f $(DESTDIR)$(man6dir)/zic2xpm$(man6ext)
+ rm -f $(DESTDIR)$(infodir)/xboard.info
-PATH=$$PATH:/sbin:/usr/sbin install-info --delete \
- $(infodir)/xboard.info $(infodir)/dir
+ $(DESTDIR)$(infodir)/xboard.info $(DESTDIR)$(infodir)/dir
clean:
rm -f xboard zic2xpm *.o xboard.txt zic2xpm.txt $(LEX_OUTPUT_ROOT).c
--- a/Makefile.in 2008-02-13 13:20:14.000000000 -0500
+++ b/Makefile.in 2008-02-13 13:21:25.000000000 -0500
@@ -74,7 +74,7 @@ install: installdirs default
$(infodir)/xboard.info $(DESTDIR)/$(infodir)/dir
installdirs: mkinstalldirs
- $(srcdir)/mkinstalldirs $(bindir) $(mandir) $(man6dir) $(infodir)
+ $(srcdir)/mkinstalldirs $(DESTDIR)$(bindir) $(DESTDIR)$(mandir) $(DESTDIR)$(man6dir) $(DESTDIR)$(infodir)
uninstall:
rm -f $(DESTDIR)/$(bindir)/xboard $(DESTDIR)/$(bindir)/cmail $(DESTDIR)/$(bindir)/pxboard

View File

@@ -0,0 +1,18 @@
#############################################################
#
# xboard
#
#############################################################
XBOARD_VERSION = 4.2.7
XBOARD_SOURCE = xboard-$(XBOARD_VERSION).tar.gz
XBOARD_SITE = $(BR2_GNU_MIRROR)/xboard
XBOARD_INSTALL_STAGING = NO
XBOARD_INSTALL_TARGET = YES
XBOARD_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
XBOARD_CONF_OPT --prefix=/usr
XBOARD_DEPENDENCIES = uclibc gnuchess
$(eval $(call AUTOTARGETS,package/games,xboard))