summaryrefslogtreecommitdiff
path: root/games-arcade/apricots
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-arcade/apricots
reinit the tree, so we can have metadata
Diffstat (limited to 'games-arcade/apricots')
-rw-r--r--games-arcade/apricots/Manifest7
-rw-r--r--games-arcade/apricots/apricots-0.2.6-r1.ebuild64
-rw-r--r--games-arcade/apricots/files/apricots-0.2.6-freealut.patch65
-rw-r--r--games-arcade/apricots/files/apricots-0.2.6-ldflags.patch20
-rw-r--r--games-arcade/apricots/metadata.xml8
5 files changed, 164 insertions, 0 deletions
diff --git a/games-arcade/apricots/Manifest b/games-arcade/apricots/Manifest
new file mode 100644
index 000000000000..56b594f87bc4
--- /dev/null
+++ b/games-arcade/apricots/Manifest
@@ -0,0 +1,7 @@
+AUX apricots-0.2.6-freealut.patch 1596 SHA256 aca9d74921a9be155ad1ddf309d78aa059e8856b19799ba488659cd96fbd7c94 SHA512 1a3efc32776ab364ca242611ec8a5ee6018b470a122430e22b222934361ceafd09e3fbc2c60e273990263c599f08d097887babde10500a78269356611fde75ad WHIRLPOOL 476a8d401f09ac84d926c1e4f7a002ed17d5d7f903d0564fd53633be41fe4f37eaf0cc922097cb91aa0eece577d27527cf91a54818f0632a67df95bf9e0617df
+AUX apricots-0.2.6-ldflags.patch 829 SHA256 0cc20803d7ad997825bedc494bfa909a1b3909a19379bb8d19e3644c25467647 SHA512 51da904011d7fa65b40c3239819ef9a03e59d669c23caee30eb16a06349f17509d016d7c70ccfdbcbfc956097bd989c317fb0242cfe9a034efb9001411386bbf WHIRLPOOL 4c8de3964457f8dc574173f58b3fe34cdb5df95d761970873deadd50d9a712801e09bb0796f77d37fe2cedb23894993ecf5ed42d9eb0f695b67322b91e1487eb
+DIST apricots-0.2.6.tar.gz 768568 SHA256 9c408722abbb0cb925384f12a65fe4f6e2b3373d5ce5d0e5afe3aeb738b9cd8f SHA512 cf8a988d316382469e4b13a86315c760b702b3d490398cf2fe96f119ba743c1ff707c09228dbbf4eb601189fece708913a621b04c44e9d93162639ccbd502cf5 WHIRLPOOL e45b924f86494e16ea4340a292aabb624a0632801044250b082e6b449311b47a89c23386eb88c507053c3629af4ecb8db4bc4d7096887fa884d5395474f3e946
+EBUILD apricots-0.2.6-r1.ebuild 1561 SHA256 8f284a2f19f9b37497819bfe20e6613bc5dca57e9970c07c3dba8516624e4b56 SHA512 5b664f084145f5869c8903d6e44670c6ce2c9586a3cbd93a95f40dca8a0813264589588b790a9f3ce2a01cc8ae4a6c7eac084d6225264ab7468f81b1fc877d43 WHIRLPOOL b078f29785723b4878d845c2ffad59c42cb82f3dd9db837ba41ab46972be26616f78b05d27ce506541cd04d98c145d75c30be3c2d437aa6a37496c7ddbbd8c2a
+MISC ChangeLog 2517 SHA256 8cc77f5f6424b99aeff3c8623a6ccc5f18a13d97a03f33264c0ce3a21e99883a SHA512 d594835e1a695cafd9ed6f22707ed2feb7603e16dca3b728ff5a20c57f6287cee1ef380c2cd4086276e5141db60d6c7d10f95b6b9f596583546da16fa279b5d7 WHIRLPOOL fab7cf14aaee4e89fdb20fd1d81f8147e02bdfa7d5dcdcc6e8baf25470c65374c81474710fc2cea85d5a906ddfa26237e2d57f0909675ad5899eeb4357f6ffa8
+MISC ChangeLog-2015 2859 SHA256 036ec7f9597a3525b86a9eb83c6b826cdc03a2d141fdbffd01aa08308b3753e0 SHA512 8f9dcd5dec6d5f6752d5433e1df10e699c55c485b5a7827fc636bc252eb9e4908289d97bc445697a66dee0ab94124520d80da4c798988004906abbb03564ded1 WHIRLPOOL b20365bebab9efc6c0d80146ae5c671528295dd2dbf13da1d2ea51ba7fd831187edf0219e2e1acc053a3155d760b8570120513f0068e65045f6c74b35df91b82
+MISC metadata.xml 249 SHA256 943b9ce0cd072229b43569ab668dd7ec741d9dfefd942c8921dabd4490b27b0c SHA512 895577c3a805c40581da03057b94e3f28f05f23012bf350c1e3575847d1a0fe40bb044a46f909012a200d991a400f6389358a60e9c2b5bef0da01fb26f846118 WHIRLPOOL b10e21575c78e201a652c8582cd16e3f7c86b13dd20a30f4cea44066fb139440b3c186147dbaae83478f11a20b6f457a99c8b29ee1239a4caaa21eee01250088
diff --git a/games-arcade/apricots/apricots-0.2.6-r1.ebuild b/games-arcade/apricots/apricots-0.2.6-r1.ebuild
new file mode 100644
index 000000000000..0e9f2c3017bc
--- /dev/null
+++ b/games-arcade/apricots/apricots-0.2.6-r1.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit autotools eutils games
+
+DESCRIPTION="Fly a plane around bomb/shoot the enemy. Port of Planegame from Amiga"
+HOMEPAGE="http://www.fishies.org.uk/apricots.html"
+SRC_URI="http://www.fishies.org.uk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86 ~x86-fbsd"
+IUSE=""
+
+DEPEND="media-libs/libsdl[sound,video]
+ media-libs/openal
+ media-libs/freealut"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-freealut.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+
+ cp admin/acinclude.m4.in acinclude.m4
+
+ sed -i \
+ -e 's:-DAP_PATH=\\\\\\"$prefix.*":-DAP_PATH=\\\\\\"${GAMES_DATADIR}/${PN}/\\\\\\"":' \
+ -e 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' \
+ configure.in || die
+ sed -i \
+ -e "s:filename(AP_PATH):filename(\"${GAMES_SYSCONFDIR}/${PN}/\"):" \
+ ${PN}/init.cpp || die
+ sed -i \
+ -e "s:apricots.cfg:${GAMES_SYSCONFDIR}/${PN}/apricots.cfg:" \
+ README apricots.html || die
+ sed -i \
+ -e 's/-Wmissing-prototypes//' \
+ acinclude.m4 || die
+ eautoreconf
+}
+
+src_compile() {
+ emake LIBTOOL="/usr/bin/libtool"
+}
+
+src_install() {
+ dodoc AUTHORS README TODO ChangeLog
+ dohtml apricots.html
+ cd ${PN}
+ dogamesbin apricots
+ insinto "${GAMES_DATADIR}"/${PN}
+ doins *.wav *.psf *.shapes
+ insinto "${GAMES_SYSCONFDIR}"/${PN}
+ doins apricots.cfg
+ make_desktop_entry ${PN} Apricots
+ prepgamesdirs
+}
+
+pkg_postinst() {
+ games_pkg_postinst
+ elog "You can change the game options by editing:"
+ elog "${GAMES_SYSCONFDIR}/${PN}/apricots.cfg"
+}
diff --git a/games-arcade/apricots/files/apricots-0.2.6-freealut.patch b/games-arcade/apricots/files/apricots-0.2.6-freealut.patch
new file mode 100644
index 000000000000..4f663071340a
--- /dev/null
+++ b/games-arcade/apricots/files/apricots-0.2.6-freealut.patch
@@ -0,0 +1,65 @@
+--- apricots/apricots.cpp
++++ apricots/apricots.cpp
+@@ -16,6 +16,7 @@
+ int main(int, char**){
+ #endif
+
++atexit(SDL_Quit);
+ // Initialize data
+ gamedata g;
+ init_data(g);
+
+--- apricots/sampleio.cpp
++++ apricots/sampleio.cpp
+@@ -74,12 +74,9 @@
+ alListenerfv(AL_ORIENTATION, front );
+
+ // Load in samples
+- ALvoid* data = malloc(5 * (512 * 3) * 1024);
+ alGenBuffers(numsamples, samples);
+
+ for (int i = 0; i < numsamples; i++){
+- ALsizei freq;
+- ALboolean fileok;
+ // Evil OpenAL portability fix done here
+ #ifdef _WIN32
+ ALenum format;
+@@ -87,15 +84,12 @@
+ alutLoadWAVFile(filenames[i],&format,&data,&filelen,&freq,&trash);
+ fileok = (alGetError() == AL_NO_ERROR);
+ #else
+- ALsizei format;
+- ALsizei trash;
+- fileok = alutLoadWAV(filenames[i],&data,&format,&filelen,&trash,&freq);
++ samples[i] = alutCreateBufferFromFile(filenames[i]);
+ #endif
+- if (!fileok){
++ if (samples[i] == AL_NONE){
+ cerr << "sampleio: could not open " << filenames[i] << endl;
+ exit(1);
+ }
+- alBufferData(samples[i], format, data, filelen, freq);
+ }
+
+ // Generate Sources
+@@ -107,7 +101,6 @@
+ alSourcefv(sources[j], AL_ORIENTATION, back );
+ }
+
+- free(data);
+
+ }
+
+
+--- configure.in
++++ configure.in
+@@ -100,7 +100,8 @@
+
+ dnl Check for OpenAL
+ AC_CHECK_HEADER(AL/al.h,[CXXFLAGS="$CXXFLAGS -DAP_AUDIO_OPENAL"])
+-AC_CHECK_LIB( openal, alutInit)
++AC_CHECK_LIB( openal, alGetError)
++AC_CHECK_LIB( alut, alutInit)
+
+ KDE_CHECK_EXTRA_LIBS
+ all_libraries="$all_libraries $USER_LDFLAGS"
diff --git a/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch b/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch
new file mode 100644
index 000000000000..5a2a34490b7e
--- /dev/null
+++ b/games-arcade/apricots/files/apricots-0.2.6-ldflags.patch
@@ -0,0 +1,20 @@
+--- apricots/Makefile.am.old 2010-10-11 15:58:18.000000000 +0200
++++ apricots/Makefile.am 2010-10-11 15:59:21.000000000 +0200
+@@ -4,7 +4,8 @@
+ ## INCLUDES were found outside kdevelop specific part
+
+ apricots_SOURCES = SDLfont.cpp shape.cpp setup.cpp sampleio.cpp init.cpp game.cpp finish.cpp fall.cpp drawall.cpp drak.cpp collide.cpp apricots.cpp all.cpp ai.cpp
+-apricots_LDADD =
++apricots_LDADD = $(all_libraries)
++
+
+ SUBDIRS = docs
+
+@@ -68,7 +69,3 @@
+ ####### kdevelop will overwrite this part!!! (end)############
+ # set the include path found by configure
+ INCLUDES= $(all_includes)
+-
+-# the library search path.
+-apricots_LDFLAGS = $(all_libraries)
+-
diff --git a/games-arcade/apricots/metadata.xml b/games-arcade/apricots/metadata.xml
new file mode 100644
index 000000000000..78274e0fa550
--- /dev/null
+++ b/games-arcade/apricots/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>