diff options
author | Jan Beich <jbeich@FreeBSD.org> | 2016-02-22 14:19:47 +0000 |
---|---|---|
committer | Jan Beich <jbeich@FreeBSD.org> | 2016-02-22 14:19:47 +0000 |
commit | c4ab551eab0d2bf555cbf6946e551100c288fdf3 (patch) | |
tree | 4802144cbf33a426ea693591846fcc6f02e39328 /games/aquaria | |
parent | c0ac2f65d8c9987a27bf17703fb83f103bf9e323 (diff) | |
download | ports-c4ab551eab0d2bf555cbf6946e551100c288fdf3.tar.gz ports-c4ab551eab0d2bf555cbf6946e551100c288fdf3.zip |
Notes
Diffstat (limited to 'games/aquaria')
-rw-r--r-- | games/aquaria/Makefile | 4 | ||||
-rw-r--r-- | games/aquaria/distinfo | 4 | ||||
-rw-r--r-- | games/aquaria/files/patch-BBGE_RenderObject.cpp | 17 | ||||
-rw-r--r-- | games/aquaria/files/patch-CMakeLists.txt | 21 | ||||
-rw-r--r-- | games/aquaria/files/patch-ExternalLibs_minihttp.cpp | 12 | ||||
-rw-r--r-- | games/aquaria/files/patch-system-ftgl | 113 |
6 files changed, 4 insertions, 167 deletions
diff --git a/games/aquaria/Makefile b/games/aquaria/Makefile index 8510c876339b..d55679b1c064 100644 --- a/games/aquaria/Makefile +++ b/games/aquaria/Makefile @@ -1,9 +1,9 @@ # $FreeBSD$ PORTNAME= aquaria -PORTVERSION= 1.002 DISTVERSIONPREFIX= OSE-v -PORTREVISION= 1 +DISTVERSION= 1.002-20 +DISTVERSIONSUFFIX= -g6971e78 CATEGORIES= games MAINTAINER= jbeich@FreeBSD.org diff --git a/games/aquaria/distinfo b/games/aquaria/distinfo index 9bd038181ca1..a253d846eeb7 100644 --- a/games/aquaria/distinfo +++ b/games/aquaria/distinfo @@ -1,2 +1,2 @@ -SHA256 (AquariaOSE-Aquaria-OSE-v1.002_GH0.tar.gz) = 15333eb0a90dd12cfbd234cbbd4d4eed01e4f8801a3dbebdef90702c7eb24455 -SIZE (AquariaOSE-Aquaria-OSE-v1.002_GH0.tar.gz) = 5737047 +SHA256 (AquariaOSE-Aquaria-OSE-v1.002-20-g6971e78_GH0.tar.gz) = d4fe341b9a2cc5c3233fac2a9725b7ebe3ee591bc24cf4cb4767e650ba9e6602 +SIZE (AquariaOSE-Aquaria-OSE-v1.002-20-g6971e78_GH0.tar.gz) = 5725985 diff --git a/games/aquaria/files/patch-BBGE_RenderObject.cpp b/games/aquaria/files/patch-BBGE_RenderObject.cpp deleted file mode 100644 index 0674198b24dd..000000000000 --- a/games/aquaria/files/patch-BBGE_RenderObject.cpp +++ /dev/null @@ -1,17 +0,0 @@ -https://github.com/AquariaOSE/Aquaria/pull/19 - ---- BBGE/RenderObject.cpp.orig 2015-08-16 13:19:19 UTC -+++ BBGE/RenderObject.cpp -@@ -316,10 +316,9 @@ static glm::mat4 matrixChain(const Rende - ); - - if (ro->isfh()) -- tranformMatrix *= glm::rotate(180.0f, 0.0f, 1.0f, 0.0f); -- -- tranformMatrix *= glm::translate(ro->internalOffset.x, ro->internalOffset.y, 0.0f); -+ tranformMatrix *= glm::rotate(180.0f, glm::vec3(0.0f, 1.0f, 0.0f)); - -+ tranformMatrix *= glm::translate(glm::vec3(ro->internalOffset.x, ro->internalOffset.y, 0.0f)); - return tranformMatrix; - } - #else diff --git a/games/aquaria/files/patch-CMakeLists.txt b/games/aquaria/files/patch-CMakeLists.txt index cee8accbd72f..a1df4a59b564 100644 --- a/games/aquaria/files/patch-CMakeLists.txt +++ b/games/aquaria/files/patch-CMakeLists.txt @@ -1,26 +1,5 @@ -partially https://github.com/AquariaOSE/Aquaria/pull/22 - --- CMakeLists.txt.orig 2015-08-16 13:19:19 UTC +++ CMakeLists.txt -@@ -227,6 +227,7 @@ endif (NOT OPENAL_FOUND) - - OPTION(AQUARIA_INTERNAL_TINYXML2 "Always use included TinyXML2 library" ${WIN32_TRUE}) - if(NOT AQUARIA_INTERNAL_TINYXML2) -+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/") - find_package(TinyXML2) - endif(NOT AQUARIA_INTERNAL_TINYXML2) - if (AQUARIA_INTERNAL_TINYXML2 OR NOT TINYXML2_FOUND) -@@ -316,6 +317,10 @@ ELSE(AQUARIA_DEMO_BUILD) - ADD_DEFINITIONS(-DAQUARIA_BUILD_SCENEEDITOR=1) - ENDIF(AQUARIA_DEMO_BUILD) - -+IF(CMAKE_BUILD_TYPE STREQUAL "Release") -+ ADD_DEFINITIONS(-DNDEBUG) -+ message(STATUS "This is a release build.") -+ENDIF(CMAKE_BUILD_TYPE STREQUAL "Release") - IF(CMAKE_BUILD_TYPE STREQUAL "Debug") - ADD_DEFINITIONS(-D_DEBUG) # MSVC defines this in debug mode by default, gcc/mingw do not - message(STATUS "This is a debug build.") @@ -341,7 +346,7 @@ IF(UNIX AND NOT HAIKU) ADD_DEFINITIONS(-DLUA_USE_ULONGJMP=1) ENDIF() diff --git a/games/aquaria/files/patch-ExternalLibs_minihttp.cpp b/games/aquaria/files/patch-ExternalLibs_minihttp.cpp deleted file mode 100644 index 54c500f60414..000000000000 --- a/games/aquaria/files/patch-ExternalLibs_minihttp.cpp +++ /dev/null @@ -1,12 +0,0 @@ -https://github.com/AquariaOSE/Aquaria/pull/21 - ---- ExternalLibs/minihttp.cpp.orig 2015-08-16 13:19:19 UTC -+++ ExternalLibs/minihttp.cpp -@@ -32,6 +32,7 @@ - # include <sys/types.h> - # include <unistd.h> - # include <fcntl.h> -+# include <netinet/in.h> - # include <sys/socket.h> - # include <netdb.h> - # define SOCKET_ERROR (-1) diff --git a/games/aquaria/files/patch-system-ftgl b/games/aquaria/files/patch-system-ftgl deleted file mode 100644 index 5b8cb2472e61..000000000000 --- a/games/aquaria/files/patch-system-ftgl +++ /dev/null @@ -1,113 +0,0 @@ -https://github.com/AquariaOSE/Aquaria/pull/20 - -diff --git BBGE/TTFFont.h BBGE/TTFFont.h -index 364cfb5..b23438a 100644 ---- BBGE/TTFFont.h -+++ BBGE/TTFFont.h -@@ -24,11 +24,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - #include "Base.h" - #include "BaseText.h" - -+#ifdef AQUARIA_INTERNAL_FTGL - #include <ft2build.h> - #include FT_FREETYPE_H - - #include "FTGL.h" - #include "FTGLTextureFont.h" -+#else -+#include <FTGL/ftgl.h> -+#endif - - struct TTFFont - { -diff --git CMakeLists.txt CMakeLists.txt -index 07dca08..059cb94 100644 ---- CMakeLists.txt -+++ CMakeLists.txt -@@ -235,6 +235,20 @@ if (AQUARIA_INTERNAL_TINYXML2 OR NOT TINYXML2_FOUND) - set(TINYXML2_SRCS "${EXTLIBDIR}/tinyxml2.cpp") - endif (AQUARIA_INTERNAL_TINYXML2 OR NOT TINYXML2_FOUND) - -+### FTGL -+ -+OPTION(AQUARIA_INTERNAL_FTGL "Always use included FTGL library" TRUE) -+if(NOT AQUARIA_INTERNAL_FTGL) -+ find_package(FTGL) -+endif(NOT AQUARIA_INTERNAL_FTGL) -+if(FTGL_FOUND) -+ set(FREETYPE_INCLUDE_DIRS) -+else(FTGL_FOUND) -+ message(STATUS "Using internal copy of FTGL") -+ set(FTGL_INCLUDE_DIRS "${FTGLDIR}/include") -+ ADD_DEFINITIONS(-DAQUARIA_INTERNAL_FTGL=1) -+endif(FTGL_FOUND) -+ - ################ End of external libraries - - INCLUDE_DIRECTORIES(${BBGEDIR}) -@@ -242,7 +256,7 @@ INCLUDE_DIRECTORIES(${BBGEDIR}/GL) - INCLUDE_DIRECTORIES(${ZLIB_INCLUDE_DIRS}) - INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR}) - INCLUDE_DIRECTORIES(${SRCDIR}) --INCLUDE_DIRECTORIES(${FTGLDIR}/include) -+INCLUDE_DIRECTORIES(${FTGL_INCLUDE_DIRS}) - INCLUDE_DIRECTORIES(${FREETYPE_INCLUDE_DIRS}) - INCLUDE_DIRECTORIES(${LUA_INCLUDE_DIR}) - INCLUDE_DIRECTORIES(${OGGVORBIS_INCLUDE_DIRS}) -@@ -740,11 +754,13 @@ ELSE(PNG_FOUND) - SET(OPTIONAL_SRCS ${OPTIONAL_SRCS} ${PNG_SRCS}) - ENDIF(PNG_FOUND) - -+IF(NOT FTGL_FOUND) - IF(FREETYPE_FOUND) - SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} ${FREETYPE_LIBRARIES}) - ELSE(FREETYPE_FOUND) - SET(OPTIONAL_SRCS ${OPTIONAL_SRCS} ${FREETYPE2_SRCS}) - ENDIF(FREETYPE_FOUND) -+ENDIF(NOT FTGL_FOUND) - - IF(LUA51_FOUND) - SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} ${LUA_LIBRARIES}) -@@ -764,10 +780,15 @@ ELSE(TINYXML2_FOUND) - SET(OPTIONAL_SRCS ${OPTIONAL_SRCS} ${TINYXML2_SRCS}) - ENDIF(TINYXML2_FOUND) - -+IF(FTGL_FOUND) -+ SET(OPTIONAL_LIBS ${OPTIONAL_LIBS} ${FTGL_LIBRARIES}) -+ELSE(FTGL_FOUND) -+ SET(OPTIONAL_SRCS ${OPTIONAL_SRCS} ${FTGL_SRCS}) -+ENDIF(FTGL_FOUND) -+ - ADD_EXECUTABLE(aquaria ${EXETYPE} - ${AQUARIA_SRCS} - ${BBGE_SRCS} -- ${FTGL_SRCS} - ${OPTIONAL_SRCS} - ) - TARGET_LINK_LIBRARIES(aquaria ${OPTIONAL_LIBS}) -diff --git cmake/Modules/FindFTGL.cmake cmake/Modules/FindFTGL.cmake -new file mode 100644 -index 0000000..9c9d61d ---- /dev/null -+++ cmake/Modules/FindFTGL.cmake -@@ -0,0 +1,20 @@ -+# - Try to find FTGL -+# Once done this will define -+# FTGL_FOUND - System has FTGL -+# FTGL_INCLUDE_DIRS - The FTGL include directories -+# FTGL_LIBRARIES - The libraries needed to use FTGL -+# FTGL_DEFINITIONS - Compiler switches required for using FTGL -+ -+find_package(PkgConfig) -+pkg_check_modules(PC_FTGL QUIET ftgl) -+set(FTGL_INCLUDE_DIRS ${PC_FTGL_INCLUDE_DIRS}) -+set(FTGL_DEFINITIONS ${PC_FTGL_CFLAGS_OTHER}) -+ -+find_library(FTGL_LIBRARY ftgl -+ HINTS ${PC_FTGL_LIBDIR} ${PC_FTGL_LIBRARY_DIRS}) -+set(FTGL_LIBRARIES ${FTGL_LIBRARY}) -+ -+include(FindPackageHandleStandardArgs) -+find_package_handle_standard_args(FTGL DEFAULT_MSG FTGL_LIBRARIES FTGL_INCLUDE_DIRS) -+ -+mark_as_advanced(FTGL_LIBRARIES FTGL_INCLUDE_DIRS) |