Index: devel/Makefile =================================================================== --- devel/Makefile +++ devel/Makefile @@ -5199,6 +5199,7 @@ SUBDIR += ragel SUBDIR += raknet SUBDIR += rapidjson + SUBDIR += raylib SUBDIR += rbenv SUBDIR += rbtools SUBDIR += rclint Index: devel/raylib/Makefile =================================================================== --- /dev/null +++ devel/raylib/Makefile @@ -0,0 +1,32 @@ +# $FreeBSD$ + +PORTNAME= raylib +DISTVERSION= 1.9.2 +DISTVERSIONSUFFIX= -dev +CATEGORIES= devel + +MAINTAINER= martinfilla@post.cz +COMMENT= Simple and easy-to-use library to learn videogames programming + +LICENSE= ZLIB +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +LIB_DEPENDS= libglfw.so:graphics/glfw + +USES= cmake:outsource localbase:ldflags openal +USE_GITHUB= yes +GH_ACCOUNT= Martinfx +USE_LDCONFIG= yes +USE_XORG= x11 xext sm ice xrandr xi xinerama xxf86vm xcursor + +CMAKE_ON= SHARED_RAYLIB +CMAKE_OFF= STATIC_RAYLIB BUILD_EXAMPLES BUILD_GAMES + +PLIST_FILES= include/raylib.h \ + lib/libraylib.so \ + libdata/pkgconfig/raylib.pc + +post-extract: # remove bundled files + @${RM} -r ${WRKSRC}/src/external/glfw ${WRKSRC}/src/external/include ${WRKSRC}/src/rglfw.c + +.include Index: devel/raylib/distinfo =================================================================== --- /dev/null +++ devel/raylib/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1517559154 +SHA256 (Martinfx-raylib-1.9.2-dev_GH0.tar.gz) = c1e627bb6cb5c98d16d1f9bfa365c08cf4b05799d0f1c3c7c063b3279c55e020 +SIZE (Martinfx-raylib-1.9.2-dev_GH0.tar.gz) = 89187804 Index: devel/raylib/files/patch-src_CMakeLists.txt =================================================================== --- /dev/null +++ devel/raylib/files/patch-src_CMakeLists.txt @@ -0,0 +1,10 @@ +--- src/CMakeLists.txt.orig 2017-11-29 15:54:25 UTC ++++ src/CMakeLists.txt +@@ -111,6 +111,7 @@ if(${PLATFORM} MATCHES "PLATFORM_DESKTOP + + if(${SHARED_RAYLIB}) + add_library(${RAYLIB}_shared SHARED ${sources}) ++ target_link_libraries(${RAYLIB}_shared glfw openal) + + target_compile_definitions(${RAYLIB}_shared + PUBLIC ${PLATFORM} Index: devel/raylib/files/patch-utils.cmake =================================================================== --- /dev/null +++ devel/raylib/files/patch-utils.cmake @@ -0,0 +1,11 @@ +--- utils.cmake.orig 2017-11-29 15:54:25 UTC ++++ utils.cmake +@@ -29,7 +29,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL Linux) + endif() + + if(CMAKE_SYSTEM_NAME STREQUAL FreeBSD) +- find_package(OpenGL REQUIRED) ++ #find_package(OpenGL REQUIRED) + find_package(OpenAL REQUIRED) + include_directories(${OPENGL_INCLUDE_DIR} ${OPENAL_INCLUDE_DIR}) + Index: devel/raylib/pkg-descr =================================================================== --- /dev/null +++ devel/raylib/pkg-descr @@ -0,0 +1,4 @@ +Raylib is highly inspired by Borland BGI graphics lib and by XNA framework. +Allegro and SDL have also been used as reference. + +WWW: http://www.raylib.com/