From: Rafael Sadowski Subject: UPDATE: games/astromenace To: ports@openbsd.org Date: Mon, 20 Oct 2025 13:26:07 +0200 Update astromenace to 1.4.3 to unbreak the port with upcoming cmake4. The game starts fine, that's all I tested. OK? Rafael diff --git a/games/astromenace/Makefile b/games/astromenace/Makefile index 53cd9501ae8..8289c16a5fb 100644 --- a/games/astromenace/Makefile +++ b/games/astromenace/Makefile @@ -1,45 +1,33 @@ -COMMENT = hardcore 3D space shmup -BROKEN-sparc64 = SIGABRT terminate called after throwing an instance of 'std::bad_alloc' -BROKEN-powerpc = SIGABRT terminate called after throwing an instance of 'std::bad_alloc' -BROKEN-powerpc64 = SIGABRT terminate called after throwing an instance of 'std::bad_alloc' +COMMENT = hardcore 3D space shmup -V = 1.3.2 -DISTNAME = astromenace-src-$V -PKGNAME = astromenace-$V -REVISION = 1 +V = 1.4.3 +GH_ACCOUNT = viewizard +GH_PROJECT = astromenace +GH_TAGNAME = v${V} -CATEGORIES = games +CATEGORIES = games -HOMEPAGE = http://www.viewizard.com/ +HOMEPAGE = http://www.viewizard.com/ # code GPLv3+, data a mix of GPLv3+, CC BY-SA 3.0, SIL OFL 1.1 PERMIT_PACKAGE = Yes -WANTLIB += GL GLU ICE SDL SM X11 Xext Xinerama alut c fontconfig -WANTLIB += freetype m ogg openal pthread ${COMPILER_LIBCXX} vorbis vorbisfile +WANTLIB += ${COMPILER_LIBCXX} GL GLU SDL2 alut c freetype m ogg +WANTLIB += openal vorbis vorbisfile -COMPILER = base-clang ports-gcc base-gcc +COMPILER = base-clang ports-gcc base-gcc -SITES = ${SITE_SOURCEFORGE:=openastromenace/} -EXTRACT_SUFX = .tar.bz2 +MODULES = devel/cmake -MODULES = devel/cmake -LIB_DEPENDS = audio/freealut \ - audio/libvorbis \ - audio/openal \ - devel/sdl +LIB_DEPENDS = audio/freealut \ + audio/libvorbis \ + audio/libogg \ + audio/openal \ + devel/sdl2 -CONFIGURE_ARGS += -DDATADIR=${PREFIX}/share/astromenace +CONFIGURE_ARGS = -DCMAKE_POLICY_VERSION_MINIMUM=3.5 \ + -DDATADIR=${LOCALBASE}/share/astromenace NO_TEST = Yes -WRKDIST = ${WRKDIR}/AstroMenace - -do-install: - cd ${WRKSRC} && \ - ${WRKBUILD}/AstroMenace --pack --rawdata=./RAW_VFS_DATA --dir=. - ${INSTALL_PROGRAM} ${WRKBUILD}/AstroMenace ${PREFIX}/bin/astromenace - ${INSTALL_DATA_DIR} ${PREFIX}/share/astromenace/ - ${INSTALL_DATA} ${WRKSRC}/gamedata.vfs ${PREFIX}/share/astromenace/ - .include diff --git a/games/astromenace/distinfo b/games/astromenace/distinfo index b7b950303ae..4d374f64c9e 100644 --- a/games/astromenace/distinfo +++ b/games/astromenace/distinfo @@ -1,2 +1,2 @@ -SHA256 (astromenace-src-1.3.2.tar.bz2) = m3dd8rFXVluXrKAI3YebhnzTN3wHuCnO5rU0Jjk1f+Y= -SIZE (astromenace-src-1.3.2.tar.bz2) = 55390211 +SHA256 (astromenace-1.4.3.tar.gz) = wWtWv6kfCxrBUg0J6tKh+7U2y9PU86eSoiLUS8cI6rE= +SIZE (astromenace-1.4.3.tar.gz) = 67248904 diff --git a/games/astromenace/patches/patch-AstroMenaceSource_config_h b/games/astromenace/patch-AstroMenaceSource_config_h similarity index 100% rename from games/astromenace/patches/patch-AstroMenaceSource_config_h rename to games/astromenace/patch-AstroMenaceSource_config_h diff --git a/games/astromenace/patches/patch-CMakeLists_txt b/games/astromenace/patches/patch-CMakeLists_txt new file mode 100644 index 00000000000..9976181ea51 --- /dev/null +++ b/games/astromenace/patches/patch-CMakeLists_txt @@ -0,0 +1,19 @@ +Index: CMakeLists.txt +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -264,7 +264,7 @@ IF(NOT DONTCREATEVFS) + ENDIF(NOT DONTCREATEVFS) + + +-INSTALL(TARGETS astromenace DESTINATION ${CMAKE_INSTALL_PREFIX}) ++INSTALL(TARGETS astromenace DESTINATION ${CMAKE_INSTALL_PREFIX}/bin) + IF(MINGW) + INSTALL(FILES "${DEPS_PATH}/bin/SDL2.dll" DESTINATION ${CMAKE_INSTALL_PREFIX}) + INSTALL(FILES "${DEPS_PATH}/bin/libalut.dll" DESTINATION ${CMAKE_INSTALL_PREFIX}) +@@ -275,5 +275,5 @@ IF(MINGW) + INSTALL(FILES "${DEPS_PATH}/bin/libfreetype.dll" DESTINATION ${CMAKE_INSTALL_PREFIX}) + ENDIF(MINGW) + IF(NOT DONTCREATEVFS) +- INSTALL(FILES "${PROJECT_BINARY_DIR}/gamedata.vfs" DESTINATION ${CMAKE_INSTALL_PREFIX}) ++ INSTALL(FILES "${PROJECT_BINARY_DIR}/gamedata.vfs" DESTINATION ${DATADIR}) + ENDIF(NOT DONTCREATEVFS)