Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37570803
en ru br
Репозитории ALT

Группа :: Игры/Аркады
Пакет: d1x-rebirth

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Summary: The port of Descent 2 for Linux
Name: d1x-rebirth
Version: 0.54
Release: alt1
License: GPL
Group: Games/Arcade
Url: http://www.dxx-rebirth.de/
Source: http://www.dxx-rebirth.de/download/dxx/oss/src/%{name}_v%version-src-20080629.tar.gz
Source1: %name.png
Source2: http://www.dxx-rebirth.com/download/dxx/res/d1xrdata.zip
Packager: Fr. Br. George <george at altlinux.ru>
Obsoletes: d1x-common

# Automatically added by buildreq on Mon Nov 10 2008

BuildRequires: dos2unix gcc-c++ libGL-devel libSDL-devel libSDL_mixer-devel physfs-devel scons

BuildRequires: desktop-file-utils

%description
This is the port of Descent 1, the famous 3D game for PC.

D1X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
%_gamesdatadir/descent See dxx-readme.txt.

%package sdl
Group: Games/Arcade
Summary: Descent 1 for Linux, SDL version
Requires: d1x-rebirth = %version
Conflicts: d1x-rebirth-gl
Obsoletes: d1x-sdl-full d1x-sdl-shareware

%description sdl
This is the port of Descent 1, the famous 3D game for PC.

D1X is based on source code that was released the 14 December 1999
by Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent. See dxx-readme.txt.

This version uses SDL for Audio, Input/Output and graphics
rendering.

You may use SHAREWARE version of descent with d1x-rebirth-shareware-sdl
You can get it from here:
http://download.descent-network.com/shareware1/descent1/playable/d1shar14.exe
and unrar like this:
unrar x -cl d1shar14.exe /usr/share/games/descent-shareware

%package gl
Group: Games/Arcade
Summary: Descent 1 for Linux, OpenGL version
Requires: d1x-rebirth = %version
Conflicts: d1x-rebirth-sdl
Obsoletes: d1x-gl-full d1x-gl-shareware

%description gl
This is the port of Descent 1, the famous 3D game for PC.

d1X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent.  See dxx-readme.txt.

This version uses SDL for Audio and Input/Output and OpenGL for
graphics rendering.

You may use SHAREWARE version of descent with d1x-rebirth-shareware-gl
You can get it from here:
http://download.descent-network.com/shareware1/descent1/playable/d1shar14.exe
and unrar like this:
unrar x -cl d1shar14.exe /usr/share/games/descent-shareware

%prep
%setup -q -n %name
dos2unix     d1x.ini *.txt
chmod 644 d1x.ini *.txt

%build
# d1x-shareware-sdl
scons -j%__nprocs \
sharepath=%_gamesdatadir/descent \
sdl_only=1 \
shareware=1 \
sdlmixer=1 \
no_asm=1
mv d1x-rebirth-sdl d1x-rebirth-shareware-sdl

# d1x-sdl

scons -j%__nprocs \
sharepath=%_gamesdatadir/descent \
sdl_only=1 \
sdlmixer=1 \
no_asm=1

# d1x-shareware-gl

scons -c
scons -j%__nprocs \
sharepath=%_gamesdatadir/descent-shareware \
sdlmixer=1 \
shareware=1 \
PREFIX=%buildroot%prefix
mv d1x-rebirth-gl d1x-rebirth-shareware-gl

# d1x-gl

scons -c
scons -j%__nprocs \
sharepath=%_gamesdatadir/descent \
sdlmixer=1 \
PREFIX=%buildroot%prefix

%install
# binaries
install -dm 755 %buildroot%_gamesbindir/
install -m 755 d1x-rebirth-gl %buildroot%_gamesbindir/
install -m 755 d1x-rebirth-shareware-gl %buildroot%_gamesbindir/
install -m 755 d1x-rebirth-sdl %buildroot%_gamesbindir/
install -m 755 d1x-rebirth-shareware-sdl %buildroot%_gamesbindir/

install -dm 755 %buildroot%_gamesdatadir/descent
install -dm 755 %buildroot%_gamesdatadir/descent-shareware

# directory for original descent data

install -dm 755 %buildroot%_gamesdatadir/descent/missions

# icon

install -dm 755 %buildroot%_datadir/pixmaps
install -m 644 %SOURCE1 %buildroot%_datadir/pixmaps

# menu

install -dm 755 %buildroot%_desktopdir
cat > %name-sdl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=d1x (SDL version)
Comment=The port of Descent 1 for Linux
Exec=%_gamesbindir/d1x-rebirth-sdl
Icon=%name
Categories=Game;ActionGame;
EOF

cat > %name-gl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=d1x (OpenGL version)
Comment=The port of Descent 1 for Linux
Exec=%_gamesbindir/d1x-rebirth-gl
Icon=%name
Categories=Game;ActionGame;
EOF

sed 's/rebirth/rebirth-shareware/g' %name-gl.desktop > %name-shareware-gl.desktop
sed 's/rebirth/rebirth-shareware/g' %name-sdl.desktop > %name-shareware-sdl.desktop

install -m 644 %name-sdl.desktop %buildroot%_desktopdir
install -m 644 %name-gl.desktop %buildroot%_desktopdir
install -m 644 %name-shareware-gl.desktop %buildroot%_desktopdir
install -m 644 %name-shareware-sdl.desktop %buildroot%_desktopdir
install %SOURCE2 %buildroot%_gamesdatadir/descent/

%files
%doc *.txt *.plist *.ini
%dir %_gamesdatadir/descent
%dir %_gamesdatadir/descent/d1xrdata.zip
%dir %_gamesdatadir/descent-shareware
%dir %_gamesdatadir/descent/missions
%_datadir/pixmaps/%name.png

%files sdl
%doc COPYING*
%_gamesbindir/d1x-rebirth-sdl
%_gamesbindir/d1x-rebirth-shareware-sdl
%_desktopdir/%name-shareware-sdl.desktop
%_desktopdir/%name-sdl.desktop

%files gl
%doc COPYING*
%_gamesbindir/d1x-rebirth-gl
%_gamesbindir/d1x-rebirth-shareware-gl
%_desktopdir/%name-shareware-gl.desktop
%_desktopdir/%name-gl.desktop

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin