Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add warfork #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions bucket_98/warfork/descriptions/desc.client
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Warfork is a demanding fast paced first person shooter with a focus on
speed, aim, movement, and about all competitive play.

This package provides game client.
4 changes: 4 additions & 0 deletions bucket_98/warfork/descriptions/desc.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Warfork is a demanding fast paced first person shooter with a focus on
speed, aim, movement, and about all competitive play.

This package provides game data.
4 changes: 4 additions & 0 deletions bucket_98/warfork/descriptions/desc.modules
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Warfork is a demanding fast paced first person shooter with a focus on
speed, aim, movement, and about all competitive play.

This package provides common game modules.
4 changes: 4 additions & 0 deletions bucket_98/warfork/descriptions/desc.server
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Warfork is a demanding fast paced first person shooter with a focus on
speed, aim, movement, and about all competitive play.

This package provides game server.
2 changes: 2 additions & 0 deletions bucket_98/warfork/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
d00e00efaead622b13f4d21f8fde255e35093a8b484c114fe74e365e12984238 74358549 TeamForbiddenLLC-warfork-qfusion-e1247b0.tar.gz
58acce858f7a9c7650c48f7801de8911e0b7b3e5095713482ac831231a817124 466031743 warfork_4269802_Oct_08_2019_unified.tar
8 changes: 8 additions & 0 deletions bucket_98/warfork/manifests/plist.client
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bin/warfork
share/warfork/basewf/libcgame.so
share/warfork/libs/libcin.so
share/warfork/libs/libftlib.so
share/warfork/libs/libref_gl.so
share/warfork/libs/libsnd_openal.so
share/warfork/libs/libsteamlib.so
share/warfork/libs/libui.so
527 changes: 527 additions & 0 deletions bucket_98/warfork/manifests/plist.data

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions bucket_98/warfork/manifests/plist.modules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
share/warfork/basewf/libgame.so
share/warfork/libs/libangelwrap.so
share/warfork/libs/libirc.so
2 changes: 2 additions & 0 deletions bucket_98/warfork/manifests/plist.server
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
bin/wf_server
bin/wftv_server
14 changes: 14 additions & 0 deletions bucket_98/warfork/patches/patch-source_CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Index: source/CMakeLists.txt
--- source/CMakeLists.txt.orig
+++ source/CMakeLists.txt
@@ -99,8 +99,8 @@ else()
add_definitions(-D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pipe -Wall -Wno-unused-function -fvisibility=hidden -Winvalid-pch")
- set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -O0 -D_DEBUG")
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fno-strict-aliasing -ffast-math -funroll-loops -msse2 -O2")
+ set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -D_DEBUG")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -fno-strict-aliasing -ffast-math -funroll-loops -msse2")

set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -std=c++11")
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG}")
19 changes: 19 additions & 0 deletions bucket_98/warfork/patches/patch-source_qcommon_library.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Index: source/qcommon/library.c
--- source/qcommon/library.c.orig
+++ source/qcommon/library.c
@@ -299,15 +299,6 @@ void *Com_LoadGameLibrary( const char *basename, const
return NULL;
}

- // pure check
- if( pure && !FS_IsPureFile( libname ) )
- {
- Com_Printf( "LoadLibrary (%s):(Unpure file)\n", libname );
- Mem_TempFree( libname );
- Mem_ZoneFree( gamelib );
- return NULL;
- }
-
temppath = Sys_Library_GetGameLibPath( libname, randomizer_time, randomizer );
tempname = ( char * )Mem_ZoneMalloc( strlen( temppath ) + 1 );
strcpy( tempname, temppath );
63 changes: 63 additions & 0 deletions bucket_98/warfork/specification
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
DEF[PORTVERSION]= 20200121
# ----------------------------------------------------------------------------

NAMEBASE= warfork
VERSION= ${PORTVERSION}
KEYWORDS= games
VARIANTS= standard
SDESC[standard]= Futuristic, fast-paced first person shooter
HOMEPAGE= https://warfork.com/
CONTACT= Leonid_Bobrov[[email protected]]

DOWNLOAD_GROUPS= main data
SITES[main]= GITHUB/TeamForbiddenLLC:warfork-qfusion:e1247b0
SITES[data]= https://warfork.com/downloads/
DISTFILE[1]= generated:main
DISTFILE[2]= warfork_4269802_Oct_08_2019_unified.tar:data
DF_INDEX= 1 2

SPKGS[standard]= complete client server modules data

OPTIONS_AVAILABLE= none
OPTIONS_STANDARD= none

LICENSE= GPLv2+:data
CC0_10:data
CC_SA_30:data
LICENSE_FILE= GPLv2+:{{WRKSRC}}/source/gnu.txt
CC0_10:stock
CC_SA_30:stock
LICENSE_TERMS= data:{{WRKDIR}}/TERMS
LICENSE_SCHEME= multi

USES= c++:modules cmake
CMAKE_SOURCE_PATH= {{WRKSRC}}/source
BUILD_DEPENDS= zlib:static:standard
BUILDRUN_DEPENDS= curl:primary:standard
freetype:primary:standard
libtheora:single:standard
libvorbis:primary:standard
openal:single:standard
sdl2:single:standard
zlib:shared:standard
EXRUN[client]= warfork:data:standard
warfork:modules:standard
EXRUN[server]= warfork:data:standard
warfork:modules:standard

post-extract:
${REINPLACE_CMD} 's|path", "\.|path", "${LOCALBASE}/share/warfork|' \
${WRKSRC}/source/qcommon/files.c
sed "/\*\//q" ${WRKSRC}/source/cgame/ref.h > ${WRKDIR}/TERMS
cat ${WRKDIR}/Warfork.app/Contents/Resources/basewf/warfork_assets.txt \
>> ${WRKDIR}/TERMS

do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/warfork
${CP} -R ${WRKDIR}/Warfork.app/Contents/Resources/basewf \
${STAGEDIR}${PREFIX}/share/warfork/
${CP} ${INSTALL_WRKSRC}/basewf/* \
${STAGEDIR}${PREFIX}/share/warfork/basewf/
${CP} -R ${INSTALL_WRKSRC}/libs \
${STAGEDIR}${PREFIX}/share/warfork/
${CP} -R ${INSTALL_PROGRAM}/w* ${STAGEDIR}${PREFIX}/bin