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;
- }
-
-
No comments:
Post a Comment