development/bbcsdl: Updated for version 1.38a.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Antonio Leal 2023-11-19 18:36:43 +07:00 committed by Willy Sudiarto Raharjo
parent 1211c099b9
commit 7304565e0b
No known key found for this signature in database
GPG Key ID: 3F617144D7238786
6 changed files with 95 additions and 15 deletions

View File

@ -17,9 +17,11 @@ sources available at https://github.com/rtrussell/BBCSDL
In addition to the 'bbcsdl' the 'bbcbasic' linux console version
of the program is also build.
The Box2D321.so library (md5 215bbda5d9a92a5cc99534de4e1235aa)
is bundled with the original release by R.T.Russell available
at https://www.bbcbasic.co.uk/bbcsdl/bbclinux.zip
The Box2D (Box2D321.so) libraries:
- 64 bits md5 215bbda5d9a92a5cc99534de4e1235aa and
- 32 bits md5 f079027b8e2589a10fd17eca77e644f7
are bundled with the original release by R.T.Russell available
at https://www.bbcbasic.co.uk/bbcsdl/bbclinux.zip.
This SlackBuild includes it as a separate download from the
package maintainer github account as it is not packaged with
program sources. If you do not need it you can exclude the

View File

@ -26,11 +26,11 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=bbcsdl
VERSION=${VERSION:-1.37a}
BUILD=${BUILD:-2}
VERSION=${VERSION:-1.38a}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
TARBALL=${TARBALL:-BBCSDL-5fbdc964becd87f31a92f87fec29c2f67cf3b908}
TARBALL=${TARBALL:-BBCSDL-b501c7856904be335bf891879b1f2329a1a2bfac}
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@ -72,8 +72,14 @@ tar xvfz $CWD/$TARBALL.tar.gz
mv $TARBALL $PRGNAM-$VERSION
cd $PRGNAM-$VERSION
# Correct path in makefile
patch console/linux/makefile $CWD/makefile.patch
# Patch makefiles
if [ "$ARCH" = "x86_64" ]; then
patch console/linux/makefile $CWD/makefile-console-64.patch
fi
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
patch console/linux/makefile $CWD/makefile-console-32.patch
patch bin/linux/makefile $CWD/makefile-sdl-32.patch
fi
chown -R root:root .
find -L . \
@ -101,7 +107,14 @@ cp -avxu examples $PKG/opt/$PRGNAM/
# Optionally exclude the Box2D library
if [ "${BOX2D:-yes}" = "yes" ]; then
tar xvfz $CWD/Box2D231.tar.gz
if [ "$ARCH" = "x86_64" ]; then
#MD5 215bbda5d9a92a5cc99534de4e1235aa
tar xvfz $CWD/Box2D231_64.tar.gz
fi
if [ "$ARCH" = "i586" ] || [ "$ARCH" = "i686" ]; then
#MD5 f079027b8e2589a10fd17eca77e644f7
tar xvfz $CWD/Box2D231_32.tar.gz
fi
install -D -m0755 Box2D231.so $PKG/opt/$PRGNAM/Box2D231.so
fi

View File

@ -1,12 +1,14 @@
PRGNAM="bbcsdl"
VERSION="1.37a"
VERSION="1.38a"
HOMEPAGE="https://www.bbcbasic.co.uk/bbcsdl"
DOWNLOAD="https://github.com/rtrussell/BBCSDL/archive/5fbdc96/BBCSDL-5fbdc964becd87f31a92f87fec29c2f67cf3b908.tar.gz \
https://github.com/antonioleal/slackbuilds/raw/main/bbcsdl/Box2D231.tar.gz"
MD5SUM="2c0023b326129eaed0faefc6f975e951 \
DOWNLOAD="https://github.com/rtrussell/BBCSDL/archive/b501c78/BBCSDL-b501c7856904be335bf891879b1f2329a1a2bfac.tar.gz \
https://github.com/antonioleal/slackbuilds/raw/main/bbcsdl/Box2D231_32.tar.gz"
MD5SUM="be8d92b472ecba1dcd1765b1c6f13dda \
ccfb8ab5f63f0d3a8cec047005061a88"
DOWNLOAD_x86_64="https://github.com/rtrussell/BBCSDL/archive/b501c78/BBCSDL-b501c7856904be335bf891879b1f2329a1a2bfac.tar.gz \
https://github.com/antonioleal/slackbuilds/raw/main/bbcsdl/Box2D231_64.tar.gz"
MD5SUM_x86_64="be8d92b472ecba1dcd1765b1c6f13dda \
3d6e27b4b1214432a43244a7bc3e615b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""
MAINTAINER="Antonio Leal"
EMAIL="antonioleal@yahoo.com"

