Stefan Hagen <[email protected]> writes:

> Omar Polo wrote:
>> Solene Rapenne <[email protected]> writes:
>> 
>> > I made a quick port for graphics/recastnavigation, a new dependency
>> > required for games/openmw. Note that games/openmw will also require a
>> > devel/bullet update
>> >
>> > Recast is state of the art navigation mesh construction toolset for
>> > games. It is automatic, which means that you can throw any level
>> > geometry at it and you will get robust mesh out
>> >
>> > Recast is accompanied with Detour, path-finding and spatial reasoning
>> > toolkit. You can use any navigation mesh with Detour, but of course
>> > the data generated with Recast fits perfectly.
>> >
>> > [2. application/x-compressed-tar; recastnavigation.tgz]...
>> 
>> Here's an improved tarball with:
>> 
>>  - HOMEPAGE dropped as it's the default
>>  - SHARED_LIBS rewinded to 0.0
>>  - typo on DebugUtil(s) :P
>>  - disable the demos, they end up installing bin/DroidSans.ttf...
>>  - dropped the RUN_DEPENDS, probably a copy-paste leftover (the port
>>    don't install desktop files or stuff like that)
>>  - (nit) added a patch for to cleanly compile the tests
>> 
>> libDebugUtils is quite a generic name, but it's needed for openwm and
>> doesn't conflict with anything else.
>> 
>> Tests are all passing :D
>> 
>> This is not enough to fix games/openmw, it also needs at least the
>> following diff to build (+cc Pascal)
>
> Attached again with:
>
>  - Dropped LIB_DEPENDS (not needed)
>  - Added WANTLIB = ${COMPILER_LIBCXX} m
>  - Added COMPILER line for CXX
>  - Deleted "build" file
>  - Nit: Comment should start lowercase

Thanks!

agree on all, and sorry for the trivial omissions, don't know how I
missed them.  Anyway, it seems that Pascal solved the problem by
bundling recastnavigation in openmw:

https://marc.info/?l=openbsd-ports-cvs&m=164104041808206&w=2

> I didn't look at openmw yet.
>
>> Index: Makefile
>> ===================================================================
>> RCS file: /home/cvs/ports/games/openmw/Makefile,v
>> retrieving revision 1.26
>> diff -u -p -r1.26 Makefile
>> --- Makefile 31 Dec 2021 09:29:56 -0000      1.26
>> +++ Makefile 1 Jan 2022 12:16:14 -0000
>> @@ -19,11 +19,13 @@ MAINTAINER =             Pascal Stumpf <pascal@stum
>>  # GPLv3 / custom BSD-like font license / DejaVu license
>>  PERMIT_PACKAGE =    Yes
>>  
>> -WANTLIB += ${COMPILER_LIBCXX} BulletCollision GL LinearMath MyGUIEngine
>> -WANTLIB += OpenThreads Qt5Core Qt5Gui Qt5Network Qt5OpenGL Qt5Widgets
>> -WANTLIB += SDL2 avcodec avformat avutil c lz4 m openal osg osgAnimation
>> -WANTLIB += osgDB osgFX osgGA osgParticle osgShadow osgText osgUtil
>> -WANTLIB += osgViewer swresample swscale unshield
>> +WANTLIB += ${COMPILER_LIBCXX} BulletCollision DebugUtils Detour
>> +WANTLIB += GL LinearMath MyGUIEngine OpenThreads Qt5Core Qt5Gui
>> +WANTLIB += Qt5Network Qt5OpenGL Qt5Widgets Recast SDL2 avcodec
>> +WANTLIB += avformat avutil boost_filesystem-mt boost_iostreams-mt
>> +WANTLIB += boost_program_options-mt boost_system-mt c lz4 m openal
>> +WANTLIB += osg osgAnimation osgDB osgFX osgGA osgParticle osgShadow
>> +WANTLIB += osgText osgUtil osgViewer swresample swscale unshield
>>  
>>  MODULES =           devel/cmake x11/qt5
>>  
>> @@ -34,6 +36,7 @@ LIB_DEPENDS =              audio/openal \
>>                      devel/sdl2 \
>>                      graphics/ffmpeg \
>>                      graphics/openscenegraph \
>> +                    graphics/recastnavigation \
>>                      archivers/unshield
>>  RUN_DEPENDS  =              devel/desktop-file-utils
>>  
>> @@ -44,6 +47,7 @@ CONFIGURE_ARGS +=  -DBINDIR=${LOCALBASE}
>>                      -DCMAKE_EXE_LINKER_FLAGS="-L${X11BASE}/lib" \
>>                      -DMORROWIND_DATA_FILES="${LOCALBASE}/share/openmw/data"\
>>                      
>> -DOPENMW_RESOURCE_FILES="${LOCALBASE}/share/openmw/resources" \
>> +                    -DOPENMW_USE_SYSTEM_RECASTNAVIGATION=ON \
>>                      -DCMAKE_PREFIX_PATH="${LOCALBASE}/lib/qt5/cmake" \
>>                      -DCMAKE_DISABLE_FIND_PACKAGE_Doxygen=ON
>>  
>
> [2. application/x-tar-gz; recastnavigation.tgz]...

Reply via email to