pkgsrc/games/etlegacy/Makefile.common
nia e3798c16c6 etlegacy[-server]: update to 2.80.0
2.80.0 (released 09/04/2022)

  Engine

    General

     * Fixed infinite loop in filesystem initalization when pak0.pk3 was
       missing
     * Changed default URI from ET:// (upper case) to et:// (lower case) and
       made case insensitive for compatibility / flexibility

  Client

    General

     * Removed cl_activateLean cvar (moved behaviour to mod
       (cg_activateLean))

    SDL2 Audio backend

     * Fixed double played sound in one frame increasing sound (i.e mg42)

  Mod

    General

     * Fixed players not set unready after swapping teams
     * Fixed wait map-script command not matching the correct time on higher
       sv_fps (comparing to sv_fps 20), which affected and broke certain
       gameplay elements
     * Updated game command list and related help in console
     * Fixed accuracy calculation for splashdamage weapons
     * Fixed dropping objective was allowed during pause
     * Added cg_activateLean, allowing all clients activate lean usage
     * Added g_shoveNoZ to allow disabling Z shove completely
     * Added binds for shifting enemy spawn timer and requesting artillery
     * Changed the way for displaying help command by swapping arguments
       order (Before: <command_name> ?) (After: ? <command_name>)

    Stability & Performance

     * Fixed hitsounds reduced network performance and sometimes get
       duplicated, especially with high pings
     * Added commands flood protection (g_floodProtection / g_floodLimit /
       g_floodWait cvars)
     * Changed unprotect flood for team cmd so class cmd doesn't get dropped
     * Fixed prediction error by changing cg_errorDecay flag with CVAR_CHEAT

    Audio

     * Fixed missing hitsound when player has exactly FORCE_LIMBO_HEALTH
       health (-113 HP)

    Graphics

     * Fixed players breath puffs effect missing completely
     * Fixed pause weapon animation in 1st person during pause
     * Fixed viewmodel FOV calculation wasn't lowering enough 1st person
       weapon draw on FOV > 90
     * Remove g_altSuicideAnim and default to the normal death anim on player
       suiciding
     * Fixed a crash with cg_drawgun 2 and cg_weapanims 0 combination
     * Added voice chat icons for :
          * Affirmative / Negative
          * Hold your fire
          * Say player class

    UI

     * Fixed disconnect icon rendering through walls
     * Added hud componement scale and color configurability from hud file
     * Fixed fireteam highlight overlay spacing on top edge
     * Fixed * characters in map description were not replaced by line feed
     * Added cg_popupTime and cg_numPopups cvar to control popups more
       thoroughly
     * Added sharetimer/sharetimer_buddy commands and cg_sharetimerText cvar
       share the spawntimer you have set for when you think the enemy spawns
     * Removed grid drawing on compass
     * Added cg_fireteamBgAlpha cvar to control fireteam background alpha
       value
     * Added cvar name tooltip in option menus
     * Added missile camera for practice
     * Enhanced squared compass
          * Fixed icon scaling to match regular compass
          * Fixed slightly incorrect out of bounds check for icons
          * Icons are now drawn when they're inside the map and respect map
            zoom
          * Added indicators for N, S, E, W

    Weapons

     * Increased landmine splash radius by 25 (225 -> 250) to match etpro
     * Fixed picking up rifle with full riflenade ammo was restoring 4
       riflenade instead of 5
     * Fixed throwable missiles (i.e: grenade, satchel, dynamite, landmine)
       infinite bouncing
     * Removed hardcoded sensitivity on mounted mg's and use common
       sensitivity
     * Added cg_scopedSensitivityScaler to scale sensitivity when scoped
2022-04-17 09:24:14 +00:00

97 lines
2.8 KiB
Makefile

