diff options
Diffstat (limited to 'games-arcade/tuxpuck')
-rw-r--r-- | games-arcade/tuxpuck/Manifest | 8 | ||||
-rw-r--r-- | games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch | 11 | ||||
-rw-r--r-- | games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch | 58 | ||||
-rw-r--r-- | games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch | 63 | ||||
-rw-r--r-- | games-arcade/tuxpuck/metadata.xml | 8 | ||||
-rw-r--r-- | games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild | 54 |
6 files changed, 202 insertions, 0 deletions
diff --git a/games-arcade/tuxpuck/Manifest b/games-arcade/tuxpuck/Manifest new file mode 100644 index 000000000000..7561c2c287c2 --- /dev/null +++ b/games-arcade/tuxpuck/Manifest @@ -0,0 +1,8 @@ +AUX tuxpuck-0.8.2-ldflags.patch 407 SHA256 0a5f8610ef0001b5c98834f850ec9a3ade5437703ea04cb363f7cc6f5b39fec5 SHA512 b586dcf8c14dfc591a746023075eb3fb64981f92aaf79c582884950195e25b5b5bada9b5e313c97cbd5efce200c06dee3718e782f94b6a28cbd0796a8b749c05 WHIRLPOOL dfb9569d5ca7f8d5532a6ceb34090bf0ad6f81118429a944e96b6645d86831df9774afa89f1bcd623f72cee7641c9982867deafcdbfbd0a644321c10e47df5a8 +AUX tuxpuck-0.8.2-parallel.patch 1701 SHA256 d243f068d12662342cbcfcca33a2a4610e07d2c0b079ec348b3bbf5c8721f3dd SHA512 960e999273a847a103892103a13c07445442371e4a727d39ae65047ff1b19124db8f63102c8e06f4417499c4ace27cf43bd887376921e4e097406d141784a075 WHIRLPOOL 1ac7d9a3cb330ce2e7922b9c588b53d15f73d3f68ba473b9e891e37f1354a6c36943ec17985e7dd6cf55519e14d3124fbc0dd83712987444feb1bbbb6b8bf522 +AUX tuxpuck-0.8.2-png15.patch 2124 SHA256 cf9a3a51876fd00e1b4fd34afe1ca79763facd6b0326628186b342da0fd9b68f SHA512 b95ad05eaf5790fed9de66b7f6952fe6039b38e5204dda617b9c8bbf69ea613720bdc8111ed58881ddcc2438cb292bc4ddb34b47d2bd25801223ee66fb32ebcf WHIRLPOOL 376fe034331382af62e9e62c6082f5911ba56e127cd92499e4a55645c9d5b3f27c1f90e73e2ec2678a4afd0d42c95d29eb625fe992a46b638b59505a3530351b +DIST tuxpuck-0.8.2.tar.gz 384009 SHA256 62d9604ed69c27b9ca2be1312bc705b36de8ed509c539c6d81193e7846272f18 SHA512 875680f7fd9d4257884c58d8a5529082aac4dc10f1a9c9d08acd4e67ddb5e9c66dd84a4fbcc27e3673e329d845b0966ea683412ffe61f0a403d195eac0f32a46 WHIRLPOOL 04bcb512a7b83cea122e982ce5c9b0c73585305878a959a03e8821109e8786258f4eb1dbb9abc66cf2e08a228ad9663077059b5ef4eafed8df575cec4ff498bd +EBUILD tuxpuck-0.8.2-r1.ebuild 1113 SHA256 a6b79dabeb18ba4647a854578481177e7d1d7bdc30d342c31ae6b8c83a4c055f SHA512 a494abb56e0c3deb311e668955af65e0751ecf7b9e8c7745bf71473c06fccca41710cb05190e88ebe5191ac4fc18f03e757d326121e6b87b0cd6e6f632bd9242 WHIRLPOOL dc0916322e64fa4f5e0bfbd73362d1ca0ef03abadcb92cdd8634613a1f63cde95df2b77de985bda2402973e8d1db263c8f6782e2641364ae241f34c66d1a42f3 +MISC ChangeLog 2546 SHA256 877528fc755793cabf6ab9e69d4e38c8cbba9c83afb3397ac4ed9b42660bc153 SHA512 4cd436bea67181d385bbead14883af10bf72ce9736d716d2d79da18b899f0d59010913d27ef6ff8b84eef8951b4ceaf5011ac869a15a363b7eb0e05013d56957 WHIRLPOOL db065ecec4d82ed0ee35b8777c9c1a3697e6a6803a5883db34a79c1febd3ac50e6f2fde3119750c77e8a6aa4f6b36c83e0395a83197f66ee81b345440c4306ea +MISC ChangeLog-2015 3990 SHA256 aa184e83ec560f60bb6815065b6dbebaccfdafd39da9f66627fe984d3eb36433 SHA512 149d36ed04690f1f2fce2c741a8f1efc0226e36ae09713ef30f268599504aa862e7aa845dcc9fb29cafd4fdf552fe725b44edbc853365b4067eea81fb3bb38ba WHIRLPOOL 01dc46b89becda046137af6f7c6debfde74889eea85f90358b1c4c3695578a29519c1650d8b3277b074c843f4b27876cb29225374c3f88ee5a0aeeef6d7a41ee +MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088 diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch new file mode 100644 index 000000000000..28fcef48a7ec --- /dev/null +++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-ldflags.patch @@ -0,0 +1,11 @@ +--- Makefile.old 2010-10-05 10:34:57.000000000 +0200 ++++ Makefile 2010-10-05 10:35:28.000000000 +0200 +@@ -20,7 +20,7 @@ + + $(NAME) : $(OBJS) + cd data; $(MAKE) +- $(CC) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \ ++ $(CC) $(LDFLAGS) $(CFLAGS) $(OBJS) data/libdata.a `sdl-config --libs` -lm -lpng \ + -ljpeg -lz -lvorbisfile -lvorbis -logg -o $(NAME) + + w32icon.o : data/icons/tuxpuck.ico diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch new file mode 100644 index 000000000000..cdcdecc42c32 --- /dev/null +++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-parallel.patch @@ -0,0 +1,58 @@ +--- data/Makefile.old 2015-01-07 14:22:34.852150894 +0100 ++++ data/Makefile 2015-01-07 14:57:44.079822614 +0100 +@@ -15,20 +15,29 @@ + ar r libdata.a $(OBJS) + ranlib libdata.a + +-$(SOURCES): +- cd ../utils/; $(MAKE) ++monos_fnt.c: + ../utils/ttf2font ttfs/mono.ttf monos.fnt 30 30 + ../utils/data2c monos.fnt monos_fnt ++ rm monos.fnt ++monob_fnt.c: + ../utils/ttf2font ttfs/mono.ttf monob.fnt 45 45 + ../utils/data2c monob.fnt monob_fnt +- rm *.fnt ++ rm monob.fnt ++title_jpg.c: + ../utils/data2c jpgs/title.jpg title_jpg ++board_jpg.c: + ../utils/data2c jpgs/board.jpg board_jpg ++logo_jpg.c: + ../utils/data2c jpgs/logo.jpg logo_jpg ++pad_png.c: pngs/pad.png + ../utils/data2c pngs/pad.png pad_png ++puck_png.c: pngs/puck.png + ../utils/data2c pngs/puck.png puck_png ++scoreboard_png.c: + ../utils/data2c pngs/scoreboard.png scoreboard_png ++mousebar_png.c: + ../utils/data2c pngs/mousebar.png mousebar_png ++glass_png.c: + ../utils/data2c pngs/glass.png glass_png + ../utils/data2c pngs/piece1.png piece1_png + ../utils/data2c pngs/piece2.png piece2_png +@@ -37,15 +46,22 @@ + ../utils/data2c pngs/piece5.png piece5_png + mv glass_png.c temp; cat temp piece?_png.c > glass_png.c + rm piece?_png.c temp ++crash_ogg.c: + ../utils/data2c sounds/crash.ogg crash_ogg ++nock_ogg.c: + ../utils/data2c sounds/nock.ogg nock_ogg ++tux_eyes_spr.c: + # Tux + ../utils/anim tux/eyes.ac tux_eyes.spr + ../utils/data2c tux_eyes.spr tux_eyes_spr + rm tux_eyes.spr ++tux_png.c: tux/tux.png + ../utils/data2c tux/tux.png tux_png ++tux_apps_ogg.c: + ../utils/data2c tux/apps.ogg tux_apps_ogg ++tux_boos_ogg.c: + ../utils/data2c tux/boos.ogg tux_boos_ogg ++arcana_png.c: + # Arcana + ../utils/data2c arcana/arcana.png arcana_png + clean : diff --git a/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch new file mode 100644 index 000000000000..ca9539f39e51 --- /dev/null +++ b/games-arcade/tuxpuck/files/tuxpuck-0.8.2-png15.patch @@ -0,0 +1,63 @@ +--- png.c.old 2011-09-14 16:25:54.415338149 +0200 ++++ png.c 2011-09-14 17:41:02.190803110 +0200 +@@ -38,6 +38,8 @@ + png_color_16 *transv; + SDL_RWops *src = NULL; + Uint32 size; ++ int num_palette; ++ png_colorp png_palette; + + memcpy(&size, data, sizeof(Uint32)); + if (memcounter) +@@ -74,7 +76,7 @@ + * the normal method of doing things with libpng). REQUIRED unless you + * set up your own error handlers in png_create_read_struct() earlier. + */ +- if (setjmp(png_ptr->jmpbuf)) { ++ if (setjmp(png_jmpbuf(png_ptr))) { + SDL_SetError("Error reading the PNG file."); + goto done; + } +@@ -142,9 +144,9 @@ + Rmask = 0x000000FF; + Gmask = 0x0000FF00; + Bmask = 0x00FF0000; +- Amask = (info_ptr->channels == 4) ? 0xFF000000 : 0; ++ Amask = (png_get_channels(png_ptr, info_ptr) == 4) ? 0xFF000000 : 0; + } else { +- int s = (info_ptr->channels == 4) ? 0 : 8; ++ int s = (png_get_channels(png_ptr, info_ptr) == 4) ? 0 : 8; + Rmask = 0xFF000000 >> s; + Gmask = 0x00FF0000 >> s; + Bmask = 0x0000FF00 >> s; +@@ -152,7 +154,7 @@ + } + } + surface = SDL_AllocSurface(SDL_SWSURFACE, width, height, +- bit_depth * info_ptr->channels, Rmask, Gmask, ++ bit_depth * png_get_channels(png_ptr, info_ptr), Rmask, Gmask, + Bmask, Amask); + if (surface == NULL) { + SDL_SetError("Out of memory"); +@@ -197,12 +199,15 @@ + palette->colors[i].g = i; + palette->colors[i].b = i; + } +- } else if (info_ptr->num_palette > 0) { +- palette->ncolors = info_ptr->num_palette; +- for (i = 0; i < info_ptr->num_palette; ++i) { +- palette->colors[i].b = info_ptr->palette[i].blue; +- palette->colors[i].g = info_ptr->palette[i].green; +- palette->colors[i].r = info_ptr->palette[i].red; ++ } else { ++ png_get_PLTE(png_ptr, info_ptr, &png_palette, &num_palette); ++ if (num_palette > 0) { ++ palette->ncolors = num_palette; ++ for (i = 0; i < num_palette; ++i) { ++ palette->colors[i].b = png_palette[i].blue; ++ palette->colors[i].g = png_palette[i].green; ++ palette->colors[i].r = png_palette[i].red; ++ } + } + } + } diff --git a/games-arcade/tuxpuck/metadata.xml b/games-arcade/tuxpuck/metadata.xml new file mode 100644 index 000000000000..78274e0fa550 --- /dev/null +++ b/games-arcade/tuxpuck/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild b/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild new file mode 100644 index 000000000000..567cf9f95789 --- /dev/null +++ b/games-arcade/tuxpuck/tuxpuck-0.8.2-r1.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils games + +DESCRIPTION="Hover hockey" +HOMEPAGE="http://home.no.net/munsuun/tuxpuck/" +SRC_URI="http://home.no.net/munsuun/tuxpuck/files/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 x86 ~x86-fbsd" +IUSE="" + +RDEPEND="media-libs/libsdl + media-libs/libpng:0 + virtual/jpeg:0 + media-libs/libvorbis" +DEPEND="${RDEPEND} + media-libs/freetype:2" + +src_prepare() { + # Bug #376741 - Make unpack call compatible with both + # PMS and <sys-apps/portage-2.1.10.10. + cd man || die + unpack ./${PN}.6.gz + cd .. || die + sed -i \ + -e 's/-Werror//' \ + -e '/^CC/d' \ + Makefile \ + utils/Makefile \ + data/Makefile \ + || die "sed failed" + epatch "${FILESDIR}"/${P}-ldflags.patch \ + "${FILESDIR}"/${P}-png15.patch \ + "${FILESDIR}"/${P}-parallel.patch +} + +src_compile() { + emake -C utils + emake -C data + emake +} + +src_install() { + dogamesbin tuxpuck + doman man/tuxpuck.6 + dodoc *.txt + doicon data/icons/${PN}.ico + make_desktop_entry ${PN} "TuxPuck" /usr/share/pixmaps/${PN}.ico + prepgamesdirs +} |