diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2008-08-01 21:39:02 +0800 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2008-08-01 21:39:02 +0800 |
commit | cb27ac32705790d5986d13da01495b8cbc9b37b7 (patch) | |
tree | c715352d18ab70ce66897e217b78290b90086946 /games | |
parent | 56a121095ff5694437fcd8da3330f72dd8e15688 (diff) | |
download | freebsd-ports-gnome-cb27ac32705790d5986d13da01495b8cbc9b37b7.tar.gz freebsd-ports-gnome-cb27ac32705790d5986d13da01495b8cbc9b37b7.tar.zst freebsd-ports-gnome-cb27ac32705790d5986d13da01495b8cbc9b37b7.zip |
LOVE is an open-source 2D game engine which uses the versatile Lua
scripting language to create dynamic gaming experiences. It relies
on OpenGL graphics and the SDL interface library to allow for
cross-platform implementation and is an all-encompassing gaming
environment for the development and enjoyment of 2D games.
WWW: http://www.love2d.org/
Approved by: miwi (mentor implicit)
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 1 | ||||
-rw-r--r-- | games/love/Makefile | 54 | ||||
-rw-r--r-- | games/love/distinfo | 3 | ||||
-rw-r--r-- | games/love/files/patch-Makefile | 41 | ||||
-rw-r--r-- | games/love/pkg-descr | 7 |
5 files changed, 106 insertions, 0 deletions
diff --git a/games/Makefile b/games/Makefile index 3e091fff3115..cad79c44d4a2 100644 --- a/games/Makefile +++ b/games/Makefile @@ -468,6 +468,7 @@ SUBDIR += lmarbles SUBDIR += lmpc SUBDIR += lordsawar + SUBDIR += love SUBDIR += ltris SUBDIR += lucidlife SUBDIR += luola diff --git a/games/love/Makefile b/games/love/Makefile new file mode 100644 index 000000000000..c104eafde0c7 --- /dev/null +++ b/games/love/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: love +# Date created: 01 Aug 2008 +# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= love +DISTVERSION= 0.3-2 +CATEGORIES= games devel +MASTER_SITES= SF + +MAINTAINER= amdmi3@FreeBSD.org +COMMENT= Open-source 2D game engine + +LIB_DEPENDS= IL.1:${PORTSDIR}/graphics/devil \ + physfs-1.0.1:${PORTSDIR}/devel/physfs \ + freetype.9:${PORTSDIR}/print/freetype2 +BUILD_DEPENDS= ${LOCALBASE}/include/boost/shared_ptr.hpp:${PORTSDIR}/devel/boost + +USE_BZIP2= yes +USE_GMAKE= yes +USE_SDL= sdl mixer +USE_GL= gl glu +USE_LUA= 5.1+ + +ALL_TARGET= default + +WRKSRC= ${WRKDIR}/${PORTNAME} + +PLIST_FILES= bin/love lib/liblove.a + +PORTDOCS= * +PORTEXAMPLES= * + +post-patch: + @${REINPLACE_CMD} -e 's|ILvoid|void|' ${WRKSRC}/src/opengl/Image.cpp + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/bin/love ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/bin/liblove.a ${PREFIX}/lib +.if !defined(NOPORTEXAMPLES) + ${MKDIR} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/demos/*.love ${EXAMPLESDIR} +.endif + +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} +.for f in changes.txt readme.txt + ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} +.endfor +.endif + +.include <bsd.port.mk> diff --git a/games/love/distinfo b/games/love/distinfo new file mode 100644 index 000000000000..911d128600b2 --- /dev/null +++ b/games/love/distinfo @@ -0,0 +1,3 @@ +MD5 (love-0.3-2.tar.bz2) = 04baa99ea1f237d87fb6e12a4da3d126 +SHA256 (love-0.3-2.tar.bz2) = d86b424ad7af8078c37ab604c6e20315f538ea95f6d563c8214d3d0505f67bf9 +SIZE (love-0.3-2.tar.bz2) = 885790 diff --git a/games/love/files/patch-Makefile b/games/love/files/patch-Makefile new file mode 100644 index 000000000000..e1eb1dcb1c9c --- /dev/null +++ b/games/love/files/patch-Makefile @@ -0,0 +1,41 @@ +--- Makefile.orig 2008-07-04 03:25:34.000000000 +0400 ++++ Makefile 2008-08-01 16:27:46.000000000 +0400 +@@ -3,20 +3,19 @@ + # You may need to modify parts of this makefile for your system. + ###################################################################### + +-CC = g++ +-CFLAGS = -g -O2 -Wall +-CFLAGS_MOD = -g0 -O3 ++CFLAGS += -Wall ++CFLAGS_MOD = $(CFLAGS) + BINDIR = bin + + # Inclusion paths. +-INCLUDE_SDL = -I/usr/include/SDL +-INCLUDE_LUA = -I/usr/include/lua5.1 ++INCLUDE_SDL = `$(SDL_CONFIG) --cflags` ++INCLUDE_LUA = -I$(LOCALBASE)/include/lua51 + INCLUDE_LIBLOVE = -Isrc/liblove/include +-INCLUDE_FREETYPE = -I/usr/include/freetype2 ++INCLUDE_FREETYPE = -I$(LOCALBASE)/include/freetype2 + + # Linker flags. +-LD_LUA = -llua5.1 +-LD_SDL = -lSDL ++LD_LUA = -L$(LOCALBASE)/lib/lua51 -llua ++LD_SDL = `$(SDL_CONFIG) --libs` + LD_PHYSFS = -lphysfs + LD_FREETYPE = -lfreetype + LD_GL = -lGL -lGLU +@@ -27,8 +26,8 @@ + + default: prep $(BINDIR)/liblove.a love + +-INCLUDE_COMMON = $(INCLUDE_LUA) $(INCLUDE_SDL) $(INCLUDE_LIBLOVE) +-LD_COMMON = $(LD_LUA) $(LD_SDL) ++INCLUDE_COMMON = -I$(LOCALBASE)/include $(INCLUDE_LUA) $(INCLUDE_SDL) $(INCLUDE_LIBLOVE) ++LD_COMMON = -L$(LOCALBASE)/lib $(LD_LUA) $(LD_SDL) + + # + # liblove diff --git a/games/love/pkg-descr b/games/love/pkg-descr new file mode 100644 index 000000000000..f514f149392d --- /dev/null +++ b/games/love/pkg-descr @@ -0,0 +1,7 @@ +LOVE is an open-source 2D game engine which uses the versatile Lua +scripting language to create dynamic gaming experiences. It relies +on OpenGL graphics and the SDL interface library to allow for +cross-platform implementation and is an all-encompassing gaming +environment for the development and enjoyment of 2D games. + +WWW: http://www.love2d.org/ |