blob: c34f4585dac2f74590b582091669d10732229d49 (
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
|
# $FreeBSD$
PORTNAME= keeperrl
PORTVERSION= 0.0.${ALPHA_VERSION}
PORTREVISION= 1
CATEGORIES= games
MAINTAINER= games@FreeBSD.org
COMMENT= Ambitious dungeon builder with roguelike elements
LICENSE= GPLv2 OFL11
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/COPYING.txt
LICENSE_FILE_OFL11= ${WRKSRC}/data_contrib/SIL_Open_Font_License.txt
BROKEN_FreeBSD_10= needs c++14, does not build even with clang5
LIB_DEPENDS= libvorbis.so:audio/libvorbis \
libcurl.so:ftp/curl
USES= gmake localbase openal
USE_GITHUB= yes
GH_ACCOUNT= miki151
GH_TAGNAME= alpha${ALPHA_VERSION}
USE_GL= gl
USE_SDL= sdl2 image2
ALPHA_VERSION= 23
NO_CONFIGURE= yes
LIBS+= -lexecinfo
LLD_UNSAFE= yes
MAKE_ARGS= DATA_DIR="${DATADIR}" GCC="${CXX}" \
LDFLAGS="${LDFLAGS}" RELEASE=true
DESKTOP_ENTRIES="KeeperRL" "" "" "keeper" \
"Game;Simulation;" false
post-patch:
@${REINPLACE_CMD} -e '/^CFLAGS =/ s|=|= ${CFLAGS}|' \
-e '/^LIBS =/ s|$$| ${LIBS}|' \
-e 's|bash|sh|' \
${WRKSRC}/Makefile
@${REINPLACE_CMD} 's|bash|sh|' ${WRKSRC}/check_serial.sh
@${REINPLACE_CMD} '/_GLIBCXX_END_NAMESPACE_VERSION/d' \
${WRKSRC}/extern/iomanip.h
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/keeper ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} "data_contrib data_free" \
${STAGEDIR}${DATADIR} "! -name *License.txt"
.include <bsd.port.mk>
|