alex4: fix the build after allegro bump.

This commit is contained in:
Jerome Duval
2019-05-12 15:17:39 +02:00
parent 1ddbb617bb
commit 722ec61cc3
3 changed files with 1654 additions and 17 deletions

View File

@@ -5,14 +5,15 @@ Lola from evil humans who want to make a bag of her."
HOMEPAGE="https://sourceforge.net/projects/allegator/files/Alex4/" HOMEPAGE="https://sourceforge.net/projects/allegator/files/Alex4/"
COPYRIGHT="2003 Johan Peitz" COPYRIGHT="2003 Johan Peitz"
LICENSE="GNU GPL v2" LICENSE="GNU GPL v2"
REVISION="2" REVISION="3"
SOURCE_URI="http://downloads.sourceforge.net/allegator/alex4src_data.zip" SOURCE_URI="http://downloads.sourceforge.net/allegator/alex4src_data.zip"
CHECKSUM_SHA256="d266d7fba64fbfedf13240d3d0eb21b8bacbedeaa5f22b26a27d472c8d23f103" CHECKSUM_SHA256="d266d7fba64fbfedf13240d3d0eb21b8bacbedeaa5f22b26a27d472c8d23f103"
SOURCE_URI_2="http://downloads.sourceforge.net/allegator/alex4_beos_src.zip" SOURCE_URI_2="http://downloads.sourceforge.net/allegator/alex4_beos_src.zip"
CHECKSUM_SHA256_2="b5333034638c19643a7bd8f6e54033b10b354bbcd4e8771b4ac7cd4a33c9e7cf" CHECKSUM_SHA256_2="b5333034638c19643a7bd8f6e54033b10b354bbcd4e8771b4ac7cd4a33c9e7cf"
SOURCE_DIR="alex4src" SOURCE_DIR="alex4src"
SOURCE_DIR_2="alex4_BeOS_src" SOURCE_DIR_2="alex4_BeOS_src"
PATCHES_2="alex4-$portVersion.patch" PATCHES="alex4-$portVersion.patchset"
PATCHES_2="alex4-$portVersion-source2.patchset"
# TODO: Check if it would be OK to also import the patches in: # TODO: Check if it would be OK to also import the patches in:
# http://data.gpo.zugaina.org/gamerlay/games-arcade/alex4/files/ # http://data.gpo.zugaina.org/gamerlay/games-arcade/alex4/files/
# and sync with alex4-1.1 in http://gpo.zugaina.org/games-arcade/alex4 # and sync with alex4-1.1 in http://gpo.zugaina.org/games-arcade/alex4
@@ -42,15 +43,10 @@ BUILD_PREREQUIRES="
cmd:patch cmd:patch
" "
PATCH()
{
patch -p6 -u -i $sourceDir2/alex4_BeOS.diff
}
BUILD() BUILD()
{ {
cp $sourceDir2/Makefile src cp $sourceDir2/Makefile src
cp $sourceDir2/alex4.rsrc . cp $sourceDir2/alex4.rsrc src
make -C src $jobArgs make -C src $jobArgs
} }

View File

@@ -1,6 +1,14 @@
--- alex4_BeOS_src/Makefile.orig 2003-08-07 22:25:19.000000000 +0000 From aa5038994a06c9c957e1e9a86c8986b3faf8c74c Mon Sep 17 00:00:00 2001
+++ alex4_BeOS_src/Makefile From: Jerome Duval <jerome.duval@gmail.com>
@@ -1,11 +1,11 @@ Date: Sun, 12 May 2019 15:15:15 +0200
Subject: link against libaldmb.so
diff --git a/Makefile b/Makefile
index d10a6e5..6c802bc 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
CC=g++ CC=g++
CFLAGS=-c -O1 -c `allegro-config --cflags` CFLAGS=-c -O1 -c `allegro-config --cflags`
-LDFLAGS=`allegro-config --libs` -ldumb -LDFLAGS=`allegro-config --libs` -ldumb
@@ -8,9 +16,6 @@
SOURCES=actor.c edit.c map.c player.c shooter.c bullet.c hisc.c options.c script.c timer.c control.c main.c particle.c scroller.c token.c SOURCES=actor.c edit.c map.c player.c shooter.c bullet.c hisc.c options.c script.c timer.c control.c main.c particle.c scroller.c token.c
OBJECTS :=$(SOURCES:%.c=%.o) OBJECTS :=$(SOURCES:%.c=%.o)
all: clean compile all: clean compile
strip --strip-all alex4 --
- xres -o alex4 alex4.rsrc 2.21.0
+ xres -o alex4 ../alex4.rsrc
mimeset -f alex4
mv alex4 ../alex4

File diff suppressed because it is too large Load Diff