mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-30 01:15:52 +00:00
Upgrade to version 1.1.7
No version bumps neither for other ports since nobody else is using this one.
This commit is contained in:
parent
7082d4c04a
commit
46c9cedbaa
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=144248
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= kxl
|
||||
PORTVERSION= 1.1.5
|
||||
PORTVERSION= 1.1.7
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://kxl.hn.org/download/
|
||||
DISTNAME= KXL-${PORTVERSION}
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (KXL-1.1.5.tar.gz) = cc353e6e3db4f6ff72019766250ff04d
|
||||
SIZE (KXL-1.1.5.tar.gz) = 152643
|
||||
MD5 (KXL-1.1.7.tar.gz) = 321bfad9dee29840656225b54bb6feb0
|
||||
SIZE (KXL-1.1.7.tar.gz) = 192070
|
||||
|
@ -1,16 +1,14 @@
|
||||
--- src/KXLsound.c.orig Wed Feb 20 21:42:17 2002
|
||||
+++ src/KXLsound.c Wed Feb 20 21:44:49 2002
|
||||
@@ -3,7 +3,9 @@
|
||||
--- src/KXLsound.c.orig Fri Jan 17 01:29:09 2003
|
||||
+++ src/KXLsound.c Wed Oct 5 12:13:08 2005
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#ifndef __FreeBSD__
|
||||
#include <linux/soundcard.h>
|
||||
+#endif
|
||||
#include <sys/time.h>
|
||||
-#include <linux/soundcard.h>
|
||||
#include "KXL.h"
|
||||
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
@@ -45,6 +47,7 @@
|
||||
@@ -45,6 +44,7 @@
|
||||
//==============================================================
|
||||
void KXL_SoundServer(void)
|
||||
{
|
||||
@ -18,7 +16,7 @@
|
||||
Uint16 i;
|
||||
KXL_SoundControl Command;
|
||||
fd_set sound_fdset;
|
||||
@@ -163,6 +166,7 @@
|
||||
@@ -163,6 +163,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -26,7 +24,7 @@
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -238,6 +242,7 @@
|
||||
@@ -239,6 +240,7 @@
|
||||
//==============================================================
|
||||
void KXL_InitSound(Uint8 *path, Uint8 **fname)
|
||||
{
|
||||
@ -34,7 +32,7 @@
|
||||
KXL_SoundOk = False;
|
||||
|
||||
KXL_LoadSoundData(path, fname);
|
||||
@@ -265,6 +270,7 @@
|
||||
@@ -266,6 +268,7 @@
|
||||
close(KXL_SoundData.Pipe[0]);
|
||||
KXL_SoundOk = True;
|
||||
}
|
||||
@ -42,7 +40,7 @@
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -272,6 +278,7 @@
|
||||
@@ -273,6 +276,7 @@
|
||||
//==============================================================
|
||||
void KXL_EndSound(void)
|
||||
{
|
||||
@ -50,7 +48,7 @@
|
||||
while (KXL_SoundData.ListCnt)
|
||||
KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt].Data);
|
||||
KXL_Free(KXL_wavelist);
|
||||
@@ -281,5 +288,6 @@
|
||||
@@ -282,5 +286,6 @@
|
||||
KXL_PlaySound(0, KXL_SOUND_STOP_ALL);
|
||||
kill(KXL_SoundData.ID, SIGTERM);
|
||||
}
|
||||
|
10
devel/kxl/files/patch-src__KXL.h
Normal file
10
devel/kxl/files/patch-src__KXL.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/KXL.h.orig Wed Oct 5 12:14:12 2005
|
||||
+++ src/KXL.h Wed Oct 5 12:14:18 2005
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <stdio.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
-#include <linux/joystick.h>
|
||||
|
||||
|
||||
//================================================================
|
40
devel/kxl/files/patch-src__KXLjoystick.c
Normal file
40
devel/kxl/files/patch-src__KXLjoystick.c
Normal file
@ -0,0 +1,40 @@
|
||||
--- src/KXLjoystick.c.orig Wed Oct 5 12:14:36 2005
|
||||
+++ src/KXLjoystick.c Wed Oct 5 12:15:19 2005
|
||||
@@ -11,24 +11,7 @@
|
||||
// return value : True - ok, False - NG
|
||||
//==============================================================
|
||||
Bool KXL_OpenJoystick(Uint8 *devname) {
|
||||
- Uint8 name[128] = "Unknown";
|
||||
- Sint32 version = 0x000800;
|
||||
- Uint8 axis = 2;
|
||||
- Uint8 buttons = 2;
|
||||
-
|
||||
- KXL_joydev = open(devname, O_RDONLY);
|
||||
- if (KXL_joydev < 0) {
|
||||
- fprintf(stderr, "KXL error message\nCannot open \"%s\".\n", devname);
|
||||
- return False;
|
||||
- }
|
||||
- ioctl(KXL_joydev, JSIOCGVERSION, &version);
|
||||
- ioctl(KXL_joydev, JSIOCGAXES, &axis);
|
||||
- ioctl(KXL_joydev, JSIOCGBUTTONS, &buttons);
|
||||
- ioctl(KXL_joydev, JSIOCGNAME(128), name);
|
||||
- //fcntl(KXL_joydev, F_SETFL, O_NONBLOCK);
|
||||
- fprintf(stderr, "KXL message\nJoystick (%s) has %d axes and %d buttons.\nDriver version is %d.%d.%d.\n",
|
||||
- name, axis, buttons, version >> 16, (version >> 8) & 0xff, version & 0xff);
|
||||
- return True;
|
||||
+ return False;
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -46,11 +29,4 @@
|
||||
// return value : True - ok, False - NG
|
||||
//==============================================================
|
||||
Bool KXL_ReadJoystick(KXL_Joystick *my) {
|
||||
- if (KXL_joydev >= 0) {
|
||||
- if (read(KXL_joydev, my, JS_RETURN) == JS_RETURN) {
|
||||
- return True;
|
||||
- }
|
||||
- }
|
||||
- fprintf(stderr, "KXL error message\njoystick reading error\n");
|
||||
- return False;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
include/KXL.h
|
||||
lib/libKXL-1.1.5.so
|
||||
lib/libKXL-1.1.7.so
|
||||
lib/libKXL.so
|
||||
lib/libKXL.a
|
||||
lib/libKXL.la
|
||||
|
@ -6,7 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= kxl
|
||||
PORTVERSION= 1.1.5
|
||||
PORTVERSION= 1.1.7
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://kxl.hn.org/download/
|
||||
DISTNAME= KXL-${PORTVERSION}
|
||||
|
@ -1,2 +1,2 @@
|
||||
MD5 (KXL-1.1.5.tar.gz) = cc353e6e3db4f6ff72019766250ff04d
|
||||
SIZE (KXL-1.1.5.tar.gz) = 152643
|
||||
MD5 (KXL-1.1.7.tar.gz) = 321bfad9dee29840656225b54bb6feb0
|
||||
SIZE (KXL-1.1.7.tar.gz) = 192070
|
||||
|
@ -1,16 +1,14 @@
|
||||
--- src/KXLsound.c.orig Wed Feb 20 21:42:17 2002
|
||||
+++ src/KXLsound.c Wed Feb 20 21:44:49 2002
|
||||
@@ -3,7 +3,9 @@
|
||||
--- src/KXLsound.c.orig Fri Jan 17 01:29:09 2003
|
||||
+++ src/KXLsound.c Wed Oct 5 12:13:08 2005
|
||||
@@ -3,7 +3,6 @@
|
||||
#include <fcntl.h>
|
||||
#include <sys/time.h>
|
||||
#include <sys/ioctl.h>
|
||||
+#ifndef __FreeBSD__
|
||||
#include <linux/soundcard.h>
|
||||
+#endif
|
||||
#include <sys/time.h>
|
||||
-#include <linux/soundcard.h>
|
||||
#include "KXL.h"
|
||||
|
||||
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
||||
@@ -45,6 +47,7 @@
|
||||
@@ -45,6 +44,7 @@
|
||||
//==============================================================
|
||||
void KXL_SoundServer(void)
|
||||
{
|
||||
@ -18,7 +16,7 @@
|
||||
Uint16 i;
|
||||
KXL_SoundControl Command;
|
||||
fd_set sound_fdset;
|
||||
@@ -163,6 +166,7 @@
|
||||
@@ -163,6 +163,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -26,7 +24,7 @@
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -238,6 +242,7 @@
|
||||
@@ -239,6 +240,7 @@
|
||||
//==============================================================
|
||||
void KXL_InitSound(Uint8 *path, Uint8 **fname)
|
||||
{
|
||||
@ -34,7 +32,7 @@
|
||||
KXL_SoundOk = False;
|
||||
|
||||
KXL_LoadSoundData(path, fname);
|
||||
@@ -265,6 +270,7 @@
|
||||
@@ -266,6 +268,7 @@
|
||||
close(KXL_SoundData.Pipe[0]);
|
||||
KXL_SoundOk = True;
|
||||
}
|
||||
@ -42,7 +40,7 @@
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -272,6 +278,7 @@
|
||||
@@ -273,6 +276,7 @@
|
||||
//==============================================================
|
||||
void KXL_EndSound(void)
|
||||
{
|
||||
@ -50,7 +48,7 @@
|
||||
while (KXL_SoundData.ListCnt)
|
||||
KXL_Free(KXL_wavelist[-- KXL_SoundData.ListCnt].Data);
|
||||
KXL_Free(KXL_wavelist);
|
||||
@@ -281,5 +288,6 @@
|
||||
@@ -282,5 +286,6 @@
|
||||
KXL_PlaySound(0, KXL_SOUND_STOP_ALL);
|
||||
kill(KXL_SoundData.ID, SIGTERM);
|
||||
}
|
||||
|
10
games/kxl/files/patch-src__KXL.h
Normal file
10
games/kxl/files/patch-src__KXL.h
Normal file
@ -0,0 +1,10 @@
|
||||
--- src/KXL.h.orig Wed Oct 5 12:14:12 2005
|
||||
+++ src/KXL.h Wed Oct 5 12:14:18 2005
|
||||
@@ -4,7 +4,6 @@
|
||||
#include <stdio.h>
|
||||
#include <X11/Xlib.h>
|
||||
#include <X11/Xutil.h>
|
||||
-#include <linux/joystick.h>
|
||||
|
||||
|
||||
//================================================================
|
40
games/kxl/files/patch-src__KXLjoystick.c
Normal file
40
games/kxl/files/patch-src__KXLjoystick.c
Normal file
@ -0,0 +1,40 @@
|
||||
--- src/KXLjoystick.c.orig Wed Oct 5 12:14:36 2005
|
||||
+++ src/KXLjoystick.c Wed Oct 5 12:15:19 2005
|
||||
@@ -11,24 +11,7 @@
|
||||
// return value : True - ok, False - NG
|
||||
//==============================================================
|
||||
Bool KXL_OpenJoystick(Uint8 *devname) {
|
||||
- Uint8 name[128] = "Unknown";
|
||||
- Sint32 version = 0x000800;
|
||||
- Uint8 axis = 2;
|
||||
- Uint8 buttons = 2;
|
||||
-
|
||||
- KXL_joydev = open(devname, O_RDONLY);
|
||||
- if (KXL_joydev < 0) {
|
||||
- fprintf(stderr, "KXL error message\nCannot open \"%s\".\n", devname);
|
||||
- return False;
|
||||
- }
|
||||
- ioctl(KXL_joydev, JSIOCGVERSION, &version);
|
||||
- ioctl(KXL_joydev, JSIOCGAXES, &axis);
|
||||
- ioctl(KXL_joydev, JSIOCGBUTTONS, &buttons);
|
||||
- ioctl(KXL_joydev, JSIOCGNAME(128), name);
|
||||
- //fcntl(KXL_joydev, F_SETFL, O_NONBLOCK);
|
||||
- fprintf(stderr, "KXL message\nJoystick (%s) has %d axes and %d buttons.\nDriver version is %d.%d.%d.\n",
|
||||
- name, axis, buttons, version >> 16, (version >> 8) & 0xff, version & 0xff);
|
||||
- return True;
|
||||
+ return False;
|
||||
}
|
||||
|
||||
//==============================================================
|
||||
@@ -46,11 +29,4 @@
|
||||
// return value : True - ok, False - NG
|
||||
//==============================================================
|
||||
Bool KXL_ReadJoystick(KXL_Joystick *my) {
|
||||
- if (KXL_joydev >= 0) {
|
||||
- if (read(KXL_joydev, my, JS_RETURN) == JS_RETURN) {
|
||||
- return True;
|
||||
- }
|
||||
- }
|
||||
- fprintf(stderr, "KXL error message\njoystick reading error\n");
|
||||
- return False;
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
include/KXL.h
|
||||
lib/libKXL-1.1.5.so
|
||||
lib/libKXL-1.1.7.so
|
||||
lib/libKXL.so
|
||||
lib/libKXL.a
|
||||
lib/libKXL.la
|
||||
|
Loading…
Reference in New Issue
Block a user