diff options
Diffstat (limited to 'games-arcade/tecnoballz')
-rw-r--r-- | games-arcade/tecnoballz/Manifest | 8 | ||||
-rw-r--r-- | games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch | 116 | ||||
-rw-r--r-- | games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch | 11 | ||||
-rw-r--r-- | games-arcade/tecnoballz/files/tecnoballz-0.92-gcc6.patch | 45 | ||||
-rw-r--r-- | games-arcade/tecnoballz/metadata.xml | 15 | ||||
-rw-r--r-- | games-arcade/tecnoballz/tecnoballz-0.92.ebuild | 44 |
6 files changed, 239 insertions, 0 deletions
diff --git a/games-arcade/tecnoballz/Manifest b/games-arcade/tecnoballz/Manifest new file mode 100644 index 000000000000..7e66d10eea7a --- /dev/null +++ b/games-arcade/tecnoballz/Manifest @@ -0,0 +1,8 @@ +AUX tecnoballz-0.92-automake.patch 3753 SHA256 d77968e6d0c6ba19432748bcf37ed319b024423b62852c3b8b37cb75b0e17578 SHA512 d18460a5129f97315384061858aa8f0b7d899daf3420ed442bc76840c013a732add50309d437c9dca37902b1d8820a7ff58839785017f4d314f614195c7e51d2 WHIRLPOOL d9a384ab55ddf2e333ac316cfa743e5463d43bada676a3a8792c8ffa8637fb3a5180d8e4b452f32c6b4e649b778c0f86bd201d23d198fd027a0c96a15a040def +AUX tecnoballz-0.92-gcc43.patch 456 SHA256 8cee90f1123e0b066d0961f6ca31d16a8c863343b74de90104967fe79a0d5463 SHA512 2fd980efff3bc9f1c68cd8c882cce877e1539c02fefeb241ff7c495fe2c4e872d143271cbaec45a576fd125c01fe45c4652201db9d20fb47eb51e7a372f1a2e7 WHIRLPOOL ef0a03d5d8cd104ba39f8e4777e60d1ff4574fe8728121747321112a32c6146538e07cca4ec43dc3578e49f62f25a6dc0322e781e3a173a5abd7713097fea7a1 +AUX tecnoballz-0.92-gcc6.patch 1583 SHA256 d87b1621342b62fe927c882728f1d6531a2b06b72f42f00257667c1f2f283b24 SHA512 ffaa131b2d23c6cbb2cdba16443d898dd3719b54eac7f71b3c24678b4050520df19155ae92d1b095f9da4bf33cc80496ff57a4f4bcf78073dd220ce0face0c89 WHIRLPOOL a0d0d3b33f0860b87d0d5844b5f1f352229d2db1a6917bdfec1f85ba17ad9714416698b375cbcaca3de3eb32b522f8a69d1b8b968286734a1afbe9ca505f5e86 +DIST tecnoballz-0.92.tgz 2763879 SHA256 3ae9d084d7a65af52ef8657c2adbeda0a0747825f9b3b58b8352b7403d5b95b5 SHA512 e3868e846cdebaed6ee78050560be86557c6d01ee6512375a09eccbcf70f0cd12e419c6997a348794a41dfb75f0f3cb70321f1bb9a9bf1156a90976b0e401e13 WHIRLPOOL f631104e0147ae965c8d2c2ea292c538ca1160b823e68165353fb013dcca2076ff5b8c1ceaa6633cf68298b3b52832d567b37f35c25413ea4cade57ce203e5df +EBUILD tecnoballz-0.92.ebuild 1130 SHA256 917b174e133e68503f9579ca85e56cde92d78f8985d4293f65797089d3ee3771 SHA512 eb07989179437915db2d0e74fc8f8a912e4bc9ec7abb9829e4ed082cf226a9da66e068c1a8abf83c9a76971772f93b948acfaa1a3396af369eda0472721360ea WHIRLPOOL a77b3f8de1c428faf0bfcd6361d039422a852c9ffa8908db7a267b7496da274b69431ca18df463db5fe58f8826d01a3560ae10fc833dcfc174816a3ccda31da7 +MISC ChangeLog 2515 SHA256 1dee24ac0c15d22ee6e3e4ccbbb74afb54e3e6d8e48595979b22f997e0c4c02b SHA512 646eb96193858c963ea3f8c1559ec84b7d53986f7bdda1da6c344af5ffc384c68d9208a6d646c9f2efdb8e70ae76d47e0ff7282b4eea82990c2aeb35d4657e53 WHIRLPOOL dd189ab1841bf9b64f315d57fa9623da93d56cf937c84d59c9e2fa35f6187c8e75823a3e27e710b4b0282f458d5e35f079af4fe8c1f0424bc73686aad163e9e4 +MISC ChangeLog-2015 1228 SHA256 ac6e6785d71e384790848fdc2abf1021c5b4bcf372a177a684d5d09f68854dae SHA512 62fe05cb96eb69951da0706b1c676751cc82fdeace5c6eafe609f15b4ff14fec4ed028bf4bb9dcac20b3a4561a46848e3a51c6005617283ad3e6d07392884562 WHIRLPOOL 003636462b091eaf0b3c1b50348bf5e483e50ed26c74f27189ac7781c942521120af5298ff353993b62122359dc5714fcd955ea25fd53468e25cd16aac15d98f +MISC metadata.xml 639 SHA256 6181d661e8ae66e121393914a133d25394cad45a3bdd00e83d135d72b505cd0f SHA512 edcb9678cca9ef9f537c4f2716799a5aa6a5890188173c06d9702fa99cb68411003d0aeb04e4df90faeb6efcdd024c4e494a51ed8645b7217fc073aa9916b8a5 WHIRLPOOL 4d730dda698a73434b48c1d81a97f2f7789a47614caf17aab8243a9ca839a7189e64384b403b0d49a780be2bfc88366c7687048a48e33f7a8207148c2b772642 diff --git a/games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch b/games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch new file mode 100644 index 000000000000..b2f0379e4899 --- /dev/null +++ b/games-arcade/tecnoballz/files/tecnoballz-0.92-automake.patch @@ -0,0 +1,116 @@ +--- Makefile.am.old 2008-10-07 10:42:11.000000000 +0200 ++++ Makefile.am 2008-10-07 10:49:35.000000000 +0200 +@@ -1,18 +1,6 @@ + +-gamesdir = $(prefix)/games +-scoredir = /var/games/tecnoballz +-score = tecnoballz.hi ++localstate_DATA = tecnoballz.hi + +-SUBDIRS = src ++SUBDIRS = src man + +-pkgdatadir = $(mandir)/man6 +-dist_pkgdata_DATA = man/tecnoballz.6 +- +-install-data-hook: +- -chown root:games "$(DESTDIR)/$(gamesdir)/tecnoballz" +- -chmod 2755 "$(DESTDIR)/$(gamesdir)/tecnoballz" +- $(INSTALL) -d $(DESTDIR)/$(scoredir) +- $(INSTALL) $(score) $(DESTDIR)/$(scoredir) +- -chown root:games "$(DESTDIR)/$(scoredir)/$(score)" +- -chmod 664 "$(DESTDIR)/$(scoredir)/$(score)" + +--- src/Makefile.am.old 2008-10-07 11:16:44.000000000 +0200 ++++ src/Makefile.am 2008-10-07 11:18:32.000000000 +0200 +@@ -1,14 +1,12 @@ + + NULL = +-gamesdir = $(prefix)/games +-scoredir = /var/games/tecnoballz + score = tecnoballz.hi + + SUBDIRS = TecnoballZ + +-games_PROGRAMS = tecnoballz ++bin_PROGRAMS = tecnoballz + tecnoballz_SOURCES = $(SOURCES_MAIN) +-tecnoballz_CXXFLAGS = -DDATADIR=\"$(datadir)/tecnoballz\" -DSCOREFILE=\"$(scoredir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@ @MIKMOD_FLAGS@ ++tecnoballz_CXXFLAGS = -DDATADIR=\"$(datadir)/tecnoballz\" -DSCOREFILE=\"$(localstatedir)/$(score)\" @XLIB_CFLAGS@ @SDL_CFLAGS@ @MIKMOD_FLAGS@ + tecnoballz_LDADD = @XLIB_LIBS@ @SDL_LIBS@ @MM_LIBS@ @MIKMOD_LIBS@ -L. + + SOURCES_MAIN = \ +--- src/TecnoballZ/Makefile.am.old 2008-10-07 17:17:47.000000000 +0200 ++++ src/TecnoballZ/Makefile.am 2008-10-07 17:20:03.000000000 +0200 +@@ -1,6 +1,6 @@ + NULL = + +-SUBDIRS = lores hires textures sounds musics ++SUBDIRS = lores hires textures sounds musics texts + + pkgdatadir = $(datadir)/tecnoballz + dist_pkgdata_DATA = \ +@@ -14,4 +14,5 @@ + tilemap-guardians_40.data \ + tilemap-menu_20.data \ + tilemap-menu_40.data \ ++ levels-data.xml \ + $(NULL) +--- /dev/null 2008-09-26 15:07:13.448004290 +0200 ++++ src/TecnoballZ/texts/Makefile.am 2008-10-07 17:30:18.000000000 +0200 +@@ -0,0 +1,11 @@ ++textsdir = $(pkgdatadir)/texts ++texts_DATA = main_menu_en.txt \ ++ main_menu_fr.txt \ ++ popup_menu_en.txt \ ++ popup_menu_fr.txt \ ++ scrolltext_en.txt \ ++ scrolltext_fr.txt \ ++ shop_en.txt \ ++ shop_fr.txt \ ++ short_info_messages_en.txt \ ++ short_info_messages_fr.txt +--- configure.ac.old 2008-10-08 23:10:26.000000000 +0200 ++++ configure.ac 2008-10-08 23:11:08.000000000 +0200 +@@ -50,21 +50,6 @@ + + LDFLAGS_="${LDFLAGS_save}" + +-AC_CHECK_LIB(vorbisfile, ov_raw_seek, [ +- MM_LIBS="${MM_LIBS} -lvorbisfile" +-],[ +- AC_MSG_ERROR(Could not find the vorbisfile lib : -lvorbisfile) +-]) +-AC_CHECK_LIB(ogg, ogg_stream_packetin, [ +- MM_LIBS="${MM_LIBS} -logg" +-],[ +- AC_MSG_ERROR(Could not find the ogg lib : -logg) +-]) +-AC_CHECK_LIB(smpeg, SMPEG_play, [ +- MM_LIBS="${MM_LIBS} -lsmpeg" +-],[ +- AC_MSG_ERROR(Could not find the smpeg lib : -lsmpeg) +-]) + AC_SUBST(MM_LIBS) + + AC_CHECK_LIB(mikmod, Player_Stop, [ +@@ -81,5 +81,8 @@ + + + dnl Output makefiles +-AC_OUTPUT(Makefile src/Makefile src/TecnoballZ/Makefile src/TecnoballZ/hires/Makefile src/TecnoballZ/lores/Makefile src/TecnoballZ/textures/Makefile src/TecnoballZ/musics/Makefile src/TecnoballZ/sounds/Makefile) ++AC_OUTPUT(Makefile src/Makefile src/TecnoballZ/Makefile src/TecnoballZ/hires/Makefile src/TecnoballZ/lores/Makefile src/TecnoballZ/textures/Makefile src/TecnoballZ/musics/Makefile src/TecnoballZ/sounds/Makefile ++ src/TecnoballZ/texts/Makefile ++ man/Makefile ++ man/fr/Makefile) + +--- /dev/null 2008-09-26 15:07:13.448004290 +0200 ++++ man/Makefile.am 2008-10-08 10:36:15.000000000 +0200 +@@ -0,0 +1,2 @@ ++SUBDIRS = fr ++man_MANS = tecnoballz.6 +--- /dev/null 2008-09-26 15:07:13.448004290 +0200 ++++ man/fr/Makefile.am 2008-10-08 10:36:15.000000000 +0200 +@@ -0,0 +1,2 @@ ++mandir = @mandir@/fr ++man_MANS = tecnoballz.6 diff --git a/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch b/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch new file mode 100644 index 000000000000..ae190abd64c6 --- /dev/null +++ b/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc43.patch @@ -0,0 +1,11 @@ +--- include/surface_sdl.h.old 2008-10-07 10:16:25.000000000 +0200 ++++ include/surface_sdl.h 2008-10-07 10:16:38.000000000 +0200 +@@ -46,7 +46,7 @@ + ~surface_sdl (); + SDL_Surface* get_surface (); + char* get_pixel_data (); +- char* get_pixel_data (Uint32 coord_x, Uint32 coord_x); ++ char* get_pixel_data (Uint32 coord_x, Uint32 coord_y); + Uint32 get_row_size (); + Uint32 get_offset (Uint32 xcoord, Uint32 ycoord); + void clear (Uint32 color = 0); diff --git a/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc6.patch b/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc6.patch new file mode 100644 index 000000000000..f06a2ac2a0db --- /dev/null +++ b/games-arcade/tecnoballz/files/tecnoballz-0.92-gcc6.patch @@ -0,0 +1,45 @@ +Bug: https://bugs.gentoo.org/show_bug.cgi?id=610974 +Commit: https://github.com/brunonymous/tecnoballz/commit/29c5f137555897c8fb73b4780295524b214b24a2 + +--- a/include/tiles_background.h ++++ b/include/tiles_background.h +@@ -47,7 +47,7 @@ + static tiles_background* tiles_background_singleton; + static Sint32 table_pos1[16]; + static Sint32 table_pos2[16]; +- static char couleurs[448]; ++ static unsigned char couleurs[448]; + static const Sint32 TILES_32_WIDTH = 32; + static const Sint32 TILES_32_HEIGHT = 32; + static const Sint32 TILES_64_WIDTH = 64; +@@ -63,7 +63,7 @@ + * or TILES_32x32_WITH_4_COLORS */ + Uint32 type_of_tiles; + /** 4 color palette index */ +- Uint32 palette_index; ++ Sint32 palette_index; + + bitmap_data *current_tiles; + Uint32 *map_tiles; +--- a/src/tiles_background.cc ++++ b/src/tiles_background.cc +@@ -663,8 +663,8 @@ + + } + palette_index = pal_index; +- char *color = &couleurs[0]; +- unsigned char *colPT = (unsigned char *) (color) + pal_index; ++ unsigned char *color = &couleurs[0]; ++ unsigned char *colPT = (color) + pal_index; + SDL_Color *pal = display->get_palette (); + SDL_Color *lighted = pal + 1; + SDL_Color *dark = lighted + 128; +@@ -702,7 +702,7 @@ + * 4 * 4 : 16 composantes by palette + * 112 * 4 : 448 composantes + */ +-char ++unsigned char + tiles_background::couleurs[448] = { + 0x00, 0x40, 0x20, 0x40, 0x00, 0x60, 0x40, 0x60, 0x00, 0x80, 0x60, 0x80, + 0x00, 0xA0, 0x80, 0xA0, 0x00, 0x00, 0x20, 0x40, 0x00, 0x20, diff --git a/games-arcade/tecnoballz/metadata.xml b/games-arcade/tecnoballz/metadata.xml new file mode 100644 index 000000000000..5dbd2510d79a --- /dev/null +++ b/games-arcade/tecnoballz/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer type="project"> + <email>games@gentoo.org</email> + <name>Gentoo Games Project</name> +</maintainer> +<longdescription lang="en"> +A exciting Brick Breaker with 50 levels of game and 11 special levels, +distributed on the 2 modes of game to give the player a sophisticated system of +attack weapons with an enormous power of fire that can be build by gaining +bonuses. Numerous decors, musics and sounds complete this great game. This +game was ported from the Commodore Amiga. +</longdescription> +</pkgmetadata> diff --git a/games-arcade/tecnoballz/tecnoballz-0.92.ebuild b/games-arcade/tecnoballz/tecnoballz-0.92.ebuild new file mode 100644 index 000000000000..9ac9105bdc1a --- /dev/null +++ b/games-arcade/tecnoballz/tecnoballz-0.92.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools games + +DESCRIPTION="An exciting Brick Breaker" +HOMEPAGE="http://linux.tlk.fr/games/TecnoballZ/" +SRC_URI="http://linux.tlk.fr/games/TecnoballZ/download/${P}.tgz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="media-libs/libsdl + media-libs/sdl-mixer + media-libs/sdl-image[png] + media-libs/libmikmod:0" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc6.patch \ + "${FILESDIR}"/${P}-automake.patch + mv man/${PN}.fr.6 man/fr/${PN}.6 || die + # don't combine explicit and implicit rules for make 3.82 (bug #334629) + sed -i -e '/supervisor.c /s/.c /.cc /' src/Makefile.am || die + sed -i -e '/^CXXFLAGS=/d' configure.ac || die + eautoreconf +} + +src_install() { + default + fperms g+w "${GAMES_STATEDIR}"/${PN}.hi || die + make_desktop_entry ${PN} Tecnoballz + prepgamesdirs +} + +pkg_postinst() { + has_version "media-libs/sdl-mixer[mikmod]" \ + || ewarn "To have background music, emerge sdl-mixer with USE=mikmod" + games_pkg_postinst +} |