mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
86e42cce0c
PR: 240554 Submitted by: pkubaj@FreeBSD.org
73 lines
2.0 KiB
Makefile
73 lines
2.0 KiB
Makefile
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= supertuxkart
|
|
PORTVERSION= 1.0
|
|
PORTREVISION= 3
|
|
CATEGORIES= games
|
|
MASTER_SITES= SF/supertuxkart/SuperTuxKart/${PORTVERSION}
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Free 3D kart racing game
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \
|
|
libogg.so:audio/libogg \
|
|
libcurl.so:ftp/curl \
|
|
libpng.so:graphics/png \
|
|
libfreetype.so:print/freetype2 \
|
|
libenet.so:net/enet
|
|
|
|
BROKEN_aarch64= invokes x86 assembler
|
|
BROKEN_armv6= invokes x86 assembler
|
|
BROKEN_armv7= invokes x86 assembler
|
|
BROKEN_mips= invokes x86 assembler
|
|
BROKEN_mips64= invokes x86 assembler
|
|
BROKEN_sparc64= 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
|
|
USE_GL= gl glu glew
|
|
USE_SDL= sdl
|
|
USE_XORG= x11 xrandr
|
|
LLD_UNSAFE= yes
|
|
CMAKE_OFF= USE_WIIUSE BUILD_RECORDER
|
|
CMAKE_ON= USE_SYSTEM_ENET USE_SYSTEM_GLEW
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
PORTDATA= *
|
|
|
|
CXXFLAGS+= -DNO_IRR_COMPILE_WITH_JOYSTICK_EVENTS_ \
|
|
-D__FREE_BSD_
|
|
|
|
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:
|
|
.for bundled in jpeglib libpng zlib enet glew wiiuse
|
|
@${RM} -rf ${WRKSRC}/lib/${bundled}
|
|
.endfor
|
|
|
|
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|' \
|
|
${WRKSRC}/data/${PORTNAME}.desktop
|
|
|
|
.include <bsd.port.mk>
|