Update games/xonotic to version 0.8.2_1
[dports.git] / games / ags / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       ags
4 PORTVERSION=    3.4.1.1
5 DISTVERSIONPREFIX=      v.
6 CATEGORIES=     games
7
8 MAINTAINER=     tobik@FreeBSD.org
9 COMMENT=        Adventure Game Studio Engine
10
11 LICENSE=        ART20
12 LICENSE_FILE=   ${WRKSRC}/License.txt
13
14 BUILD_DEPENDS=  ${LOCALBASE}/lib/libaldmb.a:audio/dumb-allegro
15 LIB_DEPENDS=    liballeg.so:devel/allegro \
16                 libogg.so:audio/libogg \
17                 libtheora.so:multimedia/libtheora \
18                 libvorbis.so:audio/libvorbis \
19                 libfreetype.so:print/freetype2
20
21 BROKEN_powerpc64=       fails to compile: cc1plus: unrecognized command line option "-std=c++11"
22
23 USE_GITHUB=     yes
24 GH_ACCOUNT=     adventuregamestudio
25
26 USES=           gmake localbase pkgconfig tar:xz
27 USE_XORG=       x11
28
29 BUILD_WRKSRC=   ${WRKSRC}/Engine
30
31 MAKE_ARGS=      V=1
32
33 PLIST_FILES=    bin/ags
34
35 post-patch:
36         @${REINPLACE_CMD} 's|<endian.h>|<sys/endian.h>|' \
37                 ${WRKSRC}/Common/core/endianness.h
38         @${REINPLACE_CMD} 's|HWND editor_window_handle = NULL;|HWND editor_window_handle = 0;|g' \
39                 ${WRKSRC}/Engine/debug/debug.cpp
40         @${REINPLACE_CMD} -e 's|return cd_player|return 0; // cd_player|g' \
41                 -e 's|cd_exit|//cd_exit|g' \
42                 ${WRKSRC}/Engine/platform/linux/acpllnx.cpp
43
44 do-install:
45         ${INSTALL_PROGRAM} ${WRKSRC}/Engine/ags ${STAGEDIR}${PREFIX}/bin
46
47 .include <bsd.port.mk>