git: 08d02b280427 - main - games/astromenace: update 1.4.1 → 1.4.2

From: Dmitry Marakasov <amdmi3_at_FreeBSD.org>
Date: Tue, 29 Nov 2022 13:04:25 UTC
The branch main has been updated by amdmi3:

URL: https://cgit.FreeBSD.org/ports/commit/?id=08d02b28042725a9355067a50d1fd6ce0e07b26d

commit 08d02b28042725a9355067a50d1fd6ce0e07b26d
Author:     Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2022-11-29 12:25:24 +0000
Commit:     Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2022-11-29 13:04:17 +0000

    games/astromenace: update 1.4.1 → 1.4.2
---
 games/astromenace/Makefile                   | 22 +++++++---------------
 games/astromenace/distinfo                   |  6 +++---
 games/astromenace/files/patch-CMakeLists.txt | 20 ++++++++++++++++++++
 3 files changed, 30 insertions(+), 18 deletions(-)

diff --git a/games/astromenace/Makefile b/games/astromenace/Makefile
index 9e9b168f09fe..d434f38ab541 100644
--- a/games/astromenace/Makefile
+++ b/games/astromenace/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	astromenace
-PORTVERSION=	1.4.1
-PORTREVISION=	3
+PORTVERSION=	1.4.2
 DISTVERSIONPREFIX=	v
 CATEGORIES=	games
 
@@ -21,11 +20,10 @@ LIB_DEPENDS=	libogg.so:audio/libogg \
 		libvorbisfile.so:audio/libvorbis \
 		libfreetype.so:print/freetype2
 
+USES=		cmake compiler:c++11-lib dos2unix gl openal:al,alut sdl
 USE_GITHUB=	yes
 GH_ACCOUNT=	viewizard
-
-USES=		cmake compiler:c++11-lib dos2unix gl openal:al,alut sdl
-DOS2UNIX_FILES=	CMakeLists.txt src/config/config.cpp
+DOS2UNIX_FILES=	CMakeLists.txt
 USE_GL=		gl glu
 USE_SDL=	sdl2
 CMAKE_ARGS=	-DDATADIR="${DATADIR}"
@@ -36,20 +34,14 @@ PORTDOCS=	*
 
 OPTIONS_DEFINE=	DOCS
 
-do-install:
-	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
-	@${MKDIR} ${STAGEDIR}${DATADIR}
-	${INSTALL_DATA} ${BUILD_WRKSRC}/gamedata.vfs ${STAGEDIR}${DATADIR}/
+post-install:
 .for s in 64 128
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/
-	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}_${s}.png \
-		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/${PORTNAME}.png
+	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}_${s}.png ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/${PORTNAME}.png
 .endfor
-	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.desktop \
-		${STAGEDIR}${PREFIX}/share/applications/
+	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications/
 	@${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata/
-	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.appdata.xml \
-		${STAGEDIR}${PREFIX}/share/appdata/
+	${INSTALL_DATA} ${WRKSRC}/share/${PORTNAME}.appdata.xml ${STAGEDIR}${PREFIX}/share/appdata/
 
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}
diff --git a/games/astromenace/distinfo b/games/astromenace/distinfo
index b2ea190b28e4..63fa38064ca4 100644
--- a/games/astromenace/distinfo
+++ b/games/astromenace/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1556398053
-SHA256 (viewizard-astromenace-v1.4.1_GH0.tar.gz) = 0aca5211c9f333acf698807f597e5ad8e9d1455ba8ad202940890bff5b6c9507
-SIZE (viewizard-astromenace-v1.4.1_GH0.tar.gz) = 68041500
+TIMESTAMP = 1669657628
+SHA256 (viewizard-astromenace-v1.4.2_GH0.tar.gz) = 616622cc1da07a7d827c0fb94b90b7c9a36a1e7d1e68002ed3aaf2a12b9a99aa
+SIZE (viewizard-astromenace-v1.4.2_GH0.tar.gz) = 68061933
diff --git a/games/astromenace/files/patch-CMakeLists.txt b/games/astromenace/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..2c02b47bced5
--- /dev/null
+++ b/games/astromenace/files/patch-CMakeLists.txt
@@ -0,0 +1,20 @@
+--- CMakeLists.txt.orig	2022-11-27 15:27:14 UTC
++++ CMakeLists.txt
+@@ -265,8 +265,9 @@ IF(NOT DONTCREATEVFS)
+     )
+ ENDIF(NOT DONTCREATEVFS)
+ 
++include(GNUInstallDirs)
+ 
+-INSTALL(TARGETS astromenace DESTINATION ${CMAKE_INSTALL_PREFIX})
++INSTALL(TARGETS astromenace)
+ IF(MINGW)
+     INSTALL(FILES "${DEPS_PATH}/bin/SDL2.dll"          DESTINATION ${CMAKE_INSTALL_PREFIX})
+     INSTALL(FILES "${DEPS_PATH}/bin/libalut.dll"       DESTINATION ${CMAKE_INSTALL_PREFIX})
+@@ -277,5 +278,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 ${CMAKE_INSTALL_DATADIR}/astromenace)
+ ENDIF(NOT DONTCREATEVFS)