From: Omar Polo Subject: Re: [new] games/nanosaur2: port of Pangea Software' Nanosaur II To: George Koehler Cc: ports@openbsd.org, izder456 Date: Thu, 18 Jan 2024 14:59:47 +0100 Hello, On 2024/01/17 20:21:52 -0500, George Koehler wrote: > On Fri, 23 Dec 2022 16:24:10 +0100 > Omar Polo wrote: > > > Today I discovered that someone has made a port of Nanosaur II for > > modern OSes and I just had to try it :) > > Hi op, I tried your port of Nanosaur2 after izder456 made ports of > Bugdom and Bugdom 2. > > I needed to edit your Makefile. People who want to play Nanosaur2 > right now may apply this diff after extracting nanosaur2.tar.gz from > your mail last month, > https://marc.info/?l=openbsd-ports&m=167180883506465&w=2 it was actually one year ago :-) > I only made the smallest edits; it would be better to use DIST_TUPLE > (like the Bugdoms). Thanks for taking interest in this port. I agree with your changes, and while here I've done a few more on top. Here's a diff and an attached tarball. (I still have to look at Bugdom and Bugdom 2.) > Also, the nanosaur2-desktopicon.png didn't > appear in my xfce's menu; it probably needs to be in 256x256/apps > but I didn't try moving it. > --gkoehler Ah, haven't noticed since I'm not using a graphical launcher. It could be, however the image should be scaled accordingly. Don't know if it's ok for a port to depend on, say, imagemagick and resize the icons during the build. --- Makefile.orig Thu Jan 18 14:44:43 2024 +++ Makefile Thu Jan 18 14:46:08 2024 @@ -2,10 +2,9 @@ PKGNAME = ${DISTNAME:L} -GH_ACCOUNT = jorio -GH_PROJECT = Nanosaur2 -GH_TAGNAME = v2.1.0 POMME_COMMIT = 6e4ea042ba9e7e525d3930e45662be15605153c4 +DIST_TUPLE = github jorio Nanosaur2 v2.1.0 . +DIST_TUPLE += github jorio Pomme ${POMME_COMMIT} extern/Pomme CATEGORIES = games @@ -18,11 +17,6 @@ WANTLIB += ${COMPILER_LIBCXX} GL SDL2 c m -SITES.p = https://github.com/jorio/Pomme/archive/ - -DISTFILES = ${GH_DISTFILE} -DISTFILES.p = Pomme-{}${POMME_COMMIT}${EXTRACT_SUFX} - # C++20 C17 COMPILER = base-clang ports-gcc @@ -32,9 +26,6 @@ x11/gtk+4,-guic LIB_DEPENDS = devel/sdl2 - -post-extract: - mv ${WRKDIR}/Pomme-${POMME_COMMIT}/* ${WRKSRC}/extern/Pomme/ pre-configure: ${SUBST_CMD} ${WRKSRC}/Source/Boot.cpp