I'ts a pretty big jump.  I played mari0 a bit and wrote some simple
things, everything (audio, keyboard, focus, ...) seems to work.

I'm "forcing" it to use lua5.1 instead luajit (the default.)

I'm not sure about replacing -release with -version-info, but
otherwise it ends up installing liblove-11.4.so and liblove.so :/

comments/further testing/oks welcome :)

Index: Makefile
===================================================================
RCS file: /home/cvs/ports/games/love/Makefile,v
retrieving revision 1.31
diff -u -p -r1.31 Makefile
--- Makefile    11 Mar 2022 19:04:37 -0000      1.31
+++ Makefile    11 Dec 2022 10:09:23 -0000
@@ -1,9 +1,10 @@
 COMMENT=               2D games framework for use with Lua
 
-V=                     0.8.0
+V=                     11.4
 DISTNAME=              love-$V-linux-src
 PKGNAME=               love-$V
-REVISION=              13
+
+SHARED_LIBS=           love    0.0
 
 HOMEPAGE=              https://love2d.org/
 
@@ -13,18 +14,14 @@ CATEGORIES=         games lang/lua
 # docs: freebsd license
 PERMIT_PACKAGE=                Yes
 
-WANTLIB += ${MODLUA_WANTLIB} ${COMPILER_LIBCXX}
-WANTLIB += GL IL Iex-3_1 IlmThread-3_1 Imath-3_1 OpenEXR-3_1 OpenEXRCore-3_1
-WANTLIB += OpenEXRUtil-3_1 SDL X11 X11-xcb Xau Xdmcp Xext Xfixes
-WANTLIB += Xxf86vm c drm expat freetype glapi iconv jasper jpeg
-WANTLIB += lcms lzma m mng modplug mpg123 ogg openal physfs png
-WANTLIB += sndio tiff usbhid vorbis vorbisfile xcb xcb-dri2 xcb-dri3
-WANTLIB += xcb-glx xcb-present xcb-shm xcb-sync xcb-xfixes xshmfence
-WANTLIB += z zstd
+WANTLIB += ${MODLUA_WANTLIB} ${COMPILER_LIBCXX} SDL2 X11 Xcursor
+WANTLIB += Xext Xfixes Xi Xrandr Xrender Xss c freetype m modplug
+WANTLIB += mpg123 ogg openal samplerate sndio theoradec usbhid
+WANTLIB += vorbis vorbisfile xcb z
 
-COMPILER =             base-clang ports-gcc base-gcc
+COMPILER=              base-clang ports-gcc
 
-MASTER_SITES=          https://bitbucket.org/rude/love/downloads/
+MASTER_SITES=          https://github.com/love2d/love/releases/download/$V/
 
 MODULES=               lang/lua
 
@@ -32,28 +29,23 @@ LIB_DEPENDS=                audio/libmodplug \
                        audio/mpg123 \
                        audio/openal \
                        audio/libvorbis \
-                       converters/libiconv \
-                       devel/physfs \
-                       devel/sdl \
-                       graphics/DevIL \
+                       devel/sdl2 \
+                       multimedia/libtheora \
                        ${MODLUA_LIB_DEPENDS}
 
-CONFIGURE_STYLE=       gnu
-CONFIGURE_ENV=         CPPFLAGS="-I${LOCALBASE}/include 
-I${LOCALBASE}/include/SDL/ \
-                               -I${X11BASE}/include/ 
-I${X11BASE}/include/freetype2 \
-                               `pkg-config --cflags ${MODLUA_DEP}`" \
-                       LDFLAGS="-L${X11BASE}/lib -L${LOCALBASE}/lib -pthread"
-
-WRKDIST=               ${WRKDIR}/love-$V
+RUN_DEPENDS=           devel/desktop-file-utils \
+                       misc/shared-mime-info \
+                       x11/gtk+3,-guic
+
+CONFIGURE_STYLE=       autoreconf
+CONFIGURE_ARGS=                --with-lua=lua \
+                       --with-luaversion=${MODLUA_DEP_VERSION}
+CONFIGURE_ENV=         CPPFLAGS="-I${LOCALBASE}/include" \
+                       LDFLAGS="-L${LOCALBASE}/lib"
 
