1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-27 10:03:20 +00:00
freebsd-ports/devel/raylib/Makefile
Tobias Kortkamp f6737f1a52 devel/raylib: Update to 2.5.0
PR:		239270
Submitted by:	Martin Filla <freebsd@sysctl.cz> (maintainer)
2019-08-12 11:40:46 +00:00

41 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= raylib
DISTVERSION= 2.5.0
CATEGORIES= devel
MAINTAINER= freebsd@sysctl.cz
COMMENT= Library to learn videogames programming
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.md
BUILD_DEPENDS= glfw>=3.3:graphics/glfw
LIB_DEPENDS= libglfw.so:graphics/glfw
USES= cmake gl localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= raysan5
USE_LDCONFIG= yes
USE_GL= gl glu
USE_XORG= ice sm x11 xcursor xext xrandr xi xinerama xxf86vm
CMAKE_ON= SHARED USE_EXTERNAL_GLFW
CMAKE_OFF= STATIC BUILD_EXAMPLES BUILD_GAMES
PLIST_FILES= include/raylib.h \
lib/cmake/raylib/raylib-config-version.cmake \
lib/cmake/raylib/raylib-config.cmake \
lib/libraylib.so \
lib/libraylib.so.${DISTVERSION} \
lib/libraylib.so.2 \
libdata/pkgconfig/raylib.pc
post-patch: # the equivalent of https://github.com/raysan5/raylib/pull/558 for the -dev branch
@${REINPLACE_CMD} -e 's|if(NOT glfw3_FOUND)|if(NOT glfw3_FOUND AND NOT USE_EXTERNAL_GLFW)|' ${WRKSRC}/src/CMakeLists.txt
post-extract: # remove bundled files
@${RM} -r ${WRKSRC}/src/external/glfw ${WRKSRC}/src/external/include ${WRKSRC}/src/rglfw.c
.include <bsd.port.mk>