View File

@ -0,0 +1,13 @@
--- makefile 2023-11-17 22:37:21.787892000 +0000
+++ makefile.new 2023-11-17 23:05:02.368574413 +0000
@@ -23,8 +23,8 @@
bbccon.o: bbccon.c bbccon.h
$(CXX) -Wno-array-bounds -Wno-unused-result -c -Os $< -o $@
-bbdata.o: ../../../BBCSDL/src/bbdata_x86_64.nas
- nasm -f elf64 -s ../../../BBCSDL/src/bbdata_x86_64.nas -o bbdata.o
+bbdata.o: ../../src/bbdata_x86_32.nas
+ nasm -f elf32 -s ../../src/bbdata_x86_32.nas -o bbdata.o
bbcbasic: $(OBJ)
$(CXX) $(OBJ) -L . -L/usr/include -ldl -lm -lrt -pthread \

View File

@ -0,0 +1,50 @@
--- makefile.ori 2023-11-18 16:05:00.344034123 +0000
+++ makefile 2023-11-18 18:10:30.536390339 +0000
@@ -20,19 +20,19 @@
all: bbcsdl
bbmain.o: bbmain.c BBC.h
- $(CXX) -c -O2 -freg-struct-return -ffast-math -fno-finite-math-only $< -o $@
+ $(CXX) -c -freg-struct-return -ffast-math -fno-finite-math-only $< -o $@
bbexec.o: bbexec.c BBC.h
- $(CXX) -c -O2 -freg-struct-return -ffast-math -fno-finite-math-only $< -o $@
+ $(CXX) -c -freg-struct-return -ffast-math -fno-finite-math-only $< -o $@
bbeval.o: bbeval.c BBC.h
- $(CXX) -Wno-array-bounds -c -O2 -freg-struct-return -ffast-math -fno-finite-math-only $< -o $@
+ $(CXX) -Wno-array-bounds -c -freg-struct-return -ffast-math -fno-finite-math-only $< -o $@
bbasmb.o: bbasmb_x86_64.c BBC.h
$(CXX) -c -Os $< -o $@
bbcmos.o: bbcmos.c bbcsdl.h
- $(CXX) -Wno-unused-result -Wno-array-bounds -c -msse2 -O2 $< -o $@
+ $(CXX) -Wno-unused-result -Wno-array-bounds -c -msse2 $< -o $@
bbccli.o: bbccli.c bbcsdl.h
$(CXX) -Wno-unused-result -c -Os $< -o $@
@@ -41,19 +41,19 @@
$(CXX) -c -Os $< -o $@
bbcvtx.o: bbcvtx.c bbcsdl.h
- $(CXX) -c -O3 $< -o $@
+ $(CXX) -c $< -o $@
bbcsdl.o: bbcsdl.c bbcsdl.h version.h
- $(CXX) -Wno-unused-result -c -O2 $< -o $@
+ $(CXX) -Wno-unused-result -c $< -o $@
SDL2_gfxPrimitives.o: SDL2_gfxPrimitives.c SDL2_gfxPrimitives.h
- $(CXX) -c -O2 $< -o $@
+ $(CXX) -c $< -o $@
SDL2_rotozoom.o: SDL2_rotozoom.c SDL2_rotozoom.h SDL2_gfxPrimitives.h SDL_stbimage.h stb_image.h dr_mp3.h
$(CXX) -c -Os -fPIC $< -o $@
flood.o: flood.c
- $(CXX) -c -O3 $< -o $@
+ $(CXX) -c $< -o $@
ifeq ($(LBITS),64)
bbdata.o: ../../src/bbdata_x86_64.nas