Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37569119
en ru br
Репозитории ALT
4.1: 0.2.0-alt2
4.0: 0.2.0-alt2
www.altlinux.org/Changes

Группа :: Игры/Прочее
Пакет: dangerdeep

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

Name: dangerdeep
Version: 0.2.0
Release: alt2

Summary: Danger from the Deep - WW2 german submarine simulation
License: GPL v2
Group: Games/Other

Url: http://dangerdeep.sourceforge.net
Source: http://dl.sourceforge.net/dangerdeep/%name-%version.tar.gz
Patch1: dangerdeep-X11.patch
Patch2: dangerdeep-0.2.0-alt-scons.patch
Packager: Michael Shigorin <mike at altlinux.org>

Requires: dangerdeep-data = %version

# Automatically added by buildreq on Mon Jan 01 2007

BuildRequires: cvs esound flex gcc-c++ ghostscript-utils ImageMagick libfftw3-devel libglut-devel libmesa-devel libSDL-devel libSDL_image-devel libSDL_mixer-devel libSDL_net-devel libX11-devel python-modules-encodings rcs scons tetex-latex

%description
Danger from the deep (aka dangerdeep) is a Free / Open Source World
War II german submarine simulation. It is currently available for
Linux/i386 and Windows, but since it uses SDL/OpenGL it should be
portable to other operating systems or platforms. This game is planned
as tactical simulation and will be as realistic as our time and
knowledge of physics allows. It's current state is ALPHA, but it is
playable.

%package utils
Summary: Danger from the Deep - utils
Group: Games/Other
Requires: %name = %version-%release

%description utils
Danger from the Deep - utilities

%prep
%setup -q
%patch1 -p1
%patch2 -p1

sed -i 's at -g -O2 at %optflags at ' SConstruct
sed -i 's at /usr/local/bin at %_gamesbindir at ' SConstruct
sed -i 's at /usr/local/share/dangerdeep at %_gamesdatadir/dangerdeep at ' SConstruct

%build
scons usex86sse=-1
for i in 16 32 48; do
   convert -size ${i}x$i logo.xpm -resize ${i}x$i %name-${i}x$i.png
done

%install
install -pD -m755 build/linux/%name %buildroot%_gamesbindir/%name
install -pD -m644 doc/man/%name.6 %buildroot%_man6dir/%name.6
install -pD -m644 logo.xpm %buildroot%_pixmapsdir/%name.xpm
install -pD -m644 %name-16x16.png %buildroot/%_miconsdir/%name.png
install -pD -m644 %name-32x32.png %buildroot/%_iconsdir/%name.png
install -pD -m644 %name-48x48.png %buildroot/%_liconsdir/%name.png

mkdir -p %buildroot%_bindir
install build/linux/{crosssection,damagemodel,oceantest,portal,viewmodel} %buildroot%_bindir/

mkdir -p %buildroot%_desktopdir
cat > %buildroot%_desktopdir/alt-%name.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Danger from the deep
Comment=WW2 german submarine simulation
Exec=%_gamesbindir/%name
Icon=%name
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;
EOF

%post
%update_menus

%postun
%clean_menus

%files
%doc CREDITS ChangeLog README
%_gamesbindir/%name
%_desktopdir/*.desktop
%_man6dir/%name.6*
%_pixmapsdir/%name.xpm
%_iconsdir/%name.png
%_iconsdir/hicolor/*/*/*.png

%files utils
%_bindir/crosssection
%_bindir/damagemodel
%_bindir/oceantest
%_bindir/portal
%_bindir/viewmodel

# TODO:

# - optionally (by default for x86_64?) enable MMX/SSE

%changelog

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

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