Update games/hexalate to version 1.1.6
[dports.git] / games / ags / Makefile
1 # $FreeBSD$
2
3 PORTNAME=       ags
4 DISTVERSION=    3.4.4.1
5 CATEGORIES=     games
6 MASTER_SITES=   https://github.com/adventuregamestudio/ags/releases/download/v.${DISTVERSION}/
7 DISTNAME=       ags_linux_v.${DISTVERSION}
8
9 MAINTAINER=     tobik@FreeBSD.org
10 COMMENT=        Adventure Game Studio Engine
11
12 LICENSE=        ART20
13 LICENSE_FILE=   ${WRKSRC}/License.txt
14
15 BUILD_DEPENDS=  ${LOCALBASE}/lib/libaldmb.a:audio/dumb-allegro
16 LIB_DEPENDS=    liballeg.so:devel/allegro \
17                 libogg.so:audio/libogg \
18                 libtheora.so:multimedia/libtheora \
19                 libvorbis.so:audio/libvorbis \
20                 libfreetype.so:print/freetype2
21
22 USES=           compiler:c++11-lang gmake localbase pkgconfig tar:xz xorg
23 USE_XORG=       x11
24
25 MAKE_ARGS=      V=1
26 BUILD_WRKSRC=   ${WRKSRC}/Engine
27
28 PLIST_FILES=    bin/ags
29
30 post-patch:
31         @${REINPLACE_CMD} 's|<endian.h>|<sys/endian.h>|' \
32                 ${WRKSRC}/Common/core/endianness.h
33         @${REINPLACE_CMD} -e 's|return cd_player|return 0; // cd_player|g' \
34                 -e 's|cd_exit|//cd_exit|g' \
35                 ${WRKSRC}/Engine/platform/linux/acpllnx.cpp
36
37 do-install:
38         ${INSTALL_PROGRAM} ${WRKSRC}/Engine/ags ${STAGEDIR}${PREFIX}/bin
39
40 .include <bsd.port.mk>