2013-01-31 13:38:42 +00:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-10-04 19:04:26 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= allacrost
|
2010-10-07 02:13:49 +00:00
|
|
|
PORTVERSION= 1.0.2
|
2015-04-15 08:20:27 +00:00
|
|
|
PORTREVISION= 12
|
2006-10-04 19:04:26 +00:00
|
|
|
CATEGORIES= games
|
2009-08-22 00:23:13 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-demo/${PORTVERSION}
|
2010-09-08 02:53:34 +00:00
|
|
|
DISTNAME= ${PORTNAME}_demo_source_${PORTVERSION}
|
2006-10-04 19:04:26 +00:00
|
|
|
|
2008-06-19 17:28:24 +00:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2014-06-13 07:36:27 +00:00
|
|
|
COMMENT= Single player 2D role-playing game
|
2006-10-04 19:04:26 +00:00
|
|
|
|
2015-06-22 18:33:20 +00:00
|
|
|
LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
|
2013-10-30 16:09:08 +00:00
|
|
|
libogg.so:${PORTSDIR}/audio/libogg \
|
|
|
|
libvorbis.so:${PORTSDIR}/audio/libvorbis \
|
|
|
|
libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
2006-10-04 19:04:26 +00:00
|
|
|
|
2010-10-07 02:13:49 +00:00
|
|
|
LICENSE= GPLv2
|
|
|
|
|
2006-10-04 19:04:26 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2015-06-22 18:33:20 +00:00
|
|
|
USES= gettext gmake iconv jpeg openal:al lua:51
|
2007-12-18 18:51:29 +00:00
|
|
|
USE_SDL= sdl ttf net
|
2006-10-04 19:04:26 +00:00
|
|
|
USE_GL= yes
|
2013-10-30 16:09:08 +00:00
|
|
|
USE_GCC= any # problems in luabind
|
2006-10-04 19:04:26 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --datadir=${DATADIR}
|
2014-12-23 23:55:20 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LUA_INCDIR}
|
2011-09-23 22:26:39 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
|
2006-10-04 19:04:26 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2013-10-30 16:09:08 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTDATA= *
|
2006-10-07 23:11:48 +00:00
|
|
|
|
2013-02-03 23:46:51 +00:00
|
|
|
OPTIONS_DEFINE= EDITOR DOCS
|
|
|
|
EDITOR_DESC= Enable editor
|
2008-09-23 13:26:43 +00:00
|
|
|
|
2010-09-08 02:53:34 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2008-09-23 13:26:43 +00:00
|
|
|
|
2013-02-03 23:46:51 +00:00
|
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
2010-09-08 02:53:34 +00:00
|
|
|
QT_NONSTANDARD= yes
|
2012-06-06 06:44:37 +00:00
|
|
|
USE_QT4+= corelib gui opengl moc_build qt3support
|
2008-09-23 13:26:43 +00:00
|
|
|
CONFIGURE_ARGS+=--enable-editor=yes
|
|
|
|
PLIST_SUB= EDITOR=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--enable-editor=no
|
|
|
|
PLIST_SUB= EDITOR="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-10-04 19:04:26 +00:00
|
|
|
post-patch:
|
2007-12-18 18:51:29 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-I/usr/include/|-I${LOCALBASE}/include/|g' \
|
|
|
|
${WRKSRC}/Makefile.in
|
2006-10-04 19:04:26 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|exit -1|exit 1|; /CXXFLAGS=/ d; \
|
|
|
|
s|-lSDL |`${SDL_CONFIG} --libs` |' ${WRKSRC}/configure
|
2008-09-23 13:26:43 +00:00
|
|
|
@${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}"|; \
|
2014-05-26 15:28:28 +00:00
|
|
|
/qt4_libdirs/ s|".*"|"${QT_LIBDIR}"|; /test/ s|==|=| ; \
|
|
|
|
s/-llua /-llua-${LUA_VER} /g;' \
|
2008-09-23 13:26:43 +00:00
|
|
|
${WRKSRC}/configure
|
2013-02-03 23:46:51 +00:00
|
|
|
.if ${PORT_OPTIONS:MEDITOR}
|
2008-09-23 13:26:43 +00:00
|
|
|
@${REINPLACE_CMD} -e '/^INCLUDES = / s|=|= -I${QT_INCDIR}/QtGui \
|
|
|
|
-I${QT_INCDIR}/QtOpenGL -I${QT_INCDIR}/Qt3Support \
|
|
|
|
-I${QT_INCDIR}/QtCore -I${QT_INCDIR}|' \
|
|
|
|
${WRKSRC}/Makefile.in
|
|
|
|
.endif
|
2006-10-04 19:04:26 +00:00
|
|
|
|
|
|
|
post-install:
|
2013-10-30 16:09:08 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/MANUAL ${STAGEDIR}${DOCSDIR}/
|
2006-10-04 19:04:26 +00:00
|
|
|
|
2010-09-08 02:53:34 +00:00
|
|
|
.include <bsd.port.mk>
|