-
-
Notifications
You must be signed in to change notification settings - Fork 541
Building on FreeBSD #1941
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
Building on FreeBSD #1941
Conversation
TIC-80 builds out-of-the-box for me on 13.1-RELEASE without SDLGPU. I have a port for it: PORTNAME= tic-80
PORTVERSION= 1.0.2164
DISTVERSIONPREFIX= v
CATEGORIES= games
LICENSE= MIT
COMMENT?= A fantasy computer for making, playing and sharing tiny games
USES= cmake
CMAKE_ARGS= -DBUILD_LIBRETRO:BOOL=false \
-DBUILD_SDL:BOOL=true \
-DEXTRA_LDFLAGS=-L/usr/local/lib \
-DCMAKE_C_FLAGS=-I/usr/local/include
PLIST_FILES= bin/tic80 share/applications/tic80.desktop share/applications/tic80.xml share/icons/tic80.png
USE_GITHUB= yes
GH_TUPLE= cofyc:argparse:0d5f5d0:argparse/vendor/argparse \
nesbox:blip-buf:330226d:blip_buf/vendor/blip-buf \
smuehlst:circle-stdlib:fdb3c4a:circle_stdlib/vendor/circle-stdlib \
tronkko:dirent:c885633:dirent/vendor/dirent \
svaarala:duktape-releases:28f915a:duktape/vendor/duktape \
nesbox:giflib:1aa11b0:giflib/vendor/giflib \
nodejs:http-parser:ec8b5ee:http_parser/vendor/http-parser \
glennrp:libpng:dbe3e0c:libpng/vendor/libpng \
libuv:libuv:9c3d692:libuv/vendor/libuv \
nesbox:lpeg:73d8614:lpeg/vendor/lpeg \
lua:lua:75ea9cc:lua/vendor/lua \
nesbox:moonscript:1717928:moonscript/vendor/moonscript \
mruby:mruby:0f45836:mruby/vendor/mruby \
grimfang4:sdl-gpu:e3d350b:sdl_gpu/vendor/sdl-gpu \
libsdl-org:SDL:b424665:sdl2/vendor/sdl2 \
floooh:sokol:487822d:sokol/vendor/sokol \
albertodemichelis:squirrel:9dcf74f:squirrel/vendor/squirrel \
wasm3:wasm3:a3abb3f:wasm3/vendor/wasm3 \
wren-lang:wren:4a18fc4:wren/vendor/wren \
kuba--:zip:d7df626:zip/vendor/zip \
madler:zlib:cacf7f1:zlib/vendor/zlib
GH_ACCOUNT= nesbox
GH_PROJECT= TIC-80
OPTIONS_DEFINE= PRO SDLGPU
OPTIONS_DEFAULT?= PRO
PRO_DESC= Build the Pro version
PRO_CMAKE_BOOL= BUILD_PRO
SDLGPU_DESC= Build SDLGPU and the CRT shader
SDLGPU_CMAKE_BOOL= BUILD_SDLGPU
.include <bsd.port.options.mk>
.include <bsd.port.mk>
# Any copyright is dedicated to the Public Domain.
# https://creativecommons.org/publicdomain/zero/1.0/
# vim: set ts=12 sts=12 sw=12 :
As for the DRI, I have no such problems with nVidia drivers, so unless it's something with SDLGPU, something might be wrong with your system. |
Well, you add the FreeBSD libs with the port definition, I add them in the CMakeLists.txt. Either approach makes the build work. Without symlinking the I built Tic-80 with:
|
Building with: Fails with:
So probably |
Somebody else on FreeBSD also wondered why |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no way to test this but these changes look reasonable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion, it makes no sense to forcefully inject include and link paths, we're not doing this for /usr
. That's just not TIC's business. As for the DRI perplexities, I also don't really think that belongs here either.
I'd love to be able to export carts for FreeBSD though, that'd be really welcome. :)
These instructions and changes allow to build the project on FreeBSD 13.0-RELEASE-p11.
I tested a few games, and everything seemed to work, including audio.
I could not find where the path to
swrast_dri.so
is defined, so I just added a note to theREADME.md
about it.