mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-02 06:03:50 +00:00
- Update corsix-th to 0.62
- Chase upstream DATADIR and binary name changes - Add icon and desktop menu entry
This commit is contained in:
parent
d3677c4d7d
commit
9b92523a15
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475116
@ -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 <bsd.port.mk>
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user