[info=22a304d288ab990dcfe72ed50a435ae9325b5ebf5af9b4eaad866c7aefc91f8c]
OBS-URL: https://build.opensuse.org/package/show/games/love-0_7_2?expand=0&rev=12
This commit is contained in:
commit
27bd75fa99
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
4
_scmsync.obsinfo
Normal file
4
_scmsync.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
mtime: 1546535360
|
||||
commit: 22a304d288ab990dcfe72ed50a435ae9325b5ebf5af9b4eaad866c7aefc91f8c
|
||||
url: https://src.opensuse.org/jengelh/love-0_7_2
|
||||
revision: master
|
3
build.specials.obscpio
Normal file
3
build.specials.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:04b7b65525d405f751a08eaac0fd1353e1d7adbad47c4fa5e9aa672c1f205a76
|
||||
size 256
|
3
love-0.7.2-linux-src.tar.gz
Normal file
3
love-0.7.2-linux-src.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a57adcb0cbdc390a9bd8e2fe477bc175799b9ffd3486e01f859a36bf27f7f268
|
||||
size 900209
|
25
love-0_7_2.changes
Normal file
25
love-0_7_2.changes
Normal file
@ -0,0 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 3 01:24:03 UTC 2019 - Jan Engelhardt <jengelh@inai.de>
|
||||
|
||||
- Set CPPFLAGS=-DGL_GLEXT_PROTOTYPES
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 28 23:17:52 UTC 2017 - jengelh@inai.de
|
||||
|
||||
- Make build with new /usr/include/lua5.1 directory work again.
|
||||
- Rename freetype.diff to system-packages.diff.
|
||||
- Remove love-remove-mpg123.patch: mpg123 is available in
|
||||
openSUSE:Factory and can be used now.
|
||||
- system-packages.diff: search for lua and mpg123 with pkg-config.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 13 17:57:56 UTC 2011 - jmatejek@suse.com
|
||||
|
||||
- build fix - added devel dependencies for DevIL
|
||||
- standard group name
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 22 20:08:34 UTC 2011 - prusnak@opensuse.org
|
||||
|
||||
- created package (version 0.7.2)
|
||||
|
74
love-0_7_2.spec
Normal file
74
love-0_7_2.spec
Normal file
@ -0,0 +1,74 @@
|
||||
#
|
||||
# spec file for package love-0_7_2
|
||||
#
|
||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: love-0_7_2
|
||||
Version: 0.7.2
|
||||
Release: 0
|
||||
Summary: 2D gaming engine written in Lua
|
||||
License: Zlib
|
||||
Group: Development/Languages/Other
|
||||
Url: http://love2d.org/
|
||||
|
||||
Source: https://bitbucket.org/rude/love/downloads/love-0.7.2-linux-src.tar.gz
|
||||
Patch1: love-modplug.patch
|
||||
Patch2: system-packages.diff
|
||||
BuildRequires: autoconf
|
||||
BuildRequires: automake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libmng-devel
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libtool
|
||||
BuildRequires: physfs-devel
|
||||
BuildRequires: pkg-config
|
||||
BuildRequires: pkgconfig(IL)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(gl)
|
||||
BuildRequires: pkgconfig(glu)
|
||||
BuildRequires: pkgconfig(libmodplug)
|
||||
BuildRequires: pkgconfig(libmpg123)
|
||||
BuildRequires: pkgconfig(lua5.1)
|
||||
BuildRequires: pkgconfig(openal)
|
||||
BuildRequires: pkgconfig(sdl)
|
||||
BuildRequires: pkgconfig(vorbisfile)
|
||||
|
||||
%description
|
||||
LÖVE is a framework for making 2D games in Lua.
|
||||
|
||||
%prep
|
||||
%setup -qn love-HEAD
|
||||
%patch -P 1 -P 2 -p1
|
||||
|
||||
%build
|
||||
sed -i 's/\r$//' *.txt
|
||||
mv configure.{in,ac}
|
||||
autoreconf -fi
|
||||
export CPPFLAGS="-DGL_GLEXT_PROTOTYPES"
|
||||
%configure
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
b="%buildroot";
|
||||
make install DESTDIR="$b"
|
||||
mv "$b/%_bindir"/love{,-0.7.2}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc changes.txt license.txt readme.txt
|
||||
%_bindir/love-0.7.2
|
||||
|
||||
%changelog
|
17
love-modplug.patch
Normal file
17
love-modplug.patch
Normal file
@ -0,0 +1,17 @@
|
||||
---
|
||||
src/modules/sound/lullaby/ModPlugDecoder.cpp | 2 --
|
||||
1 file changed, 2 deletions(-)
|
||||
|
||||
Index: love-HEAD/src/modules/sound/lullaby/ModPlugDecoder.cpp
|
||||
===================================================================
|
||||
--- love-HEAD.orig/src/modules/sound/lullaby/ModPlugDecoder.cpp
|
||||
+++ love-HEAD/src/modules/sound/lullaby/ModPlugDecoder.cpp
|
||||
@@ -42,8 +42,6 @@ namespace lullaby
|
||||
// fill with modplug defaults (modplug _memsets_, so we could get
|
||||
// garbage settings when the struct is only partially initialized)
|
||||
// This does not exist yet on Windows.
|
||||
- settings.mStereoSeparation = 128;
|
||||
- settings.mMaxMixChannels = 32;
|
||||
settings.mReverbDepth = 0;
|
||||
settings.mReverbDelay = 0;
|
||||
settings.mBassAmount = 0;
|
130
system-packages.diff
Normal file
130
system-packages.diff
Normal file
@ -0,0 +1,130 @@
|
||||
From: Jan Engelhardt <jengelh@inai.de>
|
||||
Date: 2015-01-20 20:46:39.043255730 +0100
|
||||
|
||||
build: löve uses an undocumented way of including freetype headers
|
||||
|
||||
Replace the (unsupported) #include <freetype/XX> paths by just <XX> as required
|
||||
by upstream, and use pkg-config — not just for freetype, but also lua, and, by
|
||||
extension, opportunistically for SDL/GL.
|
||||
|
||||
---
|
||||
configure.in | 38 ++++++-------------------
|
||||
src/Makefile.am | 7 +---
|
||||
src/modules/font/freetype/Font.h | 8 ++---
|
||||
src/modules/font/freetype/TrueTypeRasterizer.h | 8 ++---
|
||||
4 files changed, 20 insertions(+), 41 deletions(-)
|
||||
|
||||
Index: love-HEAD/configure.in
|
||||
===================================================================
|
||||
--- love-HEAD.orig/configure.in
|
||||
+++ love-HEAD/configure.in
|
||||
@@ -3,42 +3,24 @@ AC_CONFIG_HEADERS([config.h])
|
||||
AC_CONFIG_AUX_DIR([platform/unix])
|
||||
AC_CONFIG_MACRO_DIR([platform/unix/m4])
|
||||
AC_CONFIG_SRCDIR([src/love.cpp])
|
||||
-AM_INIT_AUTOMAKE([foreign -Wall foreign tar-ustar])
|
||||
+AM_INIT_AUTOMAKE([foreign -Wall foreign tar-ustar subdir-objects])
|
||||
AC_PREFIX_DEFAULT([/usr])
|
||||
AC_PROG_LIBTOOL
|
||||
AC_PROG_CC
|
||||
AC_PROG_CXX
|
||||
AC_SEARCH_LIBS([sqrt], [m], [], AC_MSG_ERROR([Can't LÖVE without C math library]))
|
||||
-AC_SEARCH_LIBS([SDL_Init], [SDL], [], AC_MSG_ERROR([Can't LÖVE without SDL]))
|
||||
-AC_SEARCH_LIBS([glLoadIdentity], [GL], [], AC_MSG_ERROR([Can't LÖVE without OpenGL]))
|
||||
-#AC_SEARCH_LIBS([gluOrtho2D], [GLU], [], AC_MSG_ERROR([Can't LÖVE without OpenGL Utility Library]))
|
||||
-AC_SEARCH_LIBS([alSourcePlay], [openal], [], AC_MSG_ERROR([Can't LÖVE without OpenAL]))
|
||||
-AC_ARG_ENABLE([luajit],
|
||||
- [ --enable-luajit Use LuaJIT instead of lua],
|
||||
- AC_SEARCH_LIBS(
|
||||
- [lua_pcall],
|
||||
- [luajit luajit-5.1],
|
||||
- AC_SUBST([INCLUDE_LUA], [-I/usr/include/luajit-2.0]),
|
||||
- AC_MSG_ERROR([Can't LÖVE without LuaJIT])
|
||||
- ),
|
||||
- AC_SEARCH_LIBS(
|
||||
- [lua_pcall],
|
||||
- [lua lua5.1],
|
||||
- if test "$ac_cv_search_lua_pcall" = "-llua5.1"; then
|
||||
- AC_SUBST([INCLUDE_LUA], [-I/usr/include/lua5.1])
|
||||
- fi,
|
||||
- AC_MSG_ERROR([Can't LÖVE without Lua])
|
||||
- )
|
||||
-)
|
||||
-AC_SEARCH_LIBS([ilInit], [IL], [], AC_MSG_ERROR([Can't LÖVE without DevIL]))
|
||||
+PKG_CHECK_MODULES([sdl], [sdl])
|
||||
+PKG_CHECK_MODULES([gl], [gl])
|
||||
+PKG_CHECK_MODULES([al], [openal])
|
||||
+PKG_CHECK_MODULES([lua], [lua5.1])
|
||||
+PKG_CHECK_MODULES([il], [IL])
|
||||
AC_SEARCH_LIBS([mng_initialize], [mng], [], AC_MSG_ERROR([DevIL needs MNG]))
|
||||
AC_SEARCH_LIBS([TIFFOpen], [tiff], [], AC_MSG_ERROR([DevIL needs TIFF]))
|
||||
-AC_SEARCH_LIBS([FT_Load_Glyph], [freetype], [], AC_MSG_ERROR([Can't LÖVE without FreeType]))
|
||||
+PKG_CHECK_MODULES([ft], [freetype2])
|
||||
AC_SEARCH_LIBS([PHYSFS_init], [physfs], [], AC_MSG_ERROR([Can't LÖVE without PhysicsFS]))
|
||||
-AC_SEARCH_LIBS([ModPlug_Load], [modplug], [], AC_MSG_ERROR([Can't LÖVE without ModPlug]))
|
||||
-AC_SEARCH_LIBS([mpg123_open_feed], [mpg123], [], AC_MSG_ERROR([Can't LÖVE without Mpg123]))
|
||||
-AC_SEARCH_LIBS([mpg123_seek_64], [mpg123], AC_SUBST([FILE_OFFSET],[-D_FILE_OFFSET_BITS=64]), AC_SUBST([FILE_OFFSET],[]))
|
||||
-AC_SEARCH_LIBS([ov_open], [vorbisfile], [], AC_MSG_ERROR([Can't LÖVE without VorbisFile]))
|
||||
+PKG_CHECK_MODULES([modplug], [libmodplug])
|
||||
+PKG_CHECK_MODULES([mpg123], [libmpg123])
|
||||
+PKG_CHECK_MODULES([vorbisfile], [vorbisfile])
|
||||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
src/Makefile
|
||||
Index: love-HEAD/src/Makefile.am
|
||||
===================================================================
|
||||
--- love-HEAD.orig/src/Makefile.am
|
||||
+++ love-HEAD/src/Makefile.am
|
||||
@@ -1,12 +1,9 @@
|
||||
-AM_CPPFLAGS = -I. -I./modules -I/usr/include/AL -I/usr/include/freetype2 $(INCLUDE_LUA) -I/usr/include/SDL $(FILE_OFFSET)
|
||||
-AUTOMAKE_OPTIONS = subdir-objects
|
||||
-DEFAULT_INCLUDES =
|
||||
+AM_CPPFLAGS = -I. -I./modules ${al_CFLAGS} ${ft_CFLAGS} ${gl_CFLAGS} ${glu_CFLAGS} ${il_CFLAGS} ${lua_CFLAGS} ${modplug_CFLAGS} ${mpg123_CFLAGS} ${sdl_CFLAGS} ${vorbisfile_CFLAGS} $(FILE_OFFSET)
|
||||
SUBDIRS =
|
||||
|
||||
# LÖVE executable
|
||||
bin_PROGRAMS = love
|
||||
-#love_LDFLAGS =
|
||||
-#love_LDADD =
|
||||
+love_LDADD = ${al_LIBS} ${ft_LIBS} ${gl_LIBS} ${glu_LIBS} ${il_LIBS} ${lua_LIBS} ${modplug_LIBS} ${mpg123_LIBS} ${sdl_LIBS} ${vorbisfile_LIBS}
|
||||
|
||||
love_SOURCES = \
|
||||
./scripts/graphics.lua.h \
|
||||
Index: love-HEAD/src/modules/font/freetype/Font.h
|
||||
===================================================================
|
||||
--- love-HEAD.orig/src/modules/font/freetype/Font.h
|
||||
+++ love-HEAD/src/modules/font/freetype/Font.h
|
||||
@@ -30,10 +30,10 @@
|
||||
#else
|
||||
#include <ft2build.h>
|
||||
#endif
|
||||
-#include <freetype/freetype.h>
|
||||
-#include <freetype/ftglyph.h>
|
||||
-#include <freetype/ftoutln.h>
|
||||
-#include <freetype/fttrigon.h>
|
||||
+#include FT_FREETYPE_H
|
||||
+#include FT_GLYPH_H
|
||||
+#include FT_OUTLINE_H
|
||||
+#include FT_TRIGONOMETRY_H
|
||||
|
||||
namespace love
|
||||
{
|
||||
Index: love-HEAD/src/modules/font/freetype/TrueTypeRasterizer.h
|
||||
===================================================================
|
||||
--- love-HEAD.orig/src/modules/font/freetype/TrueTypeRasterizer.h
|
||||
+++ love-HEAD/src/modules/font/freetype/TrueTypeRasterizer.h
|
||||
@@ -27,10 +27,10 @@
|
||||
|
||||
// TrueType2
|
||||
#include <ft2build.h>
|
||||
-#include <freetype/freetype.h>
|
||||
-#include <freetype/ftglyph.h>
|
||||
-#include <freetype/ftoutln.h>
|
||||
-#include <freetype/fttrigon.h>
|
||||
+#include FT_FREETYPE_H
|
||||
+#include FT_GLYPH_H
|
||||
+#include FT_OUTLINE_H
|
||||
+#include FT_TRIGONOMETRY_H
|
||||
|
||||
namespace love
|
||||
{
|
Loading…
x
Reference in New Issue
Block a user