summaryrefslogtreecommitdiff
path: root/games-action/transcend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /games-action/transcend
reinit the tree, so we can have metadata
Diffstat (limited to 'games-action/transcend')
-rw-r--r--games-action/transcend/Manifest7
-rw-r--r--games-action/transcend/files/transcend-0.3-sound.patch89
-rw-r--r--games-action/transcend/metadata.xml11
-rw-r--r--games-action/transcend/transcend-0.3-r1.ebuild65
-rw-r--r--games-action/transcend/transcend-0.3.ebuild60
5 files changed, 232 insertions, 0 deletions
diff --git a/games-action/transcend/Manifest b/games-action/transcend/Manifest
new file mode 100644
index 000000000000..7ae831f55e03
--- /dev/null
+++ b/games-action/transcend/Manifest
@@ -0,0 +1,7 @@
+AUX transcend-0.3-sound.patch 3101 SHA256 11e6ee4ec7c7e5bfaafee730aca28b36dd2c95d44211105d9ab3bbbeeb6d6151 SHA512 aa51287cb46fd55db9d7d213b135a099dd1d2cdf07f033143356571d06ad16dd8ba7dcd71b78e98430c9126ddcb5484fa63c82c9e26e1ca2d6de855cc55a293f WHIRLPOOL d47906808e5e27e9462e61e7086df8bb9ff37e81eefff0b97e41194f62b1e48093e6bd726e29e730d1ecdd5b8725fd4a587e82f1e37b8772b7fd8e5bd1ad7d97
+DIST Transcend_0.3_UnixSource.tar.gz 1847261 SHA256 46dae7cbd1b95c6865a664022ca804c462f1731c974882a527e43810e99fcd40 SHA512 5a2d21256c202ee045f8e2c926705f79885f6efbb5f44d3129e5b05cb1e28f909a32a5d873a9673d5fa48cbe4e79766c44947f147089e988e2fa3f83cde1b91d WHIRLPOOL 92c4ac48d5d6b8104fd4a975ed4f13a375296ce1227515e634f36f0fbf3bd7d446620c11f8662a9c24c123156fddcb40c007af988535da5bc27ca2ecbbcdc525
+EBUILD transcend-0.3-r1.ebuild 1360 SHA256 4585e988afdef6516274639772599792003491888ef252d23b7a41e6c51de4b6 SHA512 2f1415de806e104a0e69635b25b7c9549b7a7ec2349d5925fbd66bf23315751efcf431489c2931c0dc2585080249cce58e43e3aeabead00d417232ee8cae615b WHIRLPOOL 19d72899b8e1200cb426a4b784881f7099ea943fb2be86f142f6b2f8d221224ccce8b8a93cbbe8ffe66f592eea80a0ac9c8cf10f6c8fabc29d97c76c71492162
+EBUILD transcend-0.3.ebuild 1381 SHA256 b51271d6464abbe7169fdafc728707e05813352156df896ccdbd69c20f46d673 SHA512 9e1f6e00483928011f04a2d4f3599f20c14ac14267db6b932308ca0349e4ae4770d474e87292dd14ba824ec340f58ed58cd0e062a7f0c857a618790ad8b7c2b6 WHIRLPOOL 41b5d6f12c9764634f521a799871c347f1d8f1bc7aab7211bf0815a7badd178a9e119cd1c54555247e879f9a3d856adc5ffaaec9f9134635453001c08ac218b1
+MISC ChangeLog 2653 SHA256 ea9a5bcb93eb2e2ff9b4ba295ab681d4cd0f9f7999fdce38bb03f3e7b58aa54b SHA512 b49f3e3ff617e55ed44b0aa5378ccefdb130042d11e4d528afe8cbea67b9779a1f2b1d1ce395eb4149c2386b8af06222cbb01a56184dfedbf3667ed1e1a62f5f WHIRLPOOL 2a15bb7f730bb6cf39b83b4be5cdbce4ba81cf2b01fe3a5f2f696d9869e0802a8570772240f2073e8ddbd6dbba2ff88f5cf36d3c363756e06468bf5cabe34a51
+MISC ChangeLog-2015 1623 SHA256 2484bd7267964b4a0cec3f7bb022c3f52062f6960aa7f70b1cd26ebd98b5eb8e SHA512 c994a74e7d15e44b6520b5e7019abc9fce9c387ade2fdf6dde1f282da4749d13a73b0d085f6b227ff4ed76241ee00c12fcdd011cac16abddc9f4626a82d6e135 WHIRLPOOL 238e720fcce3c7f796b27251a653dcad37c85d93c31f11c4565ea1c71a89a87e20bcff94b9a6f866d1db655d7ad10a14edff563c94653818fd91b4b355347f02
+MISC metadata.xml 332 SHA256 7f79c72877bf0c1a0e2982acd92766eb36cd65aedc187ab673a1165e9bd95c57 SHA512 3af008eea1264d7db9571d88c2e63b767afb43881ab456844c448eedf9bf68577c4c0a27bb2559691b8c92482af38ead48036c8bd429df7489048053054ccdf9 WHIRLPOOL 02cd440e0420edd7e1381e7a6def441b21d61400badfcb1b51976d5edbc648f04c3555538c074f6e917e69f38b90a7a1a2c52e707790f133bbb5dbc1ba07b2f2
diff --git a/games-action/transcend/files/transcend-0.3-sound.patch b/games-action/transcend/files/transcend-0.3-sound.patch
new file mode 100644
index 000000000000..836cd03754ad
--- /dev/null
+++ b/games-action/transcend/files/transcend-0.3-sound.patch
@@ -0,0 +1,89 @@
+Author: Barry deFreese <bdefreese@debian.org>
+Description: Build with portaudio19.
+--- a/game/SoundPlayer.h
++++ b/game/SoundPlayer.h
+@@ -204,7 +204,7 @@
+ double mMusicLoudness;
+
+
+- PortAudioStream *mAudioStream;
++ PaStream *mAudioStream;
+
+ // realtime sounds that should be mixed into the next to-speaker call
+ SimpleVector<PlayableSound *> *mRealtimeSounds;
+--- a/game/SoundPlayer.cpp
++++ b/game/SoundPlayer.cpp
+@@ -47,9 +47,11 @@
+
+
+ // callback passed into portaudio
+-static int portaudioCallback( void *inputBuffer, void *outputBuffer,
++int portaudioCallback( const void *inputBuffer, void *outputBuffer,
+ unsigned long framesPerBuffer,
+- PaTimestamp outTime, void *userData ) {
++ const PaStreamCallbackTimeInfo *outTime,
++ PaStreamCallbackFlags statusFlags,
++ void *userData ) {
+
+
+ SoundPlayer *player = (SoundPlayer *)userData;
+@@ -147,21 +149,13 @@
+
+ if( error == paNoError ) {
+
+- error = Pa_OpenStream(
++ error = Pa_OpenDefaultStream(
+ &mAudioStream,
+- paNoDevice,// default input device
+ 0, // no input
+- paFloat32, // 32 bit floating point input
+- NULL,
+- Pa_GetDefaultOutputDeviceID(),
+ 2, // stereo output
+ paFloat32, // 32 bit floating point output
+- NULL,
+ mSampleRate,
+ 1024, // frames per buffer
+- 0, // number of buffers, if zero then use default minimum
+- paClipOff, // we won't output out of range samples so
+- // don't bother clipping them
+ portaudioCallback,
+ (void *)this ); // pass self-pointer to callback function
+
+Description: Link to dynamic portaudio instead of static.
+Author: Miriam Ruiz <miriam@debian.org>
+--- a/Makefile.GnuLinuxX86
++++ b/Makefile.GnuLinuxX86
+@@ -22,7 +22,7 @@
+
+ # pthread library needed for linux
+ # also need portaudio library (which in turn needs pthreads)
+-PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu ${ROOT_PATH}/Transcend/portaudio/lib/libportaudio.a -lpthread
++PLATFORM_LINK_FLAGS = -L/usr/X11R6/lib -lGL -lglut -lGLU -lX11 -lXi -lXext -lXmu $(shell pkg-config portaudio-2.0 --libs)
+
+
+ # All platforms but OSX support g++ and need no linker hacks
+--- a/game/SoundPlayer.h
++++ b/game/SoundPlayer.h
+@@ -46,8 +46,7 @@
+ #include "SoundFilter.h"
+ #include "PlayableSound.h"
+
+-#include "Transcend/portaudio/pa_common/portaudio.h"
+-#include "Transcend/portaudio/pablio/pablio.h"
++#include <portaudio.h>
+
+
+ #include "minorGems/util/SimpleVector.h"
+--- a/game/SoundPlayerActive.h
++++ b/game/SoundPlayerActive.h
+@@ -16,8 +16,7 @@
+
+ #include "SoundSamples.h"
+
+-#include "Transcend/portaudio/pa_common/portaudio.h"
+-#include "Transcend/portaudio/pablio/pablio.h"
++#include <portaudio.h>
+
+
+ #include "minorGems/util/SimpleVector.h"
diff --git a/games-action/transcend/metadata.xml b/games-action/transcend/metadata.xml
new file mode 100644
index 000000000000..af830ea1122e
--- /dev/null
+++ b/games-action/transcend/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">transcend</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/games-action/transcend/transcend-0.3-r1.ebuild b/games-action/transcend/transcend-0.3-r1.ebuild
new file mode 100644
index 000000000000..5f95cff17b5f
--- /dev/null
+++ b/games-action/transcend/transcend-0.3-r1.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+DESCRIPTION="Retro-style, abstract, 2D shooter"
+HOMEPAGE="http://transcend.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="
+ media-libs/freeglut
+ media-libs/portaudio
+ x11-libs/libXi
+ x11-libs/libXmu
+ virtual/glu
+ virtual/opengl"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/Transcend_${PV}_UnixSource/Transcend
+
+# Apply patch from Debian in order to get sound working. bug #372413
+PATCHES=(
+ "${FILESDIR}"/${P}-sound.patch
+)
+
+src_prepare() {
+ default
+
+ rm -rf game/Makefile portaudio/ || die
+ sed \
+ -e '/^GXX=/d' \
+ -e 's/GXX/CXX/' \
+ -e '/^COMPILE_FLAGS =/ s/OPTIMIZE_FLAG/CXXFLAGS/' \
+ -e '/^EXE_LINK =/ s/LINK_FLAGS/LDFLAGS/' \
+ Makefile.GnuLinuxX86 \
+ Makefile.common \
+ Makefile.minorGems \
+ game/Makefile.all \
+ Makefile.minorGems_targets \
+ > game/Makefile || die
+ sed -i \
+ -e "s:\"levels\":\"/usr/share/${PN}/levels\":" \
+ game/LevelDirectoryManager.cpp \
+ game/game.cpp || die
+}
+
+src_configure() { :; }
+
+src_compile() {
+ emake -C game
+}
+
+src_install() {
+ newbin game/Transcend ${PN}
+ insinto /usr/share/${PN}
+ doins -r levels/
+ dodoc doc/{how_to_play.txt,changeLog.txt}
+ make_desktop_entry ${PN} "Transcend"
+}
diff --git a/games-action/transcend/transcend-0.3.ebuild b/games-action/transcend/transcend-0.3.ebuild
new file mode 100644
index 000000000000..48c39da3facf
--- /dev/null
+++ b/games-action/transcend/transcend-0.3.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils games
+
+DESCRIPTION="retro-style, abstract, 2D shooter"
+HOMEPAGE="http://transcend.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/Transcend_${PV}_UnixSource.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="x11-libs/libXmu
+ x11-libs/libXi
+ virtual/opengl
+ virtual/glu
+ media-libs/portaudio
+ media-libs/freeglut"
+RDEPEND=${DEPEND}
+
+S=${WORKDIR}/Transcend_${PV}_UnixSource/Transcend
+
+src_prepare() {
+ # apply patch from debian in order to get sound working. bug #372413
+ epatch "${FILESDIR}"/${P}-sound.patch
+ rm -rf game/Makefile portaudio/ || die
+ sed \
+ -e '/^GXX=/d' \
+ -e 's/GXX/CXX/' \
+ -e '/^COMPILE_FLAGS =/ s/OPTIMIZE_FLAG/CXXFLAGS/' \
+ -e '/^EXE_LINK =/ s/LINK_FLAGS/LDFLAGS/' \
+ Makefile.GnuLinuxX86 \
+ Makefile.common \
+ Makefile.minorGems \
+ game/Makefile.all \
+ Makefile.minorGems_targets \
+ > game/Makefile || die
+ sed -i \
+ -e "s:\"levels\":\"${GAMES_DATADIR}/${PN}/levels\":" \
+ game/LevelDirectoryManager.cpp \
+ game/game.cpp || die
+}
+
+src_configure() { :; }
+
+src_compile() {
+ emake -C game
+}
+
+src_install() {
+ newgamesbin game/Transcend ${PN}
+ insinto "${GAMES_DATADIR}/${PN}"
+ doins -r levels/
+ dodoc doc/{how_to_play.txt,changeLog.txt}
+ make_desktop_entry ${PN} "Transcend"
+ prepgamesdirs
+}