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?

[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}

Attachment: love12.tgz
Description: application/compressed-tar

Reply via email to