1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00

graphics/rigsofrods-caelum: add new port

PR:		206485
Submitted by:	Thibault Payet <monwarez@mailoo.org>

Caelum is a plug-in/library for Ogre targeted to help create
nice-looking (photorealistic if possible) atmospheric effects such as
sky colour, clouds and weather phenomena such as rain or snow.

http://www.ogre3d.org/tikiwiki/Caelum
This commit is contained in:
Jan Beich 2016-03-20 12:10:41 +00:00
parent 238f45d073
commit ddf765fee0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=411439
7 changed files with 122 additions and 0 deletions

View File

@ -918,6 +918,7 @@
SUBDIR += renrot
SUBDIR += repng2jpeg
SUBDIR += rgbpaint
SUBDIR += rigsofrods-caelum
SUBDIR += ristretto
SUBDIR += ruby-gd
SUBDIR += ruby-gdal

View File

@ -0,0 +1,30 @@
# Created by: Thibault Payet <monwarez@mailoo.org>
# $FreeBSD$
PORTNAME= rigsofrods-caelum
PORTVERSION= 0.6.3
DISTVERSIONPREFIX= v
CATEGORIES= graphics
MAINTAINER= monwarez@mailoo.org
COMMENT= OGRE plugin for atmospheric effects
LICENSE= LGPL3+
LICENSE_FILE= ${WRKSRC}/lgpl.txt
LIB_DEPENDS= libOgreMain.so:graphics/ogre3d
USE_GITHUB= yes
GH_ACCOUNT= RigsOfRods
GH_PROJECT= ogre-caelum
USES= cmake dos2unix pathfix pkgconfig
CMAKE_ARGS= -DCaelum_BUILD_SAMPLES=FALSE
DOS2UNIX_GLOB= CMake* *.pc.in
USE_LDCONFIG= yes
post-patch:
@${REINPLACE_CMD} -e '/install.*DOC_FILES/d' \
${WRKSRC}/CMakeLists.txt
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (RigsOfRods-ogre-caelum-v0.6.3_GH0.tar.gz) = 95b0d52d15deaf8baa0ee3a66acc1ae8c2dfa71be149dbcd2e58bbab76af33b5
SIZE (RigsOfRods-ogre-caelum-v0.6.3_GH0.tar.gz) = 6499915

View File

@ -0,0 +1,40 @@
--- CMakeDependenciesConfig.txt.orig 2016-01-11 16:27:14 UTC
+++ CMakeDependenciesConfig.txt
@@ -2,11 +2,13 @@ IF(WIN32)
set(Ogre_INCLUDE_DIRS "include/Ogre" CACHE PATH "The ogre include path to use")
set(Ogre_LIBRARY_DIRS "lib" CACHE PATH "The ogre lib path to use")
set(Ogre_LIBRARIES "OgreMain" CACHE STRING "The ogre lib to link against")
+ if(Caelum_BUILD_SAMPLES)
set(Ois_INCLUDE_DIRS "include/ois" CACHE PATH "The OIS include path to use")
set(Ois_LIBRARY_DIRS "lib" CACHE PATH "The OIS lib path to use")
set(Ois_LIBRARIES "ois" CACHE STRING "The ogre lib to link against")
# add includes to check directories
set(CMAKE_REQUIRED_INCLUDES ${Ogre_INCLUDE_DIRS} ${Ois_INCLUDE_DIRS})
+ endif(Caelum_BUILD_SAMPLES)
# check for libs and include files we want to use
CHECK_INCLUDE_FILE(windows.h HAVE_WINDOWS_INCLUDES)
@@ -20,7 +22,9 @@ IF(WIN32)
ELSEIF(UNIX)
find_package(PkgConfig)
PKG_CHECK_MODULES (Ogre OGRE REQUIRED)
+ if(Caelum_BUILD_SAMPLES)
PKG_CHECK_MODULES (Ois OIS REQUIRED)
+ endif(Caelum_BUILD_SAMPLES)
# add includes to check directories
set(CMAKE_REQUIRED_INCLUDES ${Ogre_INCLUDE_DIRS} ${Ois_INCLUDE_DIRS})
# check for libs and include files we want to use
@@ -44,6 +48,7 @@ IF(NOT WIN32)
message("could not find the Ogre includes. Please install them.")
endif()
+ if(Caelum_BUILD_SAMPLES)
CHECK_INCLUDE_FILE_CXX(OIS/OIS.h HAVE_OIS_DIR_INCLUDES)
if(HAVE_OIS_DIR_INCLUDES)
set(OIS_INCLUDE "OIS/OIS.h")
@@ -63,4 +68,5 @@ IF(NOT WIN32)
else()
set(OIS_USING_DIR FALSE)
endif()
+ endif(Caelum_BUILD_SAMPLES)
endif()

View File

@ -0,0 +1,16 @@
Boost is OGRE dependency, Caelum itself doesn't link against it
--- main/CMakeLists.txt.orig 2016-01-11 16:27:14 UTC
+++ main/CMakeLists.txt
@@ -7,11 +7,6 @@ FILE(GLOB sources ${Caelum_SOURCE_DIR}/m
set(LIBNAME "Caelum")
-
-find_package(Boost 1.44 COMPONENTS date_time filesystem)
-include_directories(${Boost_INCLUDE_DIRS})
-link_directories (${Boost_LIBRARY_DIRS})
-
add_definitions("-DCAELUM_LIB -DCAELUM_SCRIPT_SUPPORT -D_CAELUM_TYPE_DESCRIPTORS")
ADD_LIBRARY(${LIBNAME} SHARED ${sources})

View File

@ -0,0 +1,5 @@
Caelum is a plug-in/library for Ogre targeted to help create
nice-looking (photorealistic if possible) atmospheric effects such as
sky colour, clouds and weather phenomena such as rain or snow.
WWW: http://www.ogre3d.org/tikiwiki/Caelum

View File

@ -0,0 +1,28 @@
include/Caelum/Astronomy.h
include/Caelum/Caelum.h
include/Caelum/CaelumConfig.h
include/Caelum/CaelumExceptions.h
include/Caelum/CaelumPlugin.h
include/Caelum/CaelumPrecompiled.h
include/Caelum/CaelumPrerequisites.h
include/Caelum/CaelumScriptTranslator.h
include/Caelum/CaelumSystem.h
include/Caelum/CameraBoundElement.h
include/Caelum/CloudSystem.h
include/Caelum/DepthComposer.h
include/Caelum/FastGpuParamRef.h
include/Caelum/FlatCloudLayer.h
include/Caelum/GroundFog.h
include/Caelum/ImageStarfield.h
include/Caelum/InternalUtilities.h
include/Caelum/Moon.h
include/Caelum/PointStarfield.h
include/Caelum/PrecipitationController.h
include/Caelum/PrivatePtr.h
include/Caelum/SkyDome.h
include/Caelum/SkyLight.h
include/Caelum/Sun.h
include/Caelum/TypeDescriptor.h
include/Caelum/UniversalClock.h
lib/libCaelum.so
libdata/pkgconfig/Caelum.pc