blob: 933b9e46dc6ae7880587e81562cddd756fdfa095 (
plain)
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
|
PORTNAME= re3
DISTVERSION= g20210219
CATEGORIES= games
MAINTAINER= pkubaj@FreeBSD.org
COMMENT= Reverse-engineered GTA3 engine
ONLY_FOR_ARCHS= aarch64 armv6 armv7 amd64 i386
BUILD_DEPENDS= premake5:devel/premake5
LIB_DEPENDS= libglfw.so:graphics/glfw \
libmpg123.so:audio/mpg123 \
libsndfile.so:audio/libsndfile \
libsysinfo.so:devel/libsysinfo
USES= gl gmake openal shebangfix xorg
SHEBANG_FILES= printHash.sh
USE_GL= gl
USE_GITHUB= nodefault
GH_TUPLE= aap:librw:8b2caf8f:librw \
xiph:ogg:684c7377:ogg \
xiph:opus:6bae366f:opus \
xiph:opusfile:6452e838:opusfile
USE_GITLAB= yes
GL_SITE= https://git.rip
GL_ACCOUNT= Obama
GL_COMMIT= 9a7fa478578beaba947ea867c15a25e411d641d8
bash_CMD= /bin/sh
USE_XORG= x11
LDFLAGS_i386= -Wl,-znotext
PLIST_FILES= bin/${PORTNAME}
PORTDATA= *
SUB_FILES= ${PORTNAME}
post-extract:
${MV} ${WRKSRC_librw}/* ${WRKSRC}/vendor/librw
${MV} ${WRKSRC_ogg}/* ${WRKSRC}/vendor/ogg
${MV} ${WRKSRC_opus}/* ${WRKSRC}/vendor/opus
${MV} ${WRKSRC_opusfile}/* ${WRKSRC}/vendor/opusfile
do-configure:
cd ${WRKSRC} && premake5 --with-librw gmake2
do-build:
cd ${WRKSRC}/build && ${MAKE_ENV} ${MAKE_CMD} config=release_bsd-${ARCH:S/i386/x86/:C/armv.*/arm/:S/aarch64/arm64/}-librw_gl3_glfw-oal
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/re3 ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_PROGRAM} ${WRKSRC}/bin/bsd-${ARCH:S/i386/x86/:C/armv.*/arm/:S/aarch64/arm64/}-librw_gl3_glfw-oal/Release/re3 ${STAGEDIR}${DATADIR}/
(cd ${WRKSRC}/gamefiles && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR}/)
.include <bsd.port.mk>
|