Tuesday, June 07, 2022

update games/supertuxkart to 1.3

Hello,

here's an update for supertuxkart. I couldn't find the tarball on
sourceforge so I've moved MASTER_SITES to github.

the patches were either upstreamed or no longer relevant, so almost all
of the were removed. freebidi is no longer a dependency AFAICS, they
moved to SheenBidi. I had to specify -DUSE_DNS_C=ON to build the
bundled dns resolver because our arpa/nameser.h is too old (?) and
didn't built with that.

I still have to test the online multiplayer, otherwise the game seems
to run fine.

OK/Comments?


Index: Makefile
===================================================================
RCS file: /home/cvs/ports/games/supertuxkart/Makefile,v
retrieving revision 1.33
diff -u -p -r1.33 Makefile
--- Makefile 28 May 2022 06:20:00 -0000 1.33
+++ Makefile 7 Jun 2022 10:48:21 -0000
@@ -2,47 +2,49 @@ ONLY_FOR_ARCHS = amd64 i386 powerpc

COMMENT = kart racing game with OSS mascots

-V = 0.9.3
-BASENAME = supertuxkart-${V}
-DISTNAME = ${BASENAME}-src
-PKGNAME = ${BASENAME}
-REVISION = 1
+V = 1.3
+DISTNAME = SuperTuxKart-${V}
+PKGNAME = ${DISTNAME:L}

CATEGORIES = games

-HOMEPAGE = http://supertuxkart.sourceforge.net
+HOMEPAGE = https://supertuxkart.net/Main_Page

MAINTAINER = Pascal Stumpf <pascal@stumpf.co>

# GPLv3+
PERMIT_PACKAGE = Yes

-WANTLIB += ${COMPILER_LIBCXX} GL X11 Xrandr c curl freetype jpeg
-WANTLIB += m ogg openal png vorbis vorbisenc vorbisfile z SDL
+WANTLIB += ${COMPILER_LIBCXX} SDL2 c crypto curl freetype harfbuzz
+WANTLIB += jpeg m openal png sqlite3 vorbisfile z

-MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=supertuxkart/SuperTuxKart/}
-EXTRACT_SUFX = .tar.xz
+MASTER_SITES = https://github.com/supertuxkart/stk-code/releases/download/$V/
+EXTRACT_SUFX = -src.tar.xz

MODULES = devel/cmake
+
+# gnu++0x
COMPILER = base-clang ports-gcc

-MODCMAKE_LDFLAGS = -L${X11BASE}/lib -L${LOCALBASE}/lib
+CXXFLAGS += -I${X11BASE}/include
+MODCMAKE_LDFLAGS = -L${X11BASE}/lib -L${LOCALBASE}/lib
+
+RUN_DEPENDS = devel/desktop-file-utils \
+ x11/gtk+3,-guic

-RUN_DEPENDS = devel/desktop-file-utils
LIB_DEPENDS = audio/openal>=0.0.8p7 \
audio/libvorbis \
- devel/sdl \
+ devel/harfbuzz \
+ devel/sdl2 \
net/curl \
graphics/png \
graphics/jpeg

CONFIGURE_ARGS += -DUSE_WIIUSE=OFF \
- -DUSE_FRIBIDI=OFF \
+ -DUSE_DNS_C=ON \
-DBUILD_RECORDER=OFF

-WRKDIST = ${WRKDIR}/supertuxkart-${V}
-FIX_CRLF_FILES = lib/irrlicht/include/IrrCompileConfig.h \
- lib/irrlicht/source/Irrlicht/CIrrDeviceSDL.cpp
+WRKDIST = ${WRKDIR}/${DISTNAME}-src

NO_TEST = Yes

Index: distinfo
===================================================================
RCS file: /home/cvs/ports/games/supertuxkart/distinfo,v
retrieving revision 1.9
diff -u -p -r1.9 distinfo
--- distinfo 27 Nov 2017 15:45:19 -0000 1.9
+++ distinfo 7 Jun 2022 09:35:18 -0000
@@ -1,2 +1,2 @@
-SHA256 (supertuxkart-0.9.3-src.tar.xz) = 2AFOcQa6hPmLXsXxRiSdz/woT8QIP48jf/QgueIhnLA=
-SIZE (supertuxkart-0.9.3-src.tar.xz) = 544517772
+SHA256 (SuperTuxKart-1.3-src.tar.xz) = 7qvrDZgBaIohj28Kduo1RqRqMizKypolgUjsrP4IP/0=
+SIZE (SuperTuxKart-1.3-src.tar.xz) = 627753500
Index: patches/patch-CMakeLists_txt
===================================================================
RCS file: patches/patch-CMakeLists_txt
diff -N patches/patch-CMakeLists_txt
--- patches/patch-CMakeLists_txt 11 Mar 2022 19:04:59 -0000 1.6
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,11 +0,0 @@
-Index: CMakeLists.txt
---- CMakeLists.txt.orig
-+++ CMakeLists.txt
-@@ -416,6 +416,7 @@ target_link_libraries(supertuxkart
- ${JPEG_LIBRARIES}
- ${TURBOJPEG_LIBRARY}
- #${VPX_LIBRARIES}
-+ SDL
- )
-
- if(NOT SERVER_ONLY)
Index: patches/patch-lib_glew_include_GL_glew_h
===================================================================
RCS file: patches/patch-lib_glew_include_GL_glew_h
diff -N patches/patch-lib_glew_include_GL_glew_h
--- patches/patch-lib_glew_include_GL_glew_h 11 Mar 2022 19:04:59 -0000 1.2
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,25 +0,0 @@
-modify embedded copy of glew.h for recent Mesa versions
-
-Mesa >= 18.2.5 has newer OpenGL headers from Khronos which change the
-include guards.
-
-Index: lib/glew/include/GL/glew.h
---- lib/glew/include/GL/glew.h.orig
-+++ lib/glew/include/GL/glew.h
-@@ -93,7 +93,7 @@
- #if defined(__REGAL_H__)
- #error Regal.h included before glew.h
-

No comments:

Post a Comment