import love 0.7.2

LOVE is a framework for making 2D games in the Lua programming language.

requested by laurent@ a long time ago
feedback/ok sthen@
This commit is contained in:
jasper 2011-07-02 09:54:39 +00:00
parent edc3060414
commit a23a9ef386
6 changed files with 103 additions and 0 deletions

59
games/love/Makefile Normal file
View File

@ -0,0 +1,59 @@
# $OpenBSD: Makefile,v 1.1.1.1 2011/07/02 09:54:39 jasper Exp $
COMMENT= 2D games framework for use with Lua
V= 0.7.2
DISTNAME= love-$V-linux-src
PKGNAME= love-$V
HOMEPAGE= http://love2d.org/
CATEGORIES= games lang/lua
# code: zlib license
# docs: freebsd license
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= http://bitbucket.org/rude/love/downloads/
MODULES= converters/libiconv
WANTLIB += GL Half IL Iex IlmImf IlmThread Imath SDL X11 Xdamage
WANTLIB += Xext Xfixes Xxf86vm c drm freetype jasper jpeg lcms
WANTLIB += ltdl lua m mng modplug mpg123 ogg openal physfs-1.0
WANTLIB += png pthread sndio stdc++ tiff usbhid vorbis vorbisfile
WANTLIB += xcb z
LIB_DEPENDS= audio/libmodplug \
audio/mpg123 \
audio/openal \
audio/libvorbis \
devel/physfs \
devel/sdl \
graphics/DevIL \
graphics/ilmbase \
graphics/libmng \
graphics/openexr \
lang/lua
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${LOCALBASE}/include/SDL/ \
-I${X11BASE}/include/ -I${X11BASE}/include/freetype2" \
LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -pthread"
WRKDIST= ${WRKDIR}/love-HEAD/
post-extract:
# Add missing newlines
cd ${WRKSRC} && \
for i in `find . -type f`; \
do [ "$(tail -c1 $i)" == "$(printf '\n')" ] || ls -l $i; \
done
.include <bsd.port.mk>

5
games/love/distinfo Normal file
View File

@ -0,0 +1,5 @@
MD5 (love-0.7.2-linux-src.tar.gz) = w+Z4YGu5qHDDEWjoWyaefg==
RMD160 (love-0.7.2-linux-src.tar.gz) = 6XaSX9Z+XHcUQ4xRNbUW+5yb3Jo=
SHA1 (love-0.7.2-linux-src.tar.gz) = h29Sf8aQim3UYggKpZn/oa1Hr6U=
SHA256 (love-0.7.2-linux-src.tar.gz) = pXrcsMvcOQqb2OL+R3vBdXmbn/00huAfhZo2vyf38mg=
SIZE (love-0.7.2-linux-src.tar.gz) = 900209

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-configure,v 1.1.1.1 2011/07/02 09:54:39 jasper Exp $
--- configure.orig Wed May 4 18:00:39 2011
+++ configure Wed Jun 29 22:19:27 2011
@@ -15819,7 +15819,7 @@ for ac_lib in '' vorbisfile; do
ac_res="none required"
else
ac_res=-l$ac_lib
- LIBS="-l$ac_lib $ac_func_search_save_LIBS"
+ LIBS="-l$ac_lib -lvorbis -lm -logg $ac_func_search_save_LIBS"
fi
if ac_fn_c_try_link "$LINENO"; then :
ac_cv_search_ov_open=$ac_res
@@ -15836,7 +15836,7 @@ else
ac_cv_search_ov_open=no
fi
rm conftest.$ac_ext
-LIBS=$ac_func_search_save_LIBS
+LIBS="$ac_func_search_save_LIBS -lvorbis -lm -logg"
fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ov_open" >&5
$as_echo "$ac_cv_search_ov_open" >&6; }

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_modules_graphics_opengl_GLee_h,v 1.1.1.1 2011/07/02 09:54:39 jasper Exp $
Prevent redefining __GLXextFuncPtr.
--- src/modules/graphics/opengl/GLee.h.orig Wed May 4 18:00:10 2011
+++ src/modules/graphics/opengl/GLee.h Wed Jun 29 21:57:38 2011
@@ -799,8 +799,6 @@ GLEE_EXTERN GLboolean _GLEE_SGIX_texture_range;
/* GLX */
- typedef void (*__GLXextFuncPtr)(void);
-
#ifndef GLX_ARB_get_proc_address
#define GLX_ARB_get_proc_address 1
extern __GLXextFuncPtr glXGetProcAddressARB (const GLubyte *);

1
games/love/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
LOVE is a framework for making 2D games in the Lua programming language.

2
games/love/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/07/02 09:54:39 jasper Exp $
@bin bin/love