svn commit: r475116 - head/games/corsix-th
Guido Falsi
madpilot at FreeBSD.org
Sun Jul 22 18:35:29 UTC 2018
Author: madpilot
Date: Sun Jul 22 18:35:28 2018
New Revision: 475116
URL: https://svnweb.freebsd.org/changeset/ports/475116
Log:
- Update corsix-th to 0.62
- Chase upstream DATADIR and binary name changes
- Add icon and desktop menu entry
Modified:
head/games/corsix-th/Makefile
head/games/corsix-th/distinfo
head/games/corsix-th/pkg-plist
Modified: head/games/corsix-th/Makefile
==============================================================================
--- head/games/corsix-th/Makefile Sun Jul 22 18:30:29 2018 (r475115)
+++ head/games/corsix-th/Makefile Sun Jul 22 18:35:28 2018 (r475116)
@@ -2,9 +2,8 @@
# $FreeBSD$
PORTNAME= corsixth
-PORTVERSION= 0.61
+PORTVERSION= 0.62
DISTVERSIONPREFIX= v
-PORTREVISION= 1
CATEGORIES= games
MAINTAINER= madpilot at 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 <bsd.port.mk>
Modified: head/games/corsix-th/distinfo
==============================================================================
--- head/games/corsix-th/distinfo Sun Jul 22 18:30:29 2018 (r475115)
+++ head/games/corsix-th/distinfo Sun Jul 22 18:35:28 2018 (r475116)
@@ -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
Modified: head/games/corsix-th/pkg-plist
==============================================================================
--- head/games/corsix-th/pkg-plist Sun Jul 22 18:30:29 2018 (r475115)
+++ head/games/corsix-th/pkg-plist Sun Jul 22 18:35:28 2018 (r475116)
@@ -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
More information about the svn-ports-head
mailing list