diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /games-arcade/sdl-sopwith |
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/sdl-sopwith')
-rw-r--r-- | games-arcade/sdl-sopwith/Manifest | 7 | ||||
-rw-r--r-- | games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch | 42 | ||||
-rw-r--r-- | games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch | 24 | ||||
-rw-r--r-- | games-arcade/sdl-sopwith/metadata.xml | 11 | ||||
-rw-r--r-- | games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild | 39 |
5 files changed, 123 insertions, 0 deletions
diff --git a/games-arcade/sdl-sopwith/Manifest b/games-arcade/sdl-sopwith/Manifest new file mode 100644 index 000000000000..dcd6114b61e7 --- /dev/null +++ b/games-arcade/sdl-sopwith/Manifest @@ -0,0 +1,7 @@ +AUX sdl-sopwith-1.7.5-nogtk.patch 972 SHA256 b77bd7f2c78777ec0dc738fd3121277bbf0dd4ca5cc22ad23d714cd225f3cb72 SHA512 2ae4ae6ace64af55d46fe543c7573d5306c1c410e0e21c6ab58cb893cdb79c8c5e6ac49a4203671c3697c2590d85f0e6d776ae43ed29a76acf2e6669efa81c17 WHIRLPOOL 300cdcbf635bfe4a8784b2ac1678efa7cba6af3c1d5ff8702c5bbf196a0c8210006e03a55360cc106d70ee73878d81c5a1b11aff2700336424bdb9cbf042dc29 +AUX sdl-sopwith-1.7.5-video-fix.patch 670 SHA256 ea725ad194ae303aede2614799ea32f1aca32c3720f297c089dd7dcbc27d8d78 SHA512 0ecfd8c7cd3161c1b398a27330e4ce26d52e8c42add2ab0bade235d41c716a522eb7499f2960a2ce0748585045b15f5580054acddf5f8707d6f4552d4db7c701 WHIRLPOOL 3e4384a0554807e0fcb78f91e6f9051a5278ec9dcfe7ce4e24225ee484e1caa44c700908cf6af4112d6754bd4c08d0b49cc486b4308d7edacd17b80da60cba4c +DIST sopwith-1.7.5.tar.gz 280883 SHA256 71cfffb56cfa8c44cb4e5ffdd826ca7146ef2879d679219d92c06be6b5248b9a SHA512 ea78706d0190648be269142a29d10340c5181563959b0a329b802b9d9128a9dcb1e01760737269ec22883adf5b6c02c5049c8fc7b44e4eaa9f381b87abc7acae WHIRLPOOL 11c7ff9a6c333f46bb98b40e1943e78fb9a6079742dac7fcd3c621def3a0109b49b987627af00dd3112a9bef8c5a0fb9631d787b5b27a452656c06ed8aeb67d6 +EBUILD sdl-sopwith-1.7.5-r1.ebuild 830 SHA256 b5f61e3b673b12e38dbd4f87f00045a914efd83527126c8f12c9542baeb33add SHA512 6ede0df4449750dab2f50bc8481b3192b753d36a0be682d470b0239cfe26fbc5fa3c8b37e19f8f54575aa564fff01cde70c182819b26c9765c9cd5ef80744129 WHIRLPOOL eb29ee8e0d7565522bf4e1338d8fab1c697bd5c0998e0e180666fcc55a070b9b5ac8ef6afdc8eb4910e74ea52c28432130bca171a2ea2ae039be37888b87c54d +MISC ChangeLog 2533 SHA256 3a77a13fe2d2b778d47367afb2c30642827de8fffe9405892b31c90be576f375 SHA512 8517d098b4488f898a869291251d15006e8e22b41fb99997f03cff6eca2aeb4ff337fede60d379e4ec36bdc157ac67a9e92a33266dd64909065a1f60da1d5af4 WHIRLPOOL 1493326e7f172f39f8ac9e9506e3dddab4498a4cbdf1c21d02dbf7ba94da9fac2cabb3efb2876f218ece7c675b96222059334e1f4d87b5238a30d7e8c0a90ca3 +MISC ChangeLog-2015 3438 SHA256 576e7994a96baa972c699b56c24534b6d5b52892bd47b36778f6977060d82055 SHA512 72c2126dcde1168430f56b635ab9c502660c1a193ddcc99409c4e4de89f0e01f8a3319e919f364c7ea97a5b8048c0f537f69e329a8e65ccd5c700d4b95c6d0e2 WHIRLPOOL 05e1e456ed5edaf8fad6aad072c06eb6fe629718a9b5d81e94bba690ec365f548c10ab456e8d16bcea80079b12df01ebb4a771ecce610f5e6936783352536534 +MISC metadata.xml 334 SHA256 aebdaeffbde8a614d71cb56853928d8ac12fa9333f82eac6b241cad0a64e02cf SHA512 3f9e062ee8d945112f164669980a7c8a8bf5982c6f0f889d100319b7959564752502b6a7b6cc30665829f6865e0f0a81a083cbf462182f5918e9386e6aafca39 WHIRLPOOL 6c5705681ac9634748dbcdda7cf14f1e687e9bd67070cbe4bb8a1809aa6b9127d2feae5607ef08bf13c4b72876d95d4e2e152ab2a851feb10d7fd297dd0c27b5 diff --git a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch new file mode 100644 index 000000000000..e4fb1715d8d4 --- /dev/null +++ b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-nogtk.patch @@ -0,0 +1,42 @@ +--- configure.in.old ++++ configure.in +@@ -61,11 +61,6 @@ + SOPWITH_SUBDIRS="$SOPWITH_SUBDIRS sdl" + ],) + +-PKG_CHECK_MODULES(GTK, glib-2.0 >= 2.0 gtk+-2.0 >= 2.0, [ +- SOPWITH_BINS="$SOPWITH_BINS" # gtksopwith" +- SOPWITH_SUBDIRS="$SOPWITH_SUBDIRS" # gtk" +-],) +- + AC_SUBST(SOPWITH_BINS) + AC_SUBST(SOPWITH_SUBDIRS) + +@@ -71,7 +71,7 @@ + + dnl check for TCPIP support + +-AC_CHECK_HEADER(netinet/ip.h, AC_DEFINE(TCPIP),,) ++AC_CHECK_HEADER(netinet/ip.h, AC_DEFINE([TCPIP], [1], [TCP/IP support]),,) + + dnl generate Makefiles + +--- src/Makefile.am.old ++++ src/Makefile.am +@@ -6,7 +6,7 @@ + bin_PROGRAMS = @SOPWITH_BINS@ + EXTRA_PROGRAMS = sopwith gtksopwith psopwith + +-CFLAGS = @CFLAGS@ -I.. ++AM_CFLAGS = @SDL_CFLAGS@ -I.. + + COMMON_SRC = \ + video.h swcollsn.c swgames.h swmain.h swutil.h \ +--- src/sdl/Makefile.am.old ++++ src/sdl/Makefile.am +@@ -1,4 +1,4 @@ +-CFLAGS=@CFLAGS@ @SDL_CFLAGS@ -I.. ++AM_CFLAGS = @SDL_CFLAGS@ -I.. + + noinst_LIBRARIES = libsdlsopwith.a + diff --git a/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch new file mode 100644 index 000000000000..feab635518f1 --- /dev/null +++ b/games-arcade/sdl-sopwith/files/sdl-sopwith-1.7.5-video-fix.patch @@ -0,0 +1,24 @@ +Upstream patch: fix segfault while video device detection. +Discovered here - https://bugs.gentoo.org/show_bug.cgi?id=458504 + +--- src/sdl/video.c.orig 2013-02-21 11:48:57.000000000 -0400 ++++ src/sdl/video.c 2013-02-21 11:49:35.000000000 -0400 +@@ -364,11 +364,17 @@ + int n; + int w, h; + int flags = 0; ++ int status; + + printf("CGA Screen Emulation\n"); + printf("init screen: "); + +- SDL_Init(SDL_INIT_VIDEO); ++ status = SDL_Init(SDL_INIT_VIDEO); ++ if (status == -1) ++ { ++ fprintf(stderr, "Unable to locate video device. Exiting.\n"); ++ exit(1); ++ } + + srand(time(NULL)); + set_icon(symbol_plane[rand() % 2][rand() % 16]); diff --git a/games-arcade/sdl-sopwith/metadata.xml b/games-arcade/sdl-sopwith/metadata.xml new file mode 100644 index 000000000000..a7ff32dedabd --- /dev/null +++ b/games-arcade/sdl-sopwith/metadata.xml @@ -0,0 +1,11 @@ +<?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> + <upstream> + <remote-id type="sourceforge">sdl-sopwith</remote-id> + </upstream> +</pkgmetadata> diff --git a/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild b/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild new file mode 100644 index 000000000000..d45ce17acc69 --- /dev/null +++ b/games-arcade/sdl-sopwith/sdl-sopwith-1.7.5-r1.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils autotools toolchain-funcs games + +MY_P=${P/sdl-/} +DESCRIPTION="Port of the classic Sopwith game using LibSDL" +HOMEPAGE="http://sdl-sopwith.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86 ~x86-fbsd" +IUSE="" + +DEPEND=">=media-libs/libsdl-1.1.3[video]" +RDEPEND=${DEPEND} + +S=${WORKDIR}/${MY_P} + +src_prepare() { + rm acconfig.h + epatch "${FILESDIR}"/${P}-nogtk.patch + # bug 458504 + epatch "${FILESDIR}"/${P}-video-fix.patch + eautoreconf +} + +src_compile() { + emake AR="$(tc-getAR)" +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog FAQ NEWS README TODO doc/*txt + rm -rf "${D}/usr/games/share/" + prepgamesdirs +} |