mirror of
https://github.com/openbsd/ports.git
synced 2026-06-18 07:24:23 +02:00
e8035d4760
Major update from 3.31.8 to 4.1.2. CMake 4.0 introduces a breaking change: compatibility with versions older than 3.5 has been removed. Projects calling cmake_minimum_required() or cmake_policy() with versions < 3.5 now error out. To maintain compatibility with existing ports during the transition, the cmake module now provides MODCMAKE_POLICY_VERSION_OVERRIDE (idea from sthen@) support: - MODCMAKE_POLICY_VERSION_OVERRIDE ?= No - MODCMAKE_POLICY_VERSION_OVERRIDE_VER ?= 3.5 When MODCMAKE_POLICY_VERSION_OVERRIDE is set to "yes", CMake is instructed to accept policy versions down to the specified minimum (default 3.5) via -DCMAKE_POLICY_VERSION_MINIMUM. This allows older ports to build while acknowledging they may use deprecated features. https://cmake.org/cmake/help/latest/release/4.0.html https://cmake.org/cmake/help/latest/release/4.1.html OK sthen@
82 lines
2.4 KiB
Makefile
82 lines
2.4 KiB
Makefile
# No consumers on macppc, saves 17 build hours in bulks
|
|
NOT_FOR_ARCHS = powerpc
|
|
|
|
PORTROACH = limitw:1,even
|
|
|
|
COMMENT = 3D graphics toolkit
|
|
|
|
V = 3.6.5
|
|
GH_ACCOUNT = openscenegraph
|
|
GH_PROJECT = OpenSceneGraph
|
|
GH_TAGNAME = OpenSceneGraph-$V
|
|
DISTNAME = openscenegraph-${V}
|
|
REVISION = 11
|
|
|
|
SUBST_VARS += V
|
|
|
|
SHARED_LIBS = OpenThreads 2.0 # 2.6
|
|
SHARED_LIBS += osg 2.0 # 3.0
|
|
SHARED_LIBS += osgAnimation 2.0 # 3.0
|
|
SHARED_LIBS += osgDB 2.0 # 3.0
|
|
SHARED_LIBS += osgFX 2.0 # 3.0
|
|
SHARED_LIBS += osgGA 2.0 # 3.0
|
|
SHARED_LIBS += osgManipulator 2.0 # 3.0
|
|
SHARED_LIBS += osgParticle 2.0 # 3.0
|
|
SHARED_LIBS += osgPresentation 2.0 # 3.0
|
|
SHARED_LIBS += osgShadow 2.0 # 3.0
|
|
SHARED_LIBS += osgSim 2.0 # 3.0
|
|
SHARED_LIBS += osgTerrain 2.0 # 3.0
|
|
SHARED_LIBS += osgText 2.0 # 3.0
|
|
SHARED_LIBS += osgUtil 2.0 # 3.0
|
|
SHARED_LIBS += osgUI 1.0 # 3.4
|
|
SHARED_LIBS += osgViewer 2.0 # 3.0
|
|
SHARED_LIBS += osgVolume 2.0 # 3.0
|
|
SHARED_LIBS += osgWidget 2.0 # 3.0
|
|
|
|
CATEGORIES = graphics
|
|
|
|
HOMEPAGE = http://www.openscenegraph.org
|
|
|
|
MAINTAINER = Pascal Stumpf <pascal@stumpf.co>
|
|
|
|
# OSGPL (see LICENSE.txt)
|
|
PERMIT_PACKAGE = Yes
|
|
|
|
COMPILER = base-clang ports-gcc
|
|
|
|
CXXFLAGS_base-clang = -std=c++14
|
|
|
|
WANTLIB += ${COMPILER_LIBCXX} GL Iex-3_4 IlmThread-3_4 Imath-3_2
|
|
WANTLIB += OpenEXR-3_4 OpenEXRCore-3_4 SDL X11 Xinerama Xrandr
|
|
WANTLIB += avcodec avdevice avformat avutil boost_filesystem c
|
|
WANTLIB += cairo collada-dom2.4-dp curl fontconfig freetype gdal
|
|
WANTLIB += gdk_pixbuf-2.0 gif gio-2.0 glib-2.0 gobject-2.0 intl
|
|
WANTLIB += jasper jpeg m png poppler-glib rsvg-2 swresample swscale
|
|
WANTLIB += tiff z
|
|
|
|
MODULES = devel/cmake
|
|
LIB_DEPENDS = devel/sdl \
|
|
graphics/collada-dom \
|
|
graphics/openexr \
|
|
graphics/ffmpeg \
|
|
graphics/jasper \
|
|
graphics/gdk-pixbuf2 \
|
|
graphics/giflib \
|
|
geo/gdal \
|
|
net/curl \
|
|
print/poppler \
|
|
x11/gnome/librsvg
|
|
|
|
NO_TEST = Yes
|
|
|
|
CONFIGURE_ARGS += -DCMAKE_DISABLE_FIND_PACKAGE_OpenCascade:Bool=Yes \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_DCMTK:Bool=Yes \
|
|
-DCMAKE_DISABLE_FIND_PACKAGE_Inventor:Bool=Yes
|
|
|
|
MODCMAKE_POLICY_VERSION_OVERRIDE = Yes
|
|
|
|
# Fix build with OpenEXR>=3 (Imath split)
|
|
CXXFLAGS += -I${LOCALBASE}/include/Imath
|
|
|
|
.include <bsd.port.mk>
|