From 9b92523a159bc084711660be8e3a1e12a4a5ab4d Mon Sep 17 00:00:00 2001 From: Guido Falsi Date: Sun, 22 Jul 2018 18:35:28 +0000 Subject: [PATCH] - Update corsix-th to 0.62 - Chase upstream DATADIR and binary name changes - Add icon and desktop menu entry --- games/corsix-th/Makefile | 23 +++++++++++++---------- games/corsix-th/distinfo | 6 +++--- games/corsix-th/pkg-plist | 4 +++- 3 files changed, 19 insertions(+), 14 deletions(-) diff --git a/games/corsix-th/Makefile b/games/corsix-th/Makefile index 8fe7b659e33e..28b797e13f5b 100644 --- a/games/corsix-th/Makefile +++ b/games/corsix-th/Makefile @@ -2,9 +2,8 @@ # $FreeBSD$ PORTNAME= corsixth -PORTVERSION= 0.61 +PORTVERSION= 0.62 DISTVERSIONPREFIX= v -PORTREVISION= 1 CATEGORIES= games MAINTAINER= madpilot@FreeBSD.org @@ -16,13 +15,21 @@ LIB_DEPENDS= libfreetype.so:print/freetype2 RUN_DEPENDS= ${LUA_MODLIBDIR}/lfs.so:devel/luafilesystem \ ${LUA_MODLIBDIR}/lpeg.so:devel/lua-lpeg -USES= cmake compiler:c++11-lib dos2unix iconv lua pkgconfig +USES= cmake compiler:c++11-lib desktop-file-utils dos2unix iconv \ + lua pkgconfig USE_SDL= mixer2 DOS2UNIX_FILES= CMake/FindFFmpeg.cmake \ CorsixTH/CMakeLists.txt \ CorsixTH/Src/iso_fs.cpp CMAKE_ARGS= -DWITH_LUAJIT=OFF CFLAGS+= -I${ICONV_PREFIX}/include +DATADIR= ${PREFIX}/share/corsix-th +DESKTOP_ENTRIES= "CorsixTH" \ + "${COMMENT}" \ + "${PREFIX}/share/pixmaps/corsix-th.png" \ + "${PREFIX}/bin/corsix-th" \ + "Game;" \ + "" USE_GITHUB= yes GH_ACCOUNT= CorsixTH @@ -36,17 +43,13 @@ MOVIES_CMAKE_ON= -DWITH_MOVIES=ON MOVIES_CMAKE_OFF= -DWITH_MOVIES=OFF MOVIES_LIB_DEPENDS= libswresample.so:multimedia/ffmpeg -post-patch: -# Allow the game to find its resources without wrapper scripts - @${REINPLACE_CMD} -e \ - '/return loadfile/s,name,\\"${DATADIR}/\\" .. &,' \ - ${WRKSRC}/CorsixTH/Src/main.cpp - do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/CorsixTH/CorsixTH ${STAGEDIR}${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/CorsixTH/corsix-th ${STAGEDIR}${PREFIX}/bin @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_DATA} ${WRKSRC}/CorsixTH/CorsixTH.lua ${STAGEDIR}${DATADIR} cd ${WRKSRC}/CorsixTH && ${COPYTREE_SHARE} "Bitmap Levels Lua" \ ${STAGEDIR}${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/LDocGen/output/logo.png \ + ${STAGEDIR}${PREFIX}/share/pixmaps/corsix-th.png .include diff --git a/games/corsix-th/distinfo b/games/corsix-th/distinfo index 93be59fe8c02..278d0c9cf70b 100644 --- a/games/corsix-th/distinfo +++ b/games/corsix-th/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1513866855 -SHA256 (CorsixTH-CorsixTH-v0.61_GH0.tar.gz) = b8e19743cd499436dce58af67479997e621fe50e21e31f08f440d2303e11f5d6 -SIZE (CorsixTH-CorsixTH-v0.61_GH0.tar.gz) = 3513104 +TIMESTAMP = 1532275328 +SHA256 (CorsixTH-CorsixTH-v0.62_GH0.tar.gz) = b219270310255493c881a09bb4a5569f34a72cdaf3c3be920c1036a2450317ce +SIZE (CorsixTH-CorsixTH-v0.62_GH0.tar.gz) = 3461932 diff --git a/games/corsix-th/pkg-plist b/games/corsix-th/pkg-plist index 621512103a20..f9981d2602ad 100644 --- a/games/corsix-th/pkg-plist +++ b/games/corsix-th/pkg-plist @@ -1,4 +1,5 @@ -bin/CorsixTH +bin/corsix-th +share/pixmaps/corsix-th.png %%DATADIR%%/Bitmap/aux_ui.dat %%DATADIR%%/Bitmap/aux_ui.spec %%DATADIR%%/Bitmap/aux_ui.tab @@ -69,6 +70,7 @@ bin/CorsixTH %%DATADIR%%/Lua/calls_dispatcher.lua %%DATADIR%%/Lua/class.lua %%DATADIR%%/Lua/config_finder.lua +%%DATADIR%%/Lua/date.lua %%DATADIR%%/Lua/debug_script.lua %%DATADIR%%/Lua/diagnosis/diag_blood_machine.lua %%DATADIR%%/Lua/diagnosis/diag_cardiogram.lua