2013-06-18 13:46:51 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
2008-08-01 15:39:02 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= love
|
2011-09-27 06:23:01 +02:00
|
|
|
PORTVERSION= 0.7.2
|
2014-05-09 23:29:46 +02:00
|
|
|
PORTREVISION= 6
|
2009-12-26 04:29:42 +01:00
|
|
|
CATEGORIES= devel games
|
2011-09-27 06:23:01 +02:00
|
|
|
MASTER_SITES= http://cdn.bitbucket.org/rude/love/downloads/ \
|
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2013-10-03 14:52:08 +02:00
|
|
|
PKGNAMESUFFIX= 07
|
2011-09-27 06:23:01 +02:00
|
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}-linux-src
|
2008-08-01 15:39:02 +02:00
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Open-source 2D game engine
|
|
|
|
|
2013-09-28 17:48:37 +02:00
|
|
|
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
|
2009-07-28 13:45:08 +02:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost-libs
|
2008-08-01 15:39:02 +02:00
|
|
|
|
2012-05-12 18:00:31 +02:00
|
|
|
PORTSCOUT= limit:^0\.7\.
|
|
|
|
|
2014-05-08 05:56:04 +02:00
|
|
|
USES= gmake openal dos2unix
|
2008-08-01 15:39:02 +02:00
|
|
|
USE_SDL= sdl mixer
|
|
|
|
USE_GL= gl glu
|
|
|
|
USE_LUA= 5.1+
|
2008-10-03 00:34:49 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include -I${LOCALBASE}/include/freetype2 \
|
|
|
|
-I${LUA_INCDIR} `${SDL_CONFIG} --cflags`
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -L${LUA_LIBDIR}
|
2012-04-23 20:36:54 +02:00
|
|
|
CONFIGURE_ARGS= --bindir=${PREFIX}/bin --libdir=${PREFIX}/lib \
|
|
|
|
--program-suffix=07
|
2011-09-27 06:23:01 +02:00
|
|
|
WRKSRC= ${WRKDIR}/love-HEAD
|
2014-05-08 05:56:04 +02:00
|
|
|
DOS2UNIX_FILES= src/modules/graphics/opengl/GLee.h
|
2008-08-01 15:39:02 +02:00
|
|
|
|
2012-04-23 20:36:54 +02:00
|
|
|
PLIST_FILES= bin/love07
|
2008-08-01 15:39:02 +02:00
|
|
|
|
2012-04-23 20:36:54 +02:00
|
|
|
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}07
|
2008-08-01 15:39:02 +02:00
|
|
|
PORTDOCS= *
|
2008-09-03 18:03:01 +02:00
|
|
|
|
2014-02-21 14:36:12 +01:00
|
|
|
OPTIONS_DEFINE= DOCS
|
2014-02-10 14:54:26 +01:00
|
|
|
|
2013-06-18 13:46:51 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2008-08-01 15:39:02 +02:00
|
|
|
post-patch:
|
2008-10-03 00:34:49 +02:00
|
|
|
@${REINPLACE_CMD} -e '/^prefix=/ d; /^bindir=/ d; /^libdir=/ d' \
|
|
|
|
${WRKSRC}/configure
|
2008-08-01 15:39:02 +02:00
|
|
|
|
2013-06-18 13:46:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2008-10-03 00:34:49 +02:00
|
|
|
post-install:
|
2013-09-28 17:48:37 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2008-08-01 15:39:02 +02:00
|
|
|
.for f in changes.txt readme.txt
|
2013-09-28 17:48:37 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}
|
2008-08-01 15:39:02 +02:00
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|