summaryrefslogtreecommitdiff
path: root/dev-games/KXL
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 /dev-games/KXL
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-games/KXL')
-rw-r--r--dev-games/KXL/KXL-1.1.7-r2.ebuild33
-rw-r--r--dev-games/KXL/Manifest9
-rw-r--r--dev-games/KXL/files/KXL-1.1.7-amd64.patch95
-rw-r--r--dev-games/KXL/files/KXL-1.1.7-as-needed.patch8
-rw-r--r--dev-games/KXL/files/KXL-1.1.7-ldflags.patch10
-rw-r--r--dev-games/KXL/files/KXL-1.1.7-m4.patch9
-rw-r--r--dev-games/KXL/metadata.xml22
7 files changed, 186 insertions, 0 deletions
diff --git a/dev-games/KXL/KXL-1.1.7-r2.ebuild b/dev-games/KXL/KXL-1.1.7-r2.ebuild
new file mode 100644
index 000000000000..fc453d84b946
--- /dev/null
+++ b/dev-games/KXL/KXL-1.1.7-r2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools
+
+DESCRIPTION="Development Library for making games for X"
+HOMEPAGE="http://kxl.orz.hm/"
+SRC_URI="http://kxl.hn.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="static-libs"
+
+DEPEND="x11-libs/libX11"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-m4.patch \
+ "${FILESDIR}"/${P}-amd64.patch \
+ "${FILESDIR}"/${P}-as-needed.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ use static-libs || prune_libtool_files
+}
diff --git a/dev-games/KXL/Manifest b/dev-games/KXL/Manifest
new file mode 100644
index 000000000000..9f7142cb95de
--- /dev/null
+++ b/dev-games/KXL/Manifest
@@ -0,0 +1,9 @@
+AUX KXL-1.1.7-amd64.patch 3207 SHA256 8d46212b7702d819b6b82884ebd3136fae37415c16c4b82275672634c7c6e85e SHA512 756cd90aca9c6ac1c9ac2c9229b8ae2904315fe29e59b842d963b72b2004c088f5b526ac00b97ed61763001a5e79f0e435c043ae54f4022ea392367a8f0c8142 WHIRLPOOL 1afb57a52b4cc3d3c6b2b0710d1e94b0b047efd2216e81c61200b05d432c8608d8df289ee7c7998b63cd20b5552bd336045c0b0c95fe51d2ee500f0b53a2f9f0
+AUX KXL-1.1.7-as-needed.patch 308 SHA256 eceb52dbbff50278285982b9806189c4ba565b01703a633a126c228ad196f6d0 SHA512 8494ce4f631b82e798a0e4364252d35645544ed417bec11c5c7b6dcb179b5182187166f37562d6b40e393081112bb4d0787f8140464763b1482464c04fb9fd44 WHIRLPOOL e969bfc4069c45887c178644ce6a6c12777f3c8a5d2d79bcfd515747059c4638f886ed6d61c8656727de456efdbcd52c29037ae41c19224006ec685a9a948b03
+AUX KXL-1.1.7-ldflags.patch 234 SHA256 1d1994d258c607b8ff7d4282244f19bc4e7d7533c9d90799a7ea9ab57eada89d SHA512 b051fff9db4b353ad29479b3a08d2aadb49230800589337f13f34e4490330d1b683a42c2bdbac02dcbe0016e9755939e5f4a538167284011ad97502977d397a3 WHIRLPOOL 3c56c62459e98298b44a493363092aad2ea15f95d5d9c04c1b9078306668dc998b65072d1c025924296dd9380ca2445ea4bd3022cf49ba9bcaf05155f582c27e
+AUX KXL-1.1.7-m4.patch 221 SHA256 5a43a85856deb82cd1a890905e37cbe4c8315069d6b8fac96a5f95688dc47ede SHA512 b9a0b71474c43cec838ab6fdadd183a80d409d935bc7b65a61cf87d2b777ef5b51cf86469aa8a0040d15a64b1a008ebd3eb9b1d0dc9e4e86160bda92612f2b6a WHIRLPOOL ddc77e7e9c3309d4018be337dcd6fbe30c8355ad751b851e925c939833aabea2436c5edb0f5b73825528fb4a9b3ab6bf36517bd2b679825a2f7afa1cb1d6baa6
+DIST KXL-1.1.7.tar.gz 192070 SHA256 118b704befa24992031b51c9da1bc3786da153cfb21a0452bae97b1d479bdd98 SHA512 f3a9051b0e8916745725a2809097df07c59f8811f336574def7e479c992175d0bd49661817f9da35d122d291aff0bde5d4c27e5b17a3f09878e71b2c7a709adb WHIRLPOOL 1aa271911adee47bc9d954f409c5bb0b93bdb51ead0313ee9461889b6591823cd93a4ec8dbd08329498c731840d472ed2cb7048dfa936fa1a0f311f927c833a5
+EBUILD KXL-1.1.7-r2.ebuild 677 SHA256 3a50c383a1200785b5b6ca113a85dd313c7efeacc336baacb000dd398bfc1bd6 SHA512 83084dcf781122e7555195bb0b900c84f5121786214aeb701a1dce493746143813e0ca92a02a8f463b5278f0213fa2ca12830a70774af2568bfe79e27127719e WHIRLPOOL 0c8a8bfe82cf53b922c78459d9449edb71cce14ad3a612278f84bcafe9f6be63bafb4a7f4d389926e184afe591e3561bbcd405fc313f8f0ac777ae328441aa5a
+MISC ChangeLog 2547 SHA256 41434efc1beff7095888f8e8e859feffaa6da240b6b68b87f89f2c04a12c4d24 SHA512 175f81ea3b77cb46df43ef3368c8c81a2ced7526f2b7b969213c87c15af8f8261a18f481f2073644c64c67a719a110098b62fd8fdaf8a2128ad3ef0046cd437b WHIRLPOOL c7716e355bf51aba0d6e8960538c26b717ca978c4e5d8515f8b402c3b646a02a0df0ced58053a66617695e04675a7569c8a3685a47c36ec22fb8fbe0d5dc0b14
+MISC ChangeLog-2015 2429 SHA256 86d2fc152fcbdb3730a7884b477ea5a04e50328411cd7cbadf0c48d43cb42e65 SHA512 dafeada0c6082a0e09e3f91f32ce94f71c35c6a89de491ab37f7aeb15817ee86016870ab022828f9aa7fc56954dc5e990840c73dc18fcc75dea9f958af8c4c3e WHIRLPOOL 2a6a8f0d6ff7a3ad77bdd0918b09285fcc29d2982f4e67d920357a92c01a4f2e9db12967eb25763c58ba2ba55b0fc16f633d671efffff39f6f58343d76e69d45
+MISC metadata.xml 677 SHA256 fd06e26f780dc4003e0765af2f60a5f5474195666f35e5990240649a364b3bd4 SHA512 c0bdd55e9cce88c16b4ac1cc71f30fd89e9341956d87de5e70eae786d9a71b675af94052149ee77e0b18b385a6f96dfa999f821c0177788e94de01f626a5a36f WHIRLPOOL 363c5511b166e1b92efcf7612d7460e461424dcace951653c6d63cac5b1ed6ea3254bea9b8163a4d9fbfb53101feb0ceae25ddfefba674db786852dfbcbe86ed
diff --git a/dev-games/KXL/files/KXL-1.1.7-amd64.patch b/dev-games/KXL/files/KXL-1.1.7-amd64.patch
new file mode 100644
index 000000000000..ec4b141d2a3e
--- /dev/null
+++ b/dev-games/KXL/files/KXL-1.1.7-amd64.patch
@@ -0,0 +1,95 @@
+--- src/KXLsound.c.old 2007-05-13 21:59:27.000000000 +0200
++++ src/KXLsound.c 2007-05-13 22:09:19.000000000 +0200
+@@ -4,6 +4,9 @@
+ #include <sys/ioctl.h>
+ #include <sys/time.h>
+ #include <linux/soundcard.h>
++#include <stdlib.h>
++#include <errno.h>
++#include <string.h>
+ #include "KXL.h"
+
+ #define MIN(a, b) (((a) < (b)) ? (a) : (b))
+@@ -22,7 +24,7 @@
+ struct {
+ Uint16 ListCnt;
+ Sint32 ID;
+- Sint32 Pipe[2];
++ int Pipe[2];
+ Sint32 Device;
+ Uint16 PlayCnt;
+ KXL_SoundControl PlaySound[MAX_SOUNDS_PLAYING];
+@@ -242,11 +244,19 @@
+ KXL_SoundOk = False;
+
+ KXL_LoadSoundData(path, fname);
+- // device check
+- if ((KXL_SoundData.Device = open("/dev/dsp", O_WRONLY)) == -1) {
+- fprintf(stderr, "KXL error message\nnot found sound card\n");
++ // Open the sound device in non-blocking mode, because ALSA's OSS
++ // emulation and some broken OSS drivers would make a blocking call
++ // wait forever until the device is available. Since this breaks the
++ // OSS spec, we immediately put it back to blocking mode if the
++ // operation was successful.
++ KXL_SoundData.Device = open("/dev/dsp", O_WRONLY|O_NDELAY);
++ if (KXL_SoundData.Device < 0) {
++ fprintf(stderr, "KXL error message\ncould not open sound card (%s)\n",
++ strerror(errno));
+ return;
+ }
++ fcntl( KXL_SoundData.Device, F_SETFL,
++ fcntl( KXL_SoundData.Device, F_GETFL ) &~ FNDELAY );
+ // create pipe
+ if (pipe(KXL_SoundData.Pipe) < 0) {
+ fprintf(stderr, "KXL error message\npipe error\n");
+--- src/KXL.h.old 2007-05-13 22:25:11.000000000 +0200
++++ src/KXL.h 2007-05-13 22:25:47.000000000 +0200
+@@ -205,6 +205,7 @@
+ KXL_Frame *Frame; // Pointer of frame structure
+ GC FontGC; // GC of font
+ XFontStruct *WinFont; // Pointer of font structrue
++ Bool DetectAutoRepeat; // Does the server have detectable auto repeat
+ } KXL_Window;
+ // RGBE palette
+ typedef struct {
+--- src/KXLimage.c.old 2007-05-13 22:29:02.000000000 +0200
++++ src/KXLimage.c 2007-05-13 22:29:33.000000000 +0200
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include "KXL.h"
+
+ extern KXL_Window *KXL_Root;
+--- src/KXLvisual.c.old 2007-05-13 22:22:34.000000000 +0200
++++ src/KXLvisual.c 2007-05-13 22:28:39.000000000 +0200
+@@ -1,4 +1,6 @@
+ #include <stdio.h>
++#include <stdlib.h>
++#include <string.h>
+ #include "KXL.h"
+
+ //================================================================
+@@ -364,7 +366,11 @@
+ KXL_ReSizeFrame(w, h);
+ KXL_Clear_Frame(0, 0, w, h);
+ // Auto repeat off
+- XAutoRepeatOff(KXL_Root->Display);
++ XkbSetDetectableAutoRepeat(KXL_Root->Display, True,
++ &KXL_Root->DetectAutoRepeat);
++ if(!KXL_Root->DetectAutoRepeat) {
++ XAutoRepeatOff(KXL_Root->Display);
++ }
+ }
+
+ //==============================================================
+@@ -377,7 +383,9 @@
+ XFreeGC(KXL_Root->Display, KXL_Root->Frame->Gc);
+ KXL_Free(KXL_Root->Frame);
+ // Auto repeat on
+- XAutoRepeatOn(KXL_Root->Display);
++ if(!KXL_Root->DetectAutoRepeat) {
++ XAutoRepeatOn(KXL_Root->Display);
++ }
+ // Delete font
+ XFreeGC(KXL_Root->Display, KXL_Root->FontGC);
+ // Delete window
diff --git a/dev-games/KXL/files/KXL-1.1.7-as-needed.patch b/dev-games/KXL/files/KXL-1.1.7-as-needed.patch
new file mode 100644
index 000000000000..d99564202ecd
--- /dev/null
+++ b/dev-games/KXL/files/KXL-1.1.7-as-needed.patch
@@ -0,0 +1,8 @@
+--- src/Makefile.am.old 2009-01-28 16:03:27.000000000 +0100
++++ src/Makefile.am 2009-01-28 16:03:47.000000000 +0100
+@@ -2,3 +2,4 @@
+ libKXL_la_SOURCES = KXLmisc.c KXLsound.c KXLjoystick.c KXLvisual.c KXLimage.c
+ include_HEADERS = KXL.h
+ libKXL_la_LDFLAGS = -release $(VERSION)
++libKXL_la_LIBADD = -lX11
+
diff --git a/dev-games/KXL/files/KXL-1.1.7-ldflags.patch b/dev-games/KXL/files/KXL-1.1.7-ldflags.patch
new file mode 100644
index 000000000000..e628b5d2170f
--- /dev/null
+++ b/dev-games/KXL/files/KXL-1.1.7-ldflags.patch
@@ -0,0 +1,10 @@
+--- KXL.m4.old 2010-09-23 14:20:45.000000000 +0200
++++ KXL.m4 2010-09-23 14:21:08.000000000 +0200
+@@ -29,7 +29,6 @@
+
+ dnl add the KXL library
+ KXL_LIBS="$KXL_LIBS -lKXL"
+-LDFLAGS="$KXL_LIBS"
+ AC_MSG_RESULT($KXL_LIBS)
+
+ AC_PATH_XTRA
diff --git a/dev-games/KXL/files/KXL-1.1.7-m4.patch b/dev-games/KXL/files/KXL-1.1.7-m4.patch
new file mode 100644
index 000000000000..f039974e6f98
--- /dev/null
+++ b/dev-games/KXL/files/KXL-1.1.7-m4.patch
@@ -0,0 +1,9 @@
+Get rid of aclocal warning:
+/usr/share/aclocal/KXL.m4:6: warning: underquoted definition of AM_PATH_KXL
+--- KXL-1.1.7/KXL.m4
++++ KXL-1.1.7/KXL.m4
+@@ -5,3 +5,3 @@
+ dnl
+-AC_DEFUN(AM_PATH_KXL,
++AC_DEFUN([AM_PATH_KXL],
+ [dnl
diff --git a/dev-games/KXL/metadata.xml b/dev-games/KXL/metadata.xml
new file mode 100644
index 000000000000..a580c9cfe304
--- /dev/null
+++ b/dev-games/KXL/metadata.xml
@@ -0,0 +1,22 @@
+<?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>
+KXL is the library developed for the purpose of the ability to develop a
+game easily on X Window System of Linux.
+
+KXL is the composition of the window of one sheet, and the frame buffer
+of one sheet.
+
+KXL corresponds to reading of a bitmap picture, and offers a still
+simple drawing function and a wave sound function.
+
+KXL is written only using xlib.
+
+KXL is written by the C language.
+</longdescription>
+</pkgmetadata>