- Update to 1.2

This commit is contained in:
Dmitry Marakasov 2020-09-27 23:17:21 +00:00
parent 36c1b51f11
commit 470470d3e4
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550383
4 changed files with 33 additions and 51 deletions

View file

@ -2,11 +2,10 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= supertuxkart PORTNAME= supertuxkart
PORTVERSION= 1.1 PORTVERSION= 1.2
PORTREVISION= 1
CATEGORIES= games CATEGORIES= games
MASTER_SITES= SF/supertuxkart/SuperTuxKart/${PORTVERSION} MASTER_SITES= SF/supertuxkart/SuperTuxKart/${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}-src DISTNAME= SuperTuxKart-${PORTVERSION}-src
MAINTAINER= amdmi3@FreeBSD.org MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Free 3D kart racing game COMMENT= Free 3D kart racing game
@ -14,25 +13,16 @@ COMMENT= Free 3D kart racing game
LICENSE= GPLv3+ LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/COPYING LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \ LIB_DEPENDS= libsqlite3.so:databases/sqlite3 \
libogg.so:audio/libogg \ libcurl.so:ftp/curl
libcurl.so:ftp/curl \
libpng.so:graphics/png \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libfribidi.so:converters/fribidi \
libraqm.so:print/libraqm \
libsqlite3.so:databases/sqlite3
BROKEN_i386= does not build (error: this directive must appear between .cfi_startproc and .cfi_endproc directives) BROKEN_FreeBSD_12_i386= does not build (error: this directive must appear between .cfi_startproc and .cfi_endproc directives)
USES= alias cmake compiler:c++11-lib gettext gl \ USES= alias cmake compiler:c++11-lib pkgconfig tar:xz
jpeg openal:al pkgconfig sdl tar:xz xorg CMAKE_OFF= USE_WIIUSE \
USE_GL= gl glu glew BUILD_RECORDER \
USE_SDL= sdl USE_SYSTEM_ENET \
USE_XORG= x11 xrandr USE_SYSTEM_SQUISH
CMAKE_OFF= USE_WIIUSE BUILD_RECORDER \
USE_SYSTEM_ENET USE_SYSTEM_SQUISH
CMAKE_ON= USE_SYSTEM_GLEW CMAKE_ON= USE_SYSTEM_GLEW
PORTDATA= * PORTDATA= *
@ -40,28 +30,32 @@ PORTDATA= *
CXXFLAGS+= -DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_ \ CXXFLAGS+= -DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_ \
-D__FREE_BSD_ -D__FREE_BSD_
OPTIONS_DEFINE= NETTLE WAYLAND OPTIONS_DEFINE= NETTLE SERVER_ONLY
OPTIONS_DEFAULT=WAYLAND OPTIONS_DEFAULT=NETTLE
NETTLE_DESC= Use Nettle instead of OpenSSL for cryptography NETTLE_DESC= Use Nettle instead of OpenSSL for cryptography
NETTLE_LIB_DEPENDS= libnettle.so:security/nettle NETTLE_LIB_DEPENDS= libnettle.so:security/nettle
NETTLE_USES_OFF= ssl NETTLE_USES_OFF= ssl
NETTLE_CMAKE_BOOL_OFF= USE_CRYPTO_OPENSSL NETTLE_CMAKE_BOOL_OFF= USE_CRYPTO_OPENSSL
WAYLAND_CMAKE_BOOL= ENABLE_WAYLAND_DEVICE SERVER_ONLY_DESC= Build server only
WAYLAND_LIB_DEPENDS= libwayland-egl.so:graphics/wayland \ SERVER_ONLY_CMAKE_BOOL= SERVER_ONLY
libxkbcommon.so:x11/libxkbcommon SERVER_ONLY_LIB_DEPENDS_OFF= \
WAYLAND_USE= GL=egl libvorbisfile.so:audio/libvorbis \
libogg.so:audio/libogg \
libpng.so:graphics/png \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz
SERVER_ONLY_USES_OFF= gettext gl jpeg openal:al sdl xorg
SERVER_ONLY_USE_OFF= GL=gl,glu,glew SDL=sdl2 XORG=x11,xrandr
# make sure that bundled libraries are not used # make sure that bundled libraries are not used
post-extract: post-extract:
.for bundled in glew jpeglib libpng libraqm wiiuse zlib .for bundled in glew wiiuse
@${RM} -rf ${WRKSRC}/lib/${bundled} @${RM} -rf ${WRKSRC}/lib/${bundled}
.endfor .endfor
post-patch: post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6/include|${LOCALBASE}/include|' \
${WRKSRC}/lib/irrlicht/CMakeLists.txt
@${REINPLACE_CMD} -e 's|Icon=.*|Icon=${PREFIX}/share/icons/hicolor/128x128/apps/supertuxkart.png|' \ @${REINPLACE_CMD} -e 's|Icon=.*|Icon=${PREFIX}/share/icons/hicolor/128x128/apps/supertuxkart.png|' \
${WRKSRC}/data/${PORTNAME}.desktop ${WRKSRC}/data/${PORTNAME}.desktop

