blob: acca3dcdddb101708841d645dd04082f08e3e8db (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# Created by: Shane Ambler <FreeBSD@Shaneware.biz>
# $FreeBSD$
PORTNAME= godot
PORTVERSION= 1.1
DISTVERSIONSUFFIX= -stable
CATEGORIES= devel games
MAINTAINER= FreeBSD@Shaneware.biz
COMMENT= Game engine and development environment
LICENSE= MIT
LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2 \
libasound.so:${PORTSDIR}/audio/alsa-lib
USE_GITHUB= yes
GH_ACCOUNT= okamstudio
USES= scons pkgconfig compiler
USE_XORG= x11 xcursor xinerama
USE_GL= glu
USE_OPENSSL= yes
MAKE_ARGS+= platform=x11
OPTIONS_DEFINE= EXAMPLES TOOLS
OPTIONS_DEFAULT= EXAMPLES TOOLS
OPTIONS_SUB= yes
TOOLS_DESC= Include development tools (IDE)
TOOLS_MAKE_ARGS_ON= tools=yes
TOOLS_MAKE_ARGS_OFF= tools=no target=release
.include <bsd.port.pre.mk>
.if ${ARCH}==amd64 || ${ARCH}==powerpc64 || ${ARCH}==sparc64 || ${ARCH}==ia64
BITSUF= .64
.else
BITSUF= .32
.endif
.if ${CHOSEN_COMPILER_TYPE} == clang
LLSUF= .llvm
MAKE_ARGS+= use_llvm=yes
.else # clang
USE_GCC= yes
.if ${ARCH} == i386
CXXFLAGS+= -march=i586
.endif
.endif # clang
.if ${PORT_OPTIONS:MTOOLS}
TOOLSUF= .tools
.else
TOOLSUF= .opt
.endif
BINSUFFIX= ${TOOLSUF}${BITSUF}${LLSUF}
PLIST_SUB+= BINSUFF=${BINSUFFIX}
post-patch:
@${REINPLACE_CMD} -e 's|custom_build|${OPSYS}_Ports_build|' ${WRKSRC}/methods.py
do-install:
@cd ${WRKSRC}/bin && ${INSTALL_PROGRAM} godot.x11${BINSUFFIX} \
${STAGEDIR}/${PREFIX}/bin/godot.x11${BINSUFFIX}
@${LN} ${STAGEDIR}/${PREFIX}/bin/godot.x11${BINSUFFIX} \
${STAGEDIR}/${PREFIX}/bin/godot
do-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${COPYTREE_SHARE} demos ${STAGEDIR}${DATADIR})
${RM} ${STAGEDIR}${DATADIR}/demos/2d/hexamap/.fscache
.include <bsd.port.post.mk>
|