On Sat, 12 Sep 2026 15:33:34 -0700 Thomas Frohwein <[email protected]> wrote:
> On Thu, 3 Sep 2026 21:43:39 -0700 > Thomas Frohwein <[email protected]> wrote: > > > Hi ports@ and Omar, > > > > This is a port to add version 12 to games/love. While upstream > > hasn't made a release of version 12 yet, there are already several > > high-profile indie games released using a recent checkout of the > > engine that falls under version 12. > > > > This builds, however the memory usage during the build runs fairly > > high and I had to increase the datasize limits for my pbuild user to > > above 16G (I set 24G, but from watching top(1) output, 18G might be > > enough). Upstream has switched from gnu autotools to cmake and the > > Makefile.inc needs some adjustments as in the diff below to build > > 12/. The .if around the --program-suffix may not be ideal; if > > someone has a hint how to make this a 'less than 12' logic rather > > than != that would help. > > > > As there has not been any upstream tagging for any 12.0 version of > > the engine, I picked the latest commit and chose the lowest possible > > naming per packages-specs with 12.0alpha0, so that any > > alpha/beta/rc/release versioning in the future can supersede it. > > > > I can run two recent and well-received indie games, Snacktorio[1] > > and Beatblock[2]. To test this port easily, you can download the > > demo of Snacktorio at [1], unzip it, fix the file permissions > > recursively (yuck), and then launch the demo with: > > > > $ love-12 bin/Snackorio\ Demo > > > > Beatblock's demo sadly doesn't launch, but the full game (early > > access currently) does after setting project.useSteamAPI to false in > > project.lua. > > > > Tarball for love-12 is attached, and the diff below adjusts the love > > Makefiles so that this branch can be added. > > > > ok to import? > > ping > > Been playing a lot of Beatblock with it, and some Snacktorio. > Beatblock works flawlessly, and Snacktorio almost... the latter has > occasional random segfaults from the luajit library. I'm still > investigating it, but it's not strictly an issue with love-12 > > Port re-attached for convenience After some off-list discussion, I tried compiler options changes to reduce the datasize requirements and it turns out '-g' from DEBUG_PACKAGES (set in ../Makefile.inc) is chiefly to blame for this. Updated tarball attached; this disables the DEBUG_PACKAGES here. I've built it now with the default datasize-cur=12G without issues. It may be worth discussing if Makefile.inc in ports with branches is the right place for setting DEBUG_PACKAGES, or if it would be better to move it at least for this port into the Makefiles in 0.8/,0.10/ and 11/. ok with these changes, as in the attached tarball? > > > > > [1] https://tngineers.itch.io/snacktorio > > [2] https://store.steampowered.com/app/3045200/Beatblock/ > > > > Index: Makefile > > =================================================================== > > RCS file: /cvs/ports/games/love/Makefile,v > > diff -u -p -r1.32 Makefile > > --- Makefile 27 Feb 2023 10:57:28 -0000 1.32 > > +++ Makefile 4 Sep 2026 01:00:36 -0000 > > @@ -2,6 +2,7 @@ > > SUBDIR += 0.8 > > SUBDIR += 0.10 > > SUBDIR += 11 > > + SUBDIR += 12 > > SUBDIR += mime > > > > .include <bsd.port.subdir.mk> > > Index: Makefile.inc > > =================================================================== > > RCS file: /cvs/ports/games/love/Makefile.inc,v > > diff -u -p -r1.6 Makefile.inc > > --- Makefile.inc 28 Aug 2024 15:34:10 -0000 1.6 > > +++ Makefile.inc 4 Sep 2026 01:00:36 -0000 > > @@ -12,7 +12,7 @@ MAINTAINER = Omar Polo <[email protected]> > > # zlib > > PERMIT_PACKAGE = Yes > > > > -SITES = > > https://github.com/love2d/love/releases/download/${VERSION}/ +SITES > > ?= > > https://github.com/love2d/love/releases/download/${VERSION}/ > > COMPILER = base-clang ports-gcc > > @@ -22,7 +22,9 @@ SUFFIX = -${VERSION:R} > > SUBST_VARS += SUFFIX VERSION > > > > CONFIGURE_STYLE ?= autoreconf > > +.if ${VERSION} != 12.0 > > CONFIGURE_ARGS += --program-suffix=${SUFFIX} > > +.endif > > CONFIGURE_ENV ?= CPPFLAGS='-I${LOCALBASE}/include' \ > > LDFLAGS='-L${LOCALBASE}/lib' > > > > @@ -46,6 +48,6 @@ CONFIGURE_ARGS += --with-lua=lua \ > > AUTOCONF_VERSION = 2.69 > > AUTOMAKE_VERSION = 1.14 > > > > -WRKDIST = ${WRKDIR}/love-${VERSION} > > +WRKDIST ?= ${WRKDIR}/love-${VERSION} > > > > PORTROACH ?= limit:^${VERSION} >
love12-rev1.tgz
Description: application/compressed-tar
Index: Makefile
===================================================================
RCS file: /cvs/ports/games/love/Makefile,v
diff -u -p -r1.32 Makefile
--- Makefile 27 Feb 2023 10:57:28 -0000 1.32
+++ Makefile 4 Sep 2026 01:00:36 -0000
@@ -2,6 +2,7 @@
SUBDIR += 0.8
SUBDIR += 0.10
SUBDIR += 11
+ SUBDIR += 12
SUBDIR += mime
.include <bsd.port.subdir.mk>
Index: Makefile.inc
===================================================================
RCS file: /cvs/ports/games/love/Makefile.inc,v
diff -u -p -r1.6 Makefile.inc
--- Makefile.inc 28 Aug 2024 15:34:10 -0000 1.6
+++ Makefile.inc 4 Sep 2026 01:00:36 -0000
@@ -12,7 +12,7 @@ MAINTAINER = Omar Polo <[email protected]>
# zlib
PERMIT_PACKAGE = Yes
-SITES = https://github.com/love2d/love/releases/download/${VERSION}/
+SITES ?= https://github.com/love2d/love/releases/download/${VERSION}/
COMPILER = base-clang ports-gcc
@@ -22,7 +22,9 @@ SUFFIX = -${VERSION:R}
SUBST_VARS += SUFFIX VERSION
CONFIGURE_STYLE ?= autoreconf
+.if ${VERSION} != 12.0
CONFIGURE_ARGS += --program-suffix=${SUFFIX}
+.endif
CONFIGURE_ENV ?= CPPFLAGS='-I${LOCALBASE}/include' \
LDFLAGS='-L${LOCALBASE}/lib'
@@ -46,6 +48,6 @@ CONFIGURE_ARGS += --with-lua=lua \
AUTOCONF_VERSION = 2.69
AUTOMAKE_VERSION = 1.14
-WRKDIST = ${WRKDIR}/love-${VERSION}
+WRKDIST ?= ${WRKDIR}/love-${VERSION}
PORTROACH ?= limit:^${VERSION}
