svn commit: r503404 - head/games/supertuxkart

Dmitry Marakasov amdmi3 at FreeBSD.org
Mon Jun 3 17:37:14 UTC 2019


Author: amdmi3
Date: Mon Jun  3 17:37:13 2019
New Revision: 503404
URL: https://svnweb.freebsd.org/changeset/ports/503404

Log:
  Add option to switch between Nettle and OpenSSL for cryptography
  
  Nettle is used by default in accordance to what upstream CMake
  code prefers.
  
  This fixes hidden dependency on nettle if it's installed when
  supertuxkart is build.
  
  PR:		237923
  Reported by:	phascolarctos at protonmail.ch
  MFH:		2019Q2

Modified:
  head/games/supertuxkart/Makefile

Modified: head/games/supertuxkart/Makefile
==============================================================================
--- head/games/supertuxkart/Makefile	Mon Jun  3 17:17:14 2019	(r503403)
+++ head/games/supertuxkart/Makefile	Mon Jun  3 17:37:13 2019	(r503404)
@@ -3,6 +3,7 @@
 
 PORTNAME=	supertuxkart
 PORTVERSION=	1.0
+PORTREVISION=	1
 CATEGORIES=	games
 MASTER_SITES=	SF/supertuxkart/SuperTuxKart/${PORTVERSION}
 DISTNAME=	${PORTNAME}-${PORTVERSION}-src
@@ -30,7 +31,7 @@ BROKEN_powerpc64=	invokes x86 assembler
 BROKEN_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 \
-		jpeg openal:al pkgconfig sdl tar:xz ssl
+		jpeg openal:al pkgconfig sdl tar:xz
 USE_GL=		gl glu glew
 USE_SDL=	sdl
 USE_XORG=	x11 xrandr
@@ -45,12 +46,17 @@ PORTDATA=	*
 CXXFLAGS+=	-DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_ \
 		-D__FREE_BSD_
 
-OPTIONS_DEFINE=	FRIBIDI
-OPTIONS_DEFAULT=FRIBIDI
+OPTIONS_DEFINE=	FRIBIDI NETTLE
+OPTIONS_DEFAULT=FRIBIDI NETTLE
 
 FRIBIDI_DESC=		Support for right-to-left languages
 FRIBIDI_CMAKE_BOOL=	USE_FRIBIDI
 FRIBIDI_LIB_DEPENDS=	libfribidi.so:converters/fribidi
+
+NETTLE_DESC=		Use Nettle instead of OpenSSL for cryptography
+NETTLE_LIB_DEPENDS=	libnettle.so:security/nettle
+NETTLE_USES_OFF=	ssl
+NETTLE_CMAKE_BOOL_OFF=	USE_CRYPTO_OPENSSL
 
 # make sure that as much bundled stuff as possible is not used
 post-extract:


More information about the svn-ports-head mailing list