freebsd-ports/devel/love08/Makefile
Dmitry Marakasov a21ffdf3f8 Preserve devel/love 0.8.0 as devel/love08 before updating it to 0.9.1.
Compatibility is not maintained between love 0.x branches, so separate port is needed to run applications written for love 0.8. Currently there's at least one such application known: mari0 - cross between Super Mario Bros and Valve's Portal.
2014-06-10 11:35:20 +00:00

59 lines
1.6 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= love
PORTVERSION= 0.8.0
CATEGORIES= devel games
MASTER_SITES= http://cdn.bitbucket.org/rude/love/downloads/ \
http://mirror.amdmi3.ru/distfiles/
PKGNAMESUFFIX= 08
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Open-source 2D game engine
LIB_DEPENDS= libIL.so:${PORTSDIR}/graphics/devil \
libmodplug.so:${PORTSDIR}/audio/libmodplug \
libmpg123.so:${PORTSDIR}/audio/mpg123 \
libvorbisfile.so:${PORTSDIR}/audio/libvorbis \
libphysfs.so:${PORTSDIR}/devel/physfs \
libfreetype.so:${PORTSDIR}/print/freetype2
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
PORTSCOUT= limit:^0\.8\.
USES= gmake openal dos2unix lua:51
USE_SDL= sdl mixer
USE_GL= gl glu
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 \
-I${LUA_INCDIR} `${SDL_CONFIG} --cflags`
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
CONFIGURE_ARGS= --bindir=${PREFIX}/bin --libdir=${PREFIX}/lib \
--program-suffix=08
WRKSRC= ${WRKDIR}/love-${PORTVERSION}
DOS2UNIX_FILES= src/modules/graphics/opengl/GLee.h
PLIST_FILES= bin/love08
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e '/^prefix=/ d; /^bindir=/ d; /^libdir=/ d; \
/test/ s|==|=|' \
-e "s/lua5.1/lua-${LUA_VER}/g" \
${WRKSRC}/configure
.if ${PORT_OPTIONS:MDOCS}
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in changes.txt readme.md
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
.endfor
.endif
.include <bsd.port.mk>