View | Details | Raw Unified | Return to bug 223139 | Differences between
and this patch

Collapse All | Expand All

(-)b/games/openclaw/Makefile (-7 / +34 lines)
Lines 19-30 GH_PROJECT= OpenClaw Link Here
19
USES=		cmake compiler:c++11-lib pkgconfig localbase:ldflags
19
USES=		cmake compiler:c++11-lib pkgconfig localbase:ldflags
20
USE_SDL=	image2 mixer2 ttf2 gfx2
20
USE_SDL=	image2 mixer2 ttf2 gfx2
21
21
22
PLIST_FILES=	bin/ClawLauncher.exe \
22
PLIST_FILES=	bin/openclaw
23
		bin/clawlauncher \
24
		bin/openclaw
25
PORTDATA=	ASSETS.ZIP SAVES.XML clacon.ttf config.xml console02.tga
23
PORTDATA=	ASSETS.ZIP SAVES.XML clacon.ttf config.xml console02.tga
26
SUB_FILES=	pkg-message
24
SUB_FILES=	pkg-message
27
25
26
OPTIONS_DEFINE=	LAUNCHER
27
OPTIONS_DEFAULT=LAUNCHER
28
29
LAUNCHER_DESC=	Install launcher to manage game settings
30
LAUNCHER_USES=	mono
31
LAUNCHER_BUILD_DEPENDS=	convert:graphics/ImageMagick
32
LAUNCHER_LIB_DEPENDS=	libgdiplus.so:x11-toolkits/libgdiplus
33
LAUNCHER_PLIST_FILES=	bin/ClawLauncher.exe bin/clawlauncher
34
LAUNCHER_DESKTOP_ENTRIES=	\
35
		"${GH_PROJECT}" \
36
		"" \
37
		"${PORTNAME}" \
38
		"clawlauncher" \
39
		"Game;ArcadeGame;" \
40
		""
41
28
post-patch:
42
post-patch:
29
	@${REINPLACE_CMD} '/CMAKE_RUNTIME_OUTPUT_DIRECTORY/d' \
43
	@${REINPLACE_CMD} '/CMAKE_RUNTIME_OUTPUT_DIRECTORY/d' \
30
		${WRKSRC}/CMakeLists.txt
44
		${WRKSRC}/CMakeLists.txt
Lines 35-48 post-patch: Link Here
35
pre-build:
49
pre-build:
36
	cd ${WRKSRC}/Build_Release; ${CP} config_linux_release.xml config.xml
50
	cd ${WRKSRC}/Build_Release; ${CP} config_linux_release.xml config.xml
37
51
52
post-build-LAUNCHER-on:
53
	convert -verbose -set filename:size %wx%h \
54
		${WRKSRC}/ClawLauncher/Resources/launcher_icon.ico \
55
		${WRKDIR}/launcher_icon_%\[filename:size].png
56
38
do-install:
57
do-install:
39
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
58
	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \
40
		${STAGEDIR}${PREFIX}/bin
59
		${STAGEDIR}${PREFIX}/bin
41
	${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/clawlauncher \
42
		${STAGEDIR}${PREFIX}/bin
43
	${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/ClawLauncher.exe \
44
		${STAGEDIR}${PREFIX}/bin
45
	(cd ${WRKSRC}/Build_Release && ${COPYTREE_SHARE} \
60
	(cd ${WRKSRC}/Build_Release && ${COPYTREE_SHARE} \
46
		"${PORTDATA}" ${STAGEDIR}${DATADIR})
61
		"${PORTDATA}" ${STAGEDIR}${DATADIR})
47
62
63
do-install-LAUNCHER-on:
64
	${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/ClawLauncher.exe \
65
		${STAGEDIR}${PREFIX}/bin
66
	${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/clawlauncher \
67
		${STAGEDIR}${PREFIX}/bin
68
.for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 192x192 256x256
69
	${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps; \
70
	${INSTALL_DATA} ${WRKDIR}/launcher_icon_${size}.png \
71
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps/${PORTNAME}.png
72
	${ECHO_CMD} share/icons/hicolor/${size}/apps/${PORTNAME}.png >>${TMPPLIST}
73
.endfor
74
48
.include <bsd.port.mk>
75
.include <bsd.port.mk>
(-)b/games/openclaw/files/pkg-message.in (-2 lines)
Lines 4-10 To complete the installation of this port you need to copy the file Link Here
4
"CLAW.REZ" from the original Captain Claw distribution to
4
"CLAW.REZ" from the original Captain Claw distribution to
5
%%DATADIR%%.
5
%%DATADIR%%.
6
6
7
To use clawlauncher (optional), install lang/mono and x11-toolkits/libgdiplus.
8
9
==============================================================================
7
==============================================================================
10
8

Return to bug 223139