blob: bfd27a4ff09c8a1f301c66df2118cbe20b4dcc6b (
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
57
58
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= allacrost
PORTVERSION= 1.0.2
PORTREVISION= 26
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-demo/${PORTVERSION}
DISTNAME= ${PORTNAME}_demo_source_${PORTVERSION}
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Single player 2D role-playing game
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libpng.so:graphics/png \
libogg.so:audio/libogg \
libvorbis.so:audio/libvorbis \
libboost_thread.so:devel/boost-libs
GNU_CONFIGURE= yes
USES= compiler:c++11-lang gettext gmake iconv jpeg lua:51 openal:al
USE_SDL= sdl ttf net
USE_GL= gl glu
USE_XORG= x11
CONFIGURE_ARGS= --datadir=${DATADIR} --enable-editor=no
CPPFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR}
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
CXXFLAGS+= -Wno-c++11-narrowing
LLD_UNSAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= *
PORTDATA= *
OPTIONS_DEFINE= DOCS
OPTIONS_SUB= yes
post-patch:
@${REINPLACE_CMD} -e 's|-I/usr/include/|-I${LOCALBASE}/include/|g' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|exit -1|exit 1|; /CXXFLAGS=/ d; \
s|-lSDL |`${SDL_CONFIG} --libs` |' ${WRKSRC}/configure
@${REINPLACE_CMD} -e '/^LIBS =/ s|$$| @INTLLIBS@|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/^bindir = / s|games|bin|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e '/qt4_incdirs/ s|".*"|"${QT_INCDIR}"|; \
/qt4_libdirs/ s|".*"|"${QT_LIBDIR}"|; /test/ s|==|=| ; \
s/-llua /-llua-${LUA_VER} /g;' \
${WRKSRC}/configure
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/MANUAL ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>
|