import of heroes-0.11

Heroes is similar to the "Tron" and "Nibbles" games of yore, but
includes many graphical improvements and new game features. In
it, you must maneuver a small vehicle around a world and collect
powerups while avoiding obstacles.

Flavors:
        sdl     - build with the Simple DirectMedia Layer library
                and SDL_mixer for the sound interface
        ggi     - build with the Generic Graphics Library
                no sound support
This commit is contained in:
pvalchev 2001-08-10 17:00:16 +00:00
parent bd6c834789
commit 9765d1d25c
5 changed files with 355 additions and 0 deletions

83
games/heroes/Makefile Normal file
View File

@ -0,0 +1,83 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/08/10 17:00:16 pvalchev Exp $
COMMENT= "graphically improved game of yore"
VERSION= 0.11
DATAVERSION= 1.1
SOUNDVERSION= 1.0
MUSICVERSION= 1.0
DISTNAME= heroes-${VERSION}
CATEGORIES= games x11
NEED_VERSION= 1.433
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
heroes-data-${DATAVERSION}${EXTRACT_SUFX} \
heroes-sound-effects-${SOUNDVERSION}${EXTRACT_SUFX} \
heroes-sound-tracks-${MUSICVERSION}${EXTRACT_SUFX}
DIST_SUBDIR= heroes
HOMEPAGE= http://heroes.sourceforge.net/
MAINTAINER= Peter Valchev <pvalchev@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= heroes
USE_X11= Yes
USE_GMAKE= Yes
LIB_DEPENDS+= intl.1:gettext-*:devel/gettext
FLAVORS= sdl ggi
FLAVOR?= sdl
.if empty(FLAVOR:L:Msdl) && empty(FLAVOR:L:Mggi)
ERRORS+= "Fatal: Must choose one flavor: sdl or ggi"
.endif
.if ${FLAVOR:L:Msdl} && ${FLAVOR:L:Mggi}
ERRORS+= "Fatal: Choose only one flavor: sdl or ggi"
.endif
.if ${FLAVOR:L:Msdl}
LIB_DEPENDS+= SDL.0.3:sdl-*-!no_x11:devel/sdl \
SDL_mixer.0.0:sdl-mixer-*:devel/sdl-mixer
CONFIGURE_ARGS+= --with-sdl="${LOCALBASE}"
.else
CONFIGURE_ARGS+= --without-sdl --without-sdl-mixer
.endif
.if ${FLAVOR:L:Mggi}
# Sound support is disabled with the ggi flavor since it is dependent
# on sdl-mixer. No alternatives for now.
LIB_DEPENDS+= ggi.2.0:ggi-*:graphics/ggi
CONFIGURE_ARGS+= --with-ggi="${LOCALBASE}"
CONFIGURE_ENV+= LIBS="-pthread"
.else
CONFIGURE_ARGS+= --without-ggi
.endif
SEPARATE_BUILD= concurrent
CONFIGURE_STYLE= gnu
CONFIGURE_ENV+= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= --disable-optimizations \
--without-mikmod
post-install:
.for dir in levels pics tilesets
${INSTALL_DATA_DIR} ${PREFIX}/share/heroes/${dir}
${INSTALL_DATA} ${WRKDIR}/heroes-data-${DATAVERSION}/${dir}/* ${PREFIX}/share/heroes/${dir}
.endfor
${INSTALL_DATA_DIR} ${PREFIX}/share/heroes/sfx
${INSTALL_DATA} ${WRKDIR}/heroes-sound-effects-${SOUNDVERSION}/{*.wav,sfx.conf} ${PREFIX}/share/heroes/sfx
${INSTALL_DATA_DIR} ${PREFIX}/share/heroes/mod
${INSTALL_DATA} ${WRKDIR}/heroes-sound-tracks-${MUSICVERSION}/{*.xm,sound.conf} ${PREFIX}/share/heroes/mod
.include <bsd.port.mk>

12
games/heroes/files/md5 Normal file
View File

@ -0,0 +1,12 @@
MD5 (heroes/heroes-0.11.tar.gz) = 09de470a5b77e26c2b57b88afaa4db62
MD5 (heroes/heroes-data-1.1.tar.gz) = 553785cf7b55ce4662276fa8c1d77a48
MD5 (heroes/heroes-sound-effects-1.0.tar.gz) = f4defb80baf765fceac034a408f7ad2e
MD5 (heroes/heroes-sound-tracks-1.0.tar.gz) = bcde6137a4b21b7395fd3d84b42b7888
RMD160 (heroes/heroes-0.11.tar.gz) = c167dc8e96302d2bc72a8db55f50bb961010d837
RMD160 (heroes/heroes-data-1.1.tar.gz) = 8518dd696524c432a80ae7f1692b1c616dff598c
RMD160 (heroes/heroes-sound-effects-1.0.tar.gz) = e2cae173c50643fa9b80fcc9aca1ba8f6dfa3bf1
RMD160 (heroes/heroes-sound-tracks-1.0.tar.gz) = 95b2747cb0bbd2c462ba2a9761c72daec7d7ea18
SHA1 (heroes/heroes-0.11.tar.gz) = f58fabfe93f9515ac2eb1f1e7cb488d82ab750f4
SHA1 (heroes/heroes-data-1.1.tar.gz) = 8d0fc10b9a80c65cd1d34b9708a4ec902ce673e0
SHA1 (heroes/heroes-sound-effects-1.0.tar.gz) = 353ab26e81eff7792e0b6c570ceeaea8c2f5682a
SHA1 (heroes/heroes-sound-tracks-1.0.tar.gz) = cb03dc03323d31a0cf213758465b4d58e9e5a085

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-src_persona_c,v 1.1.1.1 2001/08/10 17:00:16 pvalchev Exp $
--- src/persona.c.orig Thu Aug 9 12:22:25 2001
+++ src/persona.c Thu Aug 9 12:22:27 2001
@@ -58,7 +58,7 @@ void
user_persona (void)
{
dmsg (D_SYSTEM, "switching to the user persona");
-#if _POSIX_SAVED_IDS && HAVE_SETEGID
+#if defined(_POSIX_SAVED_IDS) && defined(HAVE_SETEGID)
seteuid (user_uid);
setegid (user_gid);
#else
@@ -81,7 +81,7 @@ void
sys_persona (void)
{
dmsg (D_SYSTEM, "switching to the system persona");
-#if _POSIX_SAVED_IDS && HAVE_SETEGID
+#if defined(_POSIX_SAVED_IDS) && defined(HAVE_SETEGID)
seteuid (sys_uid);
setegid (sys_gid);
#else

12
games/heroes/pkg/DESCR Normal file
View File

@ -0,0 +1,12 @@
Heroes is similar to the "Tron" and "Nibbles" games of yore, but
includes many graphical improvements and new game features. In
it, you must maneuver a small vehicle around a world and collect
powerups while avoiding obstacles.
Flavors:
sdl - build with the Simple DirectMedia Layer library
and SDL_mixer for the sound interface
ggi - build with the Generic Graphics Library
no sound support
WWW: ${HOMEPAGE}

227
games/heroes/pkg/PLIST Normal file
View File

@ -0,0 +1,227 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/08/10 17:00:16 pvalchev Exp $
@unexec install-info --delete --info-dir=%D/info %D/info/heroes.info
bin/heroes
info/heroes.info
man/man6/heroes.6
share/heroes${SYSCONFDIR}/heroesrc
share/heroes/levels/Makefile.am
share/heroes/levels/Makefile.in
share/heroes/levels/level.lst
share/heroes/levels/niv010.lvl
share/heroes/levels/niv011.lvl
share/heroes/levels/niv012.lvl
share/heroes/levels/niv013.lvl
share/heroes/levels/niv014.lvl
share/heroes/levels/niv015.lvl
share/heroes/levels/niv016.lvl
share/heroes/levels/niv017.lvl
share/heroes/levels/niv018.lvl
share/heroes/levels/niv019.lvl
share/heroes/levels/niv020.lvl
share/heroes/levels/niv021.lvl
share/heroes/levels/niv022.lvl
share/heroes/levels/niv023.lvl
share/heroes/levels/niv024.lvl
share/heroes/levels/niv025.lvl
share/heroes/levels/niv026.lvl
share/heroes/levels/niv027.lvl
share/heroes/levels/niv028.lvl
share/heroes/levels/niv029.lvl
share/heroes/levels/niv030.lvl
share/heroes/levels/niv031.lvl
share/heroes/levels/niv032.lvl
share/heroes/levels/niv033.lvl
share/heroes/levels/niv034.lvl
share/heroes/levels/niv035.lvl
share/heroes/levels/niv036.lvl
share/heroes/levels/niv037.lvl
share/heroes/levels/niv038.lvl
share/heroes/levels/niv039.lvl
share/heroes/levels/niv040.lvl
share/heroes/levels/niv041.lvl
share/heroes/levels/niv042.lvl
share/heroes/levels/niv043.lvl
share/heroes/levels/niv044.lvl
share/heroes/levels/niv045.lvl
share/heroes/levels/niv046.lvl
share/heroes/levels/niv047.lvl
share/heroes/levels/niv048.lvl
share/heroes/levels/niv049.lvl
share/heroes/levels/niv050.lvl
share/heroes/levels/niv051.lvl
share/heroes/levels/niv052.lvl
share/heroes/levels/niv053.lvl
share/heroes/levels/niv054.lvl
share/heroes/levels/niv055.lvl
share/heroes/levels/niv056.lvl
share/heroes/levels/niv057.lvl
share/heroes/levels/niv058.lvl
share/heroes/levels/niv059.lvl
share/heroes/levels/niv060.lvl
share/heroes/levels/niv061.lvl
share/heroes/levels/niv062.lvl
share/heroes/levels/niv063.lvl
share/heroes/levels/niv064.lvl
share/heroes/levels/niv065.lvl
share/heroes/levels/niv066.lvl
share/heroes/levels/niv067.lvl
share/heroes/levels/niv068.lvl
share/heroes/levels/niv070.lvl
share/heroes/levels/niv071.lvl
share/heroes/levels/niv072.lvl
share/heroes/levels/niv073.lvl
share/heroes/levels/niv074.lvl
share/heroes/levels/niv075.lvl
share/heroes/levels/niv076.lvl
share/heroes/levels/niv077.lvl
share/heroes/levels/niv078.lvl
share/heroes/levels/niv080.lvl
share/heroes/levels/niv081.lvl
share/heroes/levels/niv082.lvl
share/heroes/levels/niv083.lvl
share/heroes/levels/niv084.lvl
share/heroes/levels/niv085.lvl
share/heroes/levels/niv086.lvl
share/heroes/levels/niv087.lvl
share/heroes/levels/niv088.lvl
share/heroes/levels/niv090.lvl
share/heroes/levels/niv091.lvl
share/heroes/levels/niv092.lvl
share/heroes/levels/niv093.lvl
share/heroes/levels/niv094.lvl
share/heroes/levels/niv095.lvl
share/heroes/levels/niv096.lvl
share/heroes/levels/niv097.lvl
share/heroes/levels/niv100.lvl
share/heroes/levels/niv101.lvl
share/heroes/levels/niv102.lvl
share/heroes/levels/niv103.lvl
share/heroes/levels/niv104.lvl
share/heroes/levels/niv105.lvl
share/heroes/levels/niv106.lvl
share/heroes/levels/niv107.lvl
share/heroes/levels/niv108.lvl
share/heroes/mod/endscroll.xm
share/heroes/mod/heroes01.xm
share/heroes/mod/heroes02.xm
share/heroes/mod/heroes03.xm
share/heroes/mod/heroes04.xm
share/heroes/mod/heroes05.xm
share/heroes/mod/heroes06.xm
share/heroes/mod/heroes07.xm
share/heroes/mod/heroes08.xm
share/heroes/mod/heroes09.xm
share/heroes/mod/heroes10.xm
share/heroes/mod/intro.xm
share/heroes/mod/menu.xm
share/heroes/mod/sound.conf
share/heroes/pics/Makefile.am
share/heroes/pics/Makefile.in
share/heroes/pics/arrow.fig
share/heroes/pics/arrow.pcx
share/heroes/pics/background.pcx
share/heroes/pics/bonusa.pcx
share/heroes/pics/bonusb.pcx
share/heroes/pics/edit.pcx
share/heroes/pics/editp01.pcx
share/heroes/pics/editp02.pcx
share/heroes/pics/editp03.pcx
share/heroes/pics/editp04.pcx
share/heroes/pics/editp05.pcx
share/heroes/pics/editp06.pcx
share/heroes/pics/editp07.pcx
share/heroes/pics/editp08.pcx
share/heroes/pics/editp09.pcx
share/heroes/pics/editp10.pcx
share/heroes/pics/erase.pcx
share/heroes/pics/fontdeck.pcx
share/heroes/pics/fontem.pcx
share/heroes/pics/fontem2.pcx
share/heroes/pics/fontread.pcx
share/heroes/pics/helpics.pcx
share/heroes/pics/heroes.pcx
share/heroes/pics/intro.pcx
share/heroes/pics/jukebox.pcx
share/heroes/pics/newlevel.pcx
share/heroes/pics/olympus.pcx
share/heroes/pics/trail.pcx
share/heroes/pics/typonus.pcx
share/heroes/pics/vehic.pcx
share/heroes/sfx/alien.wav
share/heroes/sfx/argent01.wav
share/heroes/sfx/bonus.wav
share/heroes/sfx/claxon.wav
share/heroes/sfx/clock01.wav
share/heroes/sfx/clock02.wav
share/heroes/sfx/coins.wav
share/heroes/sfx/dream.wav
share/heroes/sfx/ecrase02.wav
share/heroes/sfx/explo01.wav
share/heroes/sfx/finlevel.wav
share/heroes/sfx/foule1.wav
share/heroes/sfx/foule2.wav
share/heroes/sfx/go.wav
share/heroes/sfx/ho_yeh.wav
share/heroes/sfx/invinc.wav
share/heroes/sfx/life.wav
share/heroes/sfx/lmoins.wav
share/heroes/sfx/lplus.wav
share/heroes/sfx/menu01.wav
share/heroes/sfx/menu02.wav
share/heroes/sfx/menu03.wav
share/heroes/sfx/mort_b1.wav
share/heroes/sfx/mort_b2.wav
share/heroes/sfx/mort_b3.wav
share/heroes/sfx/mort_b4.wav
share/heroes/sfx/no.wav
share/heroes/sfx/oh.wav
share/heroes/sfx/power_up.wav
share/heroes/sfx/sfx.conf
share/heroes/sfx/sleep.wav
share/heroes/sfx/speedown.wav
share/heroes/sfx/speedup.wav
share/heroes/sfx/stop.wav
share/heroes/tilesets/Makefile.am
share/heroes/tilesets/Makefile.in
share/heroes/tilesets/level01.glz
share/heroes/tilesets/level01.pcx
share/heroes/tilesets/level01.pie
share/heroes/tilesets/level02.glz
share/heroes/tilesets/level02.pcx
share/heroes/tilesets/level02.pie
share/heroes/tilesets/level03.glz
share/heroes/tilesets/level03.pcx
share/heroes/tilesets/level03.pie
share/heroes/tilesets/level04.glz
share/heroes/tilesets/level04.pcx
share/heroes/tilesets/level04.pie
share/heroes/tilesets/level05.glz
share/heroes/tilesets/level05.pcx
share/heroes/tilesets/level05.pie
share/heroes/tilesets/level06.glz
share/heroes/tilesets/level06.pcx
share/heroes/tilesets/level06.pie
share/heroes/tilesets/level07.glz
share/heroes/tilesets/level07.pcx
share/heroes/tilesets/level07.pie
share/heroes/tilesets/level08.glz
share/heroes/tilesets/level08.pcx
share/heroes/tilesets/level08.pie
share/heroes/tilesets/level09.glz
share/heroes/tilesets/level09.pcx
share/heroes/tilesets/level09.pie
share/heroes/tilesets/level10.glz
share/heroes/tilesets/level10.pcx
share/heroes/tilesets/level10.pie
share/locale/de/LC_MESSAGES/heroes.mo
share/locale/fr/LC_MESSAGES/heroes.mo
share/locale/it/LC_MESSAGES/heroes.mo
share/locale/nl/LC_MESSAGES/heroes.mo
@dirrm share/heroes/tilesets
@dirrm share/heroes/sfx
@dirrm share/heroes/pics
@dirrm share/heroes/mod
@dirrm share/heroes/levels
@dirrm share/heroes${SYSCONFDIR}
@dirrm share/heroes
@exec install-info --info-dir=%D/info %D/info/heroes.info