Skip to content

Commit

Permalink
graphics/ogre3d: enable FREEIMAGE by default, minor fixes
Browse files Browse the repository at this point in the history
- Enable FREEIMAGE option by default, freeimage-enabled ogre is required for games/stuntrally update.
- Don't duplicate cmake options which are already handled in *_CMAKE_BOOLs in CMAKE_ARGS, and convert the latter to CMAKE_{ON|OFF}.
- Mark JAVA as BROKEN - does not built with multiple errors.
- Remove DOCS from OPTIONS_DEFAULT, it's always there implicitly.
- Remove plist %%PORTDOCS%% entries in favor of PORTDOCS=*. Docs are generated by doxygen and the list of generated files changes with doxygen update, which is not compatible with static plist (which is also unreasonably huge).
- Silence couple of REINPLACE_CMDs

PR:		273294
Approved by:	maintainer timeout (oliver, 2 weeks)
  • Loading branch information
AMDmi3 committed Sep 8, 2023
1 parent 86d2fda commit 3c07ee1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13,436 deletions.
24 changes: 9 additions & 15 deletions graphics/ogre3d/Makefile
@@ -1,7 +1,7 @@
PORTNAME= ogre3d
DISTVERSIONPREFIX= v
DISTVERSION= 1.11.6
PORTREVISION= 12
PORTREVISION= 13
CATEGORIES= graphics devel

MAINTAINER= oliver@FreeBSD.org
Expand All @@ -27,21 +27,14 @@ USE_GITHUB= yes
GH_ACCOUNT= OGRECave
GH_PROJECT= ogre

CMAKE_ARGS+= -DOGRE_BUILD_RENDERSYSTEM_GL3PLUS:BOOL=OFF \
-DOGRE_BUILD_RENDERSYSTEM_GL:BOOL=OFF \
-DOGRE_BUILD_RENDERSYSTEM_GLES2:BOOL=OFF \
-DOGRE_BUILD_COMPONENT_PYTHON:BOOL=OFF \
-DOGRE_BUILD_COMPONENT_JAVA:BOOL=OFF \
-DOGRE_BUILD_COMPONENT_CSHARP:BOOL=OFF \
-DOGRE_BUILD_PLUGIN_FREEIMAGE:BOOL=OFF \
-DOGRE_BUILD_PLUGIN_EXRCODEC:BOOL=OFF \
-DOGRE_CONFIG_ENABLE_ZIP:BOOL=ON \
-DOGRE_INSTALL_DOCS:BOOL=OFF \
-DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=OFF
PORTDOCS= *

CMAKE_ON= OGRE_CONFIG_ENABLE_ZIP
CMAKE_OFF= OGRE_INSTALL_SAMPLES_SOURCE

OPTIONS_DEFINE= CSHARP DOCS FREEIMAGE JAVA OPENEXR OPENGL PROFILE \
PYTHON
OPTIONS_DEFAULT= DOCS OPENGL
OPTIONS_DEFAULT= FREEIMAGE OPENGL
OPTIONS_SUB= yes

DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
Expand Down Expand Up @@ -72,6 +65,7 @@ JAVA_CMAKE_BOOL= OGRE_BUILD_COMPONENT_JAVA
JAVA_BUILD_DEPENDS= swig:devel/swig
JAVA_VARS= CMAKE_ARGS+=-DJAVA_HOME=${JAVA_HOME}
JAVA_USE= JAVA=yes
JAVA_BROKEN= error: incompatible types: SWIGTYPE_p_std__mapT_std__string_std__string_std__lessT_std__string_t_t__iterator cannot be converted to Iterator

PYTHON_CMAKE_BOOL= OGRE_BUILD_COMPONENT_PYTHON
PYTHON_BUILD_DEPENDS= swig:devel/swig
Expand All @@ -85,9 +79,9 @@ post-patch:
${WRKSRC}/OgreMain/include/OgrePlatform.h

post-patch-PYTHON-on:
${REINPLACE_CMD} -e 's/\(Python_ADDITIONAL_VERSIONS\) [0-9\.]*/\$1 ${PYTHON_VER}/' \
@${REINPLACE_CMD} -e 's/\(Python_ADDITIONAL_VERSIONS\) [0-9\.]*/\$1 ${PYTHON_VER}/' \
${WRKSRC}/CMake/Dependencies.cmake
${REINPLACE_CMD} -e "s/dist-packages/site-packages/" \
@${REINPLACE_CMD} -e "s/dist-packages/site-packages/" \
${WRKSRC}/Components/Python/CMakeLists.txt

post-build-DOCS-on:
Expand Down

0 comments on commit 3c07ee1

Please sign in to comment.