# $NetBSD: Makefile.common,v 1.7 2022/04/17 09:24:14 nia Exp $
# used by games/etlegacy/Makefile
# used by games/etlegacy-server/Makefile
ETL_VERSION= 2.80.0
CATEGORIES= games
DIST_SUBDIR= etlegacy-${PKGVERSION_NOREV}
DISTFILES+= etlegacy.tar.gz
DISTFILES+= etlegacy-libs.tar.gz
LIBS_TAG= f04f846898a92d36fd9cfe7425b1ab4d31bca794
SITES.etlegacy.tar.gz= \
-https://github.com/etlegacy/etlegacy/archive/v${PKGVERSION_NOREV}.tar.gz
SITES.etlegacy-libs.tar.gz= \
-https://github.com/etlegacy/etlegacy-libs/archive/${LIBS_TAG}.tar.gz
MAINTAINER= nia@NetBSD.org
HOMEPAGE= https://www.etlegacy.com/
LICENSE= gnu-gpl-v3
DISTINFO_FILE= ${.CURDIR}/../../games/etlegacy/distinfo
PATCHDIR= ${.CURDIR}/../../games/etlegacy/patches
MESSAGE_SRC= ${.CURDIR}/../../games/etlegacy/MESSAGE
PLIST_SRC= ${.CURDIR}/../../games/etlegacy/PLIST
PLIST_SRC+= ${.CURDIR}/../../games/etlegacy/PLIST.${OPSYS}
WRKSRC= ${WRKDIR}/etlegacy-${ETL_VERSION}
USE_CMAKE= yes
USE_LANGUAGES= c c++
# use libraries from pkgsrc
CMAKE_ARGS+= -DBUNDLED_CURL=OFF
CMAKE_ARGS+= -DBUNDLED_FREETYPE=OFF
CMAKE_ARGS+= -DBUNDLED_GLEW=OFF
CMAKE_ARGS+= -DBUNDLED_JANSSON=OFF
CMAKE_ARGS+= -DBUNDLED_JPEG=OFF
CMAKE_ARGS+= -DBUNDLED_LUA=OFF
CMAKE_ARGS+= -DBUNDLED_OGG_VORBIS=OFF
CMAKE_ARGS+= -DBUNDLED_OPENAL=OFF
CMAKE_ARGS+= -DBUNDLED_OPENSSL=OFF
CMAKE_ARGS+= -DBUNDLED_SDL=OFF
CMAKE_ARGS+= -DBUNDLED_SQLITE3=OFF
CMAKE_ARGS+= -DBUNDLED_THEORA=OFF
CMAKE_ARGS+= -DBUNDLED_WOLFSSL=OFF
CMAKE_ARGS+= -DBUNDLED_ZLIB=OFF
# don't try to build i386 binaries on amd64
CMAKE_ARGS+= -DCROSS_COMPILE32=OFF
# Don't download unversioned tarballs
CMAKE_ARGS+= -DINSTALL_EXTRA=OFF
CMAKE_ARGS+= -DFEATURE_AUTOUPDATE=OFF
# tries to install binaries
# but maybe this can be built from source separately
CMAKE_ARGS+= -DFEATURE_OMNIBOT=OFF
CMAKE_ARGS+= -DINSTALL_OMNIBOT=OFF
CMAKE_ARGS+= -DCMAKE_BUILD_TYPE="Release"
CMAKE_ARGS+= -DINSTALL_DEFAULT_BASEDIR="${PREFIX}/share/etlegacy"
CMAKE_ARGS+= -DINSTALL_DEFAULT_BINDIR="bin"
CMAKE_ARGS+= -DINSTALL_DEFAULT_MODDIR="share/etlegacy"
# don't use fopen64 etc
CFLAGS+= -DIOAPI_NO_64
CHECK_PORTABILITY_SKIP+= libs/sdl2/build-scripts/*
CHECK_PORTABILITY_SKIP+= libs/jpegturbo/release/makemacpkg.in
.include "../../mk/bsd.fast.prefs.mk"
.if ${MACHINE_ARCH} == "x86_64"
PLIST_SUBST+= ARCH_STRING="x86_64"
.elif ${MACHINE_ARCH} == "i386"
PLIST_SUBST+= ARCH_STRING="i386"
.elif !empty(MACHINE_ARCH:M*arm*)
PLIST_SUBST+= ARCH_STRING="arm"
.else
# maybe architecture-neutral shared objects could be generated
PKG_SKIP_REASON+= \
"unsupported MACHINE_ARCH, add it to ETLPlatform.cmake"
.endif
post-extract:
${MV} ${WRKDIR}/etlegacy-libs-${LIBS_TAG}/* \
${WRKDIR}/etlegacy-${PKGVERSION_NOREV}/libs
.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/dlopen.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
.include "../../www/curl/buildlink3.mk"