View file

@ -1,3 +1,3 @@
TIMESTAMP = 1578346664 TIMESTAMP = 1598745498
SHA256 (supertuxkart-1.1-src.tar.xz) = e9b02b0b11ab68aacaec38306903feffe59a501224805cd3645cebf10e880ae8 SHA256 (SuperTuxKart-1.2-src.tar.xz) = 052edf0afdbeb99583fe8676fb0ab80ecb6103fb88b7540f858d1b5fa1297d37
SIZE (supertuxkart-1.1-src.tar.xz) = 616739152 SIZE (SuperTuxKart-1.2-src.tar.xz) = 614569164

View file

@ -1,19 +0,0 @@
--- cmake/FindFribidi.cmake.orig 2013-03-13 08:03:26.000000000 +0400
+++ cmake/FindFribidi.cmake 2013-11-28 09:33:04.134268507 +0400
@@ -18,7 +18,15 @@
set(FRIBIDI_FOUND 1)
elseif(UNIX)
include(FindPkgConfig)
- pkg_check_modules(FRIBIDI fribidi)
+ pkg_check_modules(PC_FRIBIDI fribidi)
+ find_path(FRIBIDI_INCLUDE_DIR NAMES fribidi/fribidi.h HINTS ${PC_FRIBIDI_INCLUDE_DIRS})
+ find_library(FRIBIDI_LIBRARY NAMES fribidi HINTS ${PC_FRIBIDI_LIBRARY_DIRS})
+
+ include(FindPackageHandleStandardArgs)
+ find_package_handle_standard_args(Fribidi DEFAULT_MSG FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)
+
+ set(FRIBIDI_INCLUDE_DIRS ${FRIBIDI_INCLUDE_DIR})
+ set(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY})
else()
set(FRIBIDI_FOUND 0)
endif()

View file

@ -1,6 +1,13 @@
bin/supertuxkart bin/supertuxkart
share/applications/supertuxkart.desktop share/applications/supertuxkart.desktop
share/icons/hicolor/1024x1024/apps/supertuxkart.png
share/icons/hicolor/128x128/apps/supertuxkart.png share/icons/hicolor/128x128/apps/supertuxkart.png
share/icons/hicolor/16x16/apps/supertuxkart.png
share/icons/hicolor/256x256/apps/supertuxkart.png
share/icons/hicolor/32x32/apps/supertuxkart.png
share/icons/hicolor/48x48/apps/supertuxkart.png share/icons/hicolor/48x48/apps/supertuxkart.png
share/icons/hicolor/512x512/apps/supertuxkart.png
share/icons/hicolor/64x64/apps/supertuxkart.png
share/metainfo/supertuxkart.appdata.xml share/metainfo/supertuxkart.appdata.xml
share/pixmaps/supertuxkart.png share/pixmaps/supertuxkart.png
@dir %%DATADIR%%/data/editor/maps