1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-19 19:59:43 +00:00
freebsd-ports/devel/raylib/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

39 lines
1019 B
Makefile

# $FreeBSD$
PORTNAME= raylib
DISTVERSION= 2.0.0
DISTVERSIONSUFFIX= -dev
CATEGORIES= devel
MAINTAINER= freebsd@sysctl.cz
COMMENT= Library to learn videogames programming
LICENSE= ZLIB
LICENSE_FILE= ${WRKSRC}/LICENSE.md
LIB_DEPENDS= libglfw.so:graphics/glfw
USES= cmake 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/libraylib.so \
lib/libraylib.so.1 \
lib/libraylib.so.${DISTVERSION} \
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>