6 MASTER_SITES= https://github.com/adventuregamestudio/ags/releases/download/v.${DISTVERSION}/
7 DISTNAME= ags_linux_v.${DISTVERSION}
9 MAINTAINER= tobik@FreeBSD.org
10 COMMENT= Adventure Game Studio Engine
13 LICENSE_FILE= ${WRKSRC}/License.txt
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
22 USES= compiler:c++11-lang gmake localbase pkgconfig tar:xz xorg
26 BUILD_WRKSRC= ${WRKSRC}/Engine
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
38 ${INSTALL_PROGRAM} ${WRKSRC}/Engine/ags ${STAGEDIR}${PREFIX}/bin
40 .include <bsd.port.mk>