xrick: enable for x86_64

This commit is contained in:
Jerome Duval
2023-06-29 19:30:18 +02:00
parent 3aa6bfd588
commit 9fe78a4b7d
2 changed files with 18 additions and 9 deletions

View File

@@ -1,4 +1,4 @@
From ccf5332c9a11ddd0242daa965306cae0710a1bb6 Mon Sep 17 00:00:00 2001
From b20e8f7b787c0ced7d635c24926bdb04572edfb6 Mon Sep 17 00:00:00 2001
From: Adrien Destugues <pulkomandy@pulkomandy.tk>
Date: Sun, 12 Jan 2014 21:32:19 +0100
Subject: Look for the datafile next to the executable.
@@ -6,10 +6,19 @@ Subject: Look for the datafile next to the executable.
XRick can be run from Deskbar or Tracker this way.
diff --git a/src/xrick.c b/src/xrick.c
index 38d4e26..870adc7 100644
index 38d4e26..4bde442 100644
--- a/src/xrick.c
+++ b/src/xrick.c
@@ -25,8 +25,13 @@ main(int argc, char *argv[])
@@ -14,6 +14,8 @@
#include "system.h"
#include "game.h"
+#include <libgen.h>
+
#include <SDL.h>
/*
@@ -25,8 +27,13 @@ main(int argc, char *argv[])
sys_init(argc, argv);
if (sysarg_args_data)
data_setpath(sysarg_args_data);
@@ -29,7 +38,7 @@ index 38d4e26..870adc7 100644
2.37.3
From fb1d68079b8cf99c7c99fb775d1a33ec2edf8ad7 Mon Sep 17 00:00:00 2001
From 8d9d18d6a0ce84cfa5810bf5f82ae5189163d0fe Mon Sep 17 00:00:00 2001
From: Humdinger <humdingerb@gmail.com>
Date: Mon, 26 May 2014 19:18:37 +0200
Subject: Disable quitting with ESC, just end the currently running game.
@@ -92,7 +101,7 @@ index 2394760..adde88f 100644
2.37.3
From 70b7bf437ab92f2a71c48b5046b09122ae145dae Mon Sep 17 00:00:00 2001
From d65a82cd85ded96b9713dfbbf4ee89b24c464c02 Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Thu, 29 Jun 2023 13:01:09 +0000
Subject: Makefile patches
@@ -110,7 +119,7 @@ index d87bc0e..eddc21c 100644
- @echo "LDFLAGS=-lz $(shell sdl-config --libs)" >> Makefile.global
- @echo "CC=gcc" >> Makefile.global
- @echo "CPP=gcc -E" >> Makefile.global
+ @echo "CFLAGS+=-pedantic -Wall -I$(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global
+ @echo "CFLAGS+=-pedantic -Wall -O2 -I$(ROOTDIR)/include $(shell sdl-config --cflags)" >> Makefile.global
+ @echo "LIBS+=-lz $(shell sdl-config --libs)" >> Makefile.global
$(MAKE) -C src all
@@ -136,7 +145,7 @@ index fb1c7eb..147f143 100644
2.37.3
From f0965542e16acc9a77b8f55ac17bcdb7b1c13d9d Mon Sep 17 00:00:00 2001
From f4bdf8a5eea4db4a2890eb59050f4ee12530e99d Mon Sep 17 00:00:00 2001
From: Begasus <begasus@gmail.com>
Date: Thu, 29 Jun 2023 13:08:02 +0000
Subject: Fix multiple defenitions

View File

@@ -9,7 +9,7 @@ and theSchwarzendumpf castle."
HOMEPAGE="http://www.bigorno.net/xrick"
COPYRIGHT="2000-2006 Bigorno.net"
LICENSE="xrick"
REVISION="3"
REVISION="4"
SOURCE_URI="http://www.bigorno.net/xrick/xrick-021212.tgz"
CHECKSUM_SHA256="aa8542120bec97a730258027a294bd16196eb8b3d66134483d085f698588fc2b"
PATCHES="xrick-$portVersion.patchset"
@@ -20,7 +20,7 @@ ADDITIONAL_FILES="
xrick_icon_64.png
xrick.png"
ARCHITECTURES="?all x86_gcc2"
ARCHITECTURES="all"
PROVIDES="
xrick = $portVersion