-FIX_CRLF_FILES=                
src/libraries/Box2D/Collision/Shapes/b2ChainShape.h \
-                       src/modules/graphics/opengl/GLee.h
+AUTOCONF_VERSION=      2.71
+AUTOMAKE_VERSION=      1.16
 
-post-extract:
-# Add missing newlines
-       cd ${WRKSRC} && \
-               for i in `find . -type f`; \
-                       do [ "$(tail -c1 $i)" == "$(printf '\n')" ] || ls -l 
$i; \
-               done
+WRKDIST=               ${WRKDIR}/love-$V
 
 .include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/cvs/ports/games/love/distinfo,v
retrieving revision 1.3
diff -u -p -r1.3 distinfo
--- distinfo    18 Jan 2015 03:14:00 -0000      1.3
+++ distinfo    10 Dec 2022 10:55:47 -0000
@@ -1,2 +1,2 @@
-SHA256 (love-0.8.0-linux-src.tar.gz) = 
kWfKHMeJP/H9zztvx+Koi+ENiZB1pROUJCD+j5Rmjsw=
-SIZE (love-0.8.0-linux-src.tar.gz) = 1027356
+SHA256 (love-11.4-linux-src.tar.gz) = 
4y/uyvX08hAkKktfJs35zpAUv94Y1RKG9kO7f+UfU2k=
+SIZE (love-11.4-linux-src.tar.gz) = 2925931
Index: patches/patch-configure
===================================================================
RCS file: patches/patch-configure
diff -N patches/patch-configure
--- patches/patch-configure     11 Mar 2022 19:04:37 -0000      1.3
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,20 +0,0 @@
---- configure.orig     Fri Apr  6 20:17:02 2012
-+++ configure  Fri May 11 11:55:53 2012
-@@ -16443,7 +16443,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
-@@ -16460,7 +16460,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; }
Index: patches/patch-src_Makefile_am
===================================================================
RCS file: patches/patch-src_Makefile_am
diff -N patches/patch-src_Makefile_am
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_Makefile_am       11 Dec 2022 10:06:39 -0000
@@ -0,0 +1,15 @@
+replace libtool' -release with -version-info so the library gets a
+proper name.
+
+Index: src/Makefile.am
+--- src/Makefile.am.orig
++++ src/Makefile.am
+@@ -25,7 +25,7 @@ endif
+ 
+ # libLĂ–VE
+ lib_LTLIBRARIES = liblove.la
+-liblove_la_LDFLAGS = -module -export-dynamic $(LDFLAGS) -release 
$(PACKAGE_VERSION)
++liblove_la_LDFLAGS = -module -export-dynamic $(LDFLAGS) -version-info 0:0:0
+ liblove_la_LIBADD =   $(SDL_LIBS) $(freetype2_LIBS) $(lua_LIBS)       
$(openal_LIBS) $(zlib_LIBS) $(libmodplug_LIBS)  $(vorbisfile_LIBS) 
$(theora_LIBS)
+ 
+ liblove_la_SOURCES = \
Index: patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h
===================================================================
RCS file: patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h
diff -N patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h
--- patches/patch-src_libraries_Box2D_Collision_Shapes_b2ChainShape_h   11 Mar 
2022 19:04:37 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,17 +0,0 @@
-ports-gcc fix for:
-error: converting to 'bool' from 'std::nullptr_t' requires 
direct-initialization
-
-Index: src/libraries/Box2D/Collision/Shapes/b2ChainShape.h
---- src/libraries/Box2D/Collision/Shapes/b2ChainShape.h.orig
-+++ src/libraries/Box2D/Collision/Shapes/b2ChainShape.h
-@@ -95,8 +95,8 @@ inline b2ChainShape::b2ChainShape()
-       m_radius = b2_polygonRadius;
-       m_vertices = NULL;
-       m_count = 0;
--      m_hasPrevVertex = NULL;
--      m_hasNextVertex = NULL;
-+      m_hasPrevVertex = false;
-+      m_hasNextVertex = false;
- }
- 
- #endif
Index: patches/patch-src_modules_font_freetype_Font_h
===================================================================
RCS file: patches/patch-src_modules_font_freetype_Font_h
diff -N patches/patch-src_modules_font_freetype_Font_h
--- patches/patch-src_modules_font_freetype_Font_h      11 Mar 2022 19:04:37 
-0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
---- src/modules/font/freetype/Font.h.orig      Fri Apr  6 20:15:01 2012
-+++ src/modules/font/freetype/Font.h   Thu Jan  9 17:09:36 2014
-@@ -30,10 +30,8 @@
- #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
- 
- namespace love
- {
Index: patches/patch-src_modules_font_freetype_TrueTypeRasterizer_h
===================================================================
RCS file: patches/patch-src_modules_font_freetype_TrueTypeRasterizer_h
diff -N patches/patch-src_modules_font_freetype_TrueTypeRasterizer_h
--- patches/patch-src_modules_font_freetype_TrueTypeRasterizer_h        11 Mar 
2022 19:04:37 -0000      1.2
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,15 +0,0 @@
---- src/modules/font/freetype/TrueTypeRasterizer.h.orig        Fri Apr  6 
20:15:01 2012
-+++ src/modules/font/freetype/TrueTypeRasterizer.h     Thu Jan  9 17:14:48 2014
-@@ -27,10 +27,8 @@
- 
- // 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
- 
- namespace love
- {
Index: patches/patch-src_modules_graphics_opengl_GLee_h
===================================================================
RCS file: patches/patch-src_modules_graphics_opengl_GLee_h
diff -N patches/patch-src_modules_graphics_opengl_GLee_h
--- patches/patch-src_modules_graphics_opengl_GLee_h    11 Mar 2022 19:04:37 
-0000      1.4
+++ /dev/null   1 Jan 1970 00:00:00 -0000
@@ -1,27 +0,0 @@
-Mesa >= 18.2.5 has newer OpenGL headers from Khronos which change the
-include guards.
-
-Prevent redefining __GLXextFuncPtr.
-
-Index: src/modules/graphics/opengl/GLee.h
---- src/modules/graphics/opengl/GLee.h.orig
-+++ src/modules/graphics/opengl/GLee.h
-@@ -63,7 +63,9 @@
-       #include <OpenGL/gl.h>
- #else // GLX
-       #define __glext_h_  /* prevent glext.h from being included  */
-+      #define __gl_glext_h_  /* prevent glext.h from being included  */
-       #define __glxext_h_ /* prevent glxext.h from being included */
-+      #define __glx_glxext_h_ /* prevent glxext.h from being included */
-       #define GLX_GLXEXT_PROTOTYPES
-       #include <GL/gl.h>
-       #include <GL/glx.h>
-@@ -798,8 +800,6 @@ GLEE_EXTERN GLboolean _GLEE_SGIX_texture_range;
- #else          
- 
-       /* GLX */
--
--      typedef void (*__GLXextFuncPtr)(void);
- 
-       #ifndef GLX_ARB_get_proc_address 
-       #define GLX_ARB_get_proc_address 1
Index: pkg/PLIST
===================================================================
RCS file: /home/cvs/ports/games/love/pkg/PLIST,v
retrieving revision 1.2
diff -u -p -r1.2 PLIST
--- pkg/PLIST   11 Mar 2022 19:04:37 -0000      1.2
+++ pkg/PLIST   11 Dec 2022 10:11:29 -0000
@@ -1 +1,13 @@
 @bin bin/love
+@static-lib lib/liblove.a
+lib/liblove.la
+@lib lib/liblove.so.${LIBlove_VERSION}
+@man man/man1/love.1
+share/applications/love.desktop
+share/icons/hicolor/scalable/mimetypes/application-x-love-game.svg
+share/mime/packages/love.xml
+share/pixmaps/
+share/pixmaps/love.svg
+@tag update-desktop-database
+@tag gtk-update-icon-cache %D/share/icons/hicolor
+@tag update-mime-database

Reply via email to