FreeBSD Bugzilla – Attachment 187471 Details for
Bug 223139
New port: games/OpenClaw, reimplementation of Captain Claw (1997) platformer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
improve launcher
launcher_option.diff (text/plain), 3.28 KB, created by
Jan Beich
on 2017-10-25 19:07:42 UTC
(
hide
)
Description:
improve launcher
Filename:
MIME Type:
Creator:
Jan Beich
Created:
2017-10-25 19:07:42 UTC
Size:
3.28 KB
patch
obsolete
>From 2add4b44110cca446c91da0d0bb89716ce14e6c9 Mon Sep 17 00:00:00 2001 >From: nobody <> >Date: Wed, 25 Oct 2017 11:49:57 +0000 >Subject: [PATCH] games/openclaw: improve launcher support > >- Move launcher to a separate option (enabled by default) >- Add .desktop file for DE integration (e.g., app menu) >- Install icons for .desktop file > >PR: 223139 >Submitted by: jbeich >--- > games/openclaw/Makefile | 41 ++++++++++++++++++++++++++++++------- > games/openclaw/files/pkg-message.in | 2 -- > 2 files changed, 34 insertions(+), 9 deletions(-) > >diff --git a/games/openclaw/Makefile b/games/openclaw/Makefile >index 3917cb85b0db..763533332076 100644 >--- a/games/openclaw/Makefile >+++ b/games/openclaw/Makefile >@@ -19,12 +19,26 @@ GH_PROJECT= OpenClaw > USES= cmake compiler:c++11-lib pkgconfig localbase:ldflags > USE_SDL= image2 mixer2 ttf2 gfx2 > >-PLIST_FILES= bin/ClawLauncher.exe \ >- bin/clawlauncher \ >- bin/openclaw >+PLIST_FILES= bin/openclaw > PORTDATA= ASSETS.ZIP SAVES.XML clacon.ttf config.xml console02.tga > SUB_FILES= pkg-message > >+OPTIONS_DEFINE= LAUNCHER >+OPTIONS_DEFAULT=LAUNCHER >+ >+LAUNCHER_DESC= Install launcher to manage game settings >+LAUNCHER_USES= mono >+LAUNCHER_BUILD_DEPENDS= convert:graphics/ImageMagick >+LAUNCHER_LIB_DEPENDS= libgdiplus.so:x11-toolkits/libgdiplus >+LAUNCHER_PLIST_FILES= bin/ClawLauncher.exe bin/clawlauncher >+LAUNCHER_DESKTOP_ENTRIES= \ >+ "${GH_PROJECT}" \ >+ "" \ >+ "${PORTNAME}" \ >+ "clawlauncher" \ >+ "Game;ArcadeGame;" \ >+ "" >+ > post-patch: > @${REINPLACE_CMD} '/CMAKE_RUNTIME_OUTPUT_DIRECTORY/d' \ > ${WRKSRC}/CMakeLists.txt >@@ -35,14 +49,27 @@ post-patch: > pre-build: > cd ${WRKSRC}/Build_Release; ${CP} config_linux_release.xml config.xml > >+post-build-LAUNCHER-on: >+ convert -verbose -set filename:size %wx%h \ >+ ${WRKSRC}/ClawLauncher/Resources/launcher_icon.ico \ >+ ${WRKDIR}/launcher_icon_%\[filename:size].png >+ > do-install: > ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ > ${STAGEDIR}${PREFIX}/bin >- ${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/clawlauncher \ >- ${STAGEDIR}${PREFIX}/bin >- ${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/ClawLauncher.exe \ >- ${STAGEDIR}${PREFIX}/bin > (cd ${WRKSRC}/Build_Release && ${COPYTREE_SHARE} \ > "${PORTDATA}" ${STAGEDIR}${DATADIR}) > >+do-install-LAUNCHER-on: >+ ${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/ClawLauncher.exe \ >+ ${STAGEDIR}${PREFIX}/bin >+ ${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/clawlauncher \ >+ ${STAGEDIR}${PREFIX}/bin >+.for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 192x192 256x256 >+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps >+ ${INSTALL_DATA} ${WRKDIR}/launcher_icon_${size}.png \ >+ ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps/${PORTNAME}.png >+ ${ECHO_CMD} share/icons/hicolor/${size}/apps/${PORTNAME}.png >>${TMPPLIST} >+.endfor >+ > .include <bsd.port.mk> >diff --git a/games/openclaw/files/pkg-message.in b/games/openclaw/files/pkg-message.in >index fc170402a6bd..2cc9425aa01d 100644 >--- a/games/openclaw/files/pkg-message.in >+++ b/games/openclaw/files/pkg-message.in >@@ -4,7 +4,5 @@ To complete the installation of this port you need to copy the file > "CLAW.REZ" from the original Captain Claw distribution to > %%DATADIR%%. > >-To use clawlauncher (optional), install lang/mono and x11-toolkits/libgdiplus. >- > ============================================================================== >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
jbeich
:
maintainer-approval?
(
val
)
Actions:
View
|
Diff
Attachments on
bug 223139
:
187338
|
187461
|
187470
| 187471