diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2008-08-01 21:39:02 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2008-08-01 21:39:02 +0800 |
commit | 9c44d4e5ee2302ae73eb5dcb944988e5222fc761 (patch) | |
tree | bc4777cff3edea0b2271893ec4191882ae1abb3d /devel/love07 | |
parent | 346b4ceb6b16ef894eac7df5525867bdf85af0d8 (diff) | |
download | freebsd-ports-gnome-9c44d4e5ee2302ae73eb5dcb944988e5222fc761.tar.gz freebsd-ports-gnome-9c44d4e5ee2302ae73eb5dcb944988e5222fc761.tar.zst freebsd-ports-gnome-9c44d4e5ee2302ae73eb5dcb944988e5222fc761.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 'devel/love07')
-rw-r--r-- | devel/love07/Makefile | 54 | ||||
-rw-r--r-- | devel/love07/distinfo | 3 | ||||
-rw-r--r-- | devel/love07/files/patch-Makefile | 41 | ||||
-rw-r--r-- | devel/love07/pkg-descr | 7 |
4 files changed, 105 insertions, 0 deletions
diff --git a/devel/love07/Makefile b/devel/love07/Makefile new file mode 100644 index 000000000000..c104eafde0c7 --- /dev/null +++ b/devel/love07/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/devel/love07/distinfo b/devel/love07/distinfo new file mode 100644 index 000000000000..911d128600b2 --- /dev/null +++ b/devel/love07/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/devel/love07/files/patch-Makefile b/devel/love07/files/patch-Makefile new file mode 100644 index 000000000000..e1eb1dcb1c9c --- /dev/null +++ b/devel/love07/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/devel/love07/pkg-descr b/devel/love07/pkg-descr new file mode 100644 index 000000000000..f514f149392d --- /dev/null +++ b/devel/love07/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/ |