2006-10-04 19:04:26 +00:00
|
|
|
# New ports collection makefile for: allacrost
|
|
|
|
# Date created: 03 Oct 2006
|
2006-12-21 20:41:33 +00:00
|
|
|
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-10-04 19:04:26 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= allacrost
|
2007-12-18 18:51:29 +00:00
|
|
|
PORTVERSION= 0.2.1
|
2008-03-13 14:28:35 +00:00
|
|
|
PORTREVISION= 1
|
2006-10-04 19:04:26 +00:00
|
|
|
CATEGORIES= games
|
2007-06-14 20:26:58 +00:00
|
|
|
MASTER_SITES= SF
|
2006-10-04 19:04:26 +00:00
|
|
|
DISTNAME= allacrost_demo_source_${PORTVERSION}
|
|
|
|
|
2008-06-19 17:28:24 +00:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2006-10-04 19:04:26 +00:00
|
|
|
COMMENT= A single player 2D role-playing game
|
|
|
|
|
2007-06-14 20:26:58 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libluabind.a:${PORTSDIR}/devel/luabind
|
2006-10-04 19:04:26 +00:00
|
|
|
LIB_DEPENDS= jpeg.9:${PORTSDIR}/graphics/jpeg \
|
2007-12-18 18:51:29 +00:00
|
|
|
png.5:${PORTSDIR}/graphics/png \
|
|
|
|
openal.0:${PORTSDIR}/audio/openal \
|
|
|
|
ogg.5:${PORTSDIR}/audio/libogg \
|
|
|
|
vorbis.4:${PORTSDIR}/audio/libvorbis
|
2006-10-04 19:04:26 +00:00
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LUA= 5.0
|
2007-12-18 18:51:29 +00:00
|
|
|
USE_SDL= sdl ttf net
|
2006-10-04 19:04:26 +00:00
|
|
|
USE_GL= yes
|
2007-11-03 23:39:37 +00:00
|
|
|
USE_GCC= 4.2+
|
2006-10-04 19:04:26 +00:00
|
|
|
|
|
|
|
CONFIGURE_ARGS= --datadir=${DATADIR}
|
2007-06-14 20:26:58 +00:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib -L${LUA_LIBDIR}" \
|
|
|
|
CPPFLAGS="-I${LOCALBASE}/include -I${LUA_INCDIR}"
|
2006-10-04 19:04:26 +00:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2007-06-14 20:26:58 +00:00
|
|
|
PORTDOCS= MANUAL
|
2006-10-07 23:11:48 +00:00
|
|
|
|
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
|
|
|
|
|
|
|
|
post-install:
|
2007-06-14 20:26:58 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for f in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
2006-10-04 19:04:26 +00:00
|
|
|
@${ECHO_CMD}; ${CAT} ${PKGMESSAGE}; ${ECHO_CMD}
|
|
|
|
|
2007-06-14 20:26:58 +00:00
|
|
|
.include <bsd.port.mk>
|