|
Lines 1-72
Link Here
|
| 1 |
PORTNAME= OpenClaw |
1 |
PORTNAME= OpenClaw |
| 2 |
DISTVERSION= 0.0-51 |
2 |
DISTVERSION= 0.3-98 |
| 3 |
PORTREVISION= 4 |
3 |
PORTREVISION= 4 |
| 4 |
DISTVERSIONSUFFIX= -gbac7730 |
4 |
DISTVERSIONSUFFIX= -g3586dfa |
| 5 |
CATEGORIES= games |
5 |
CATEGORIES= games |
| 6 |
|
6 |
|
|
|
7 |
PATCH_SITES= https://github.com/unrelentingtech/${GH_PROJECT}/commit/ |
| 8 |
PATCHFILES+= 005aa1d36cae.patch:-p1 # fix running without launcher |
| 9 |
|
| 7 |
MAINTAINER= greg@unrelenting.technology |
10 |
MAINTAINER= greg@unrelenting.technology |
| 8 |
COMMENT= Reimplementation of Captain Claw (1997) platformer |
11 |
COMMENT= Reimplementation of Captain Claw (1997) platformer |
| 9 |
|
12 |
|
| 10 |
LICENSE= GPLv3 |
13 |
LICENSE= GPLv3 |
| 11 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE.txt |
| 12 |
|
15 |
|
| 13 |
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml |
16 |
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml |
| 14 |
|
17 |
|
| 15 |
USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig sdl |
18 |
USES= cmake compiler:c++11-lib localbase:ldflags pkgconfig sdl |
| 16 |
USE_GITHUB= yes |
19 |
USE_GITHUB= yes |
| 17 |
GH_ACCOUNT= pjasicek |
20 |
GH_ACCOUNT= pjasicek |
| 18 |
USE_SDL= gfx2 image2 mixer2 ttf2 |
21 |
USE_SDL= gfx2 image2 mixer2 ttf2 |
| 19 |
|
22 |
|
|
|
23 |
CMAKE_ARGS+= -DDEFAULT_ASSETS_FOLDER=${DATADIR}/ |
| 24 |
|
| 20 |
PLIST_FILES= bin/openclaw |
25 |
PLIST_FILES= bin/openclaw |
| 21 |
PORTDATA= ASSETS.ZIP SAVES.XML clacon.ttf config.xml console02.tga |
26 |
PORTDATA= ASSETS.ZIP SAVES.XML clacon.ttf config.xml console02.tga |
| 22 |
SUB_FILES= pkg-message |
27 |
SUB_FILES= pkg-message |
| 23 |
|
28 |
|
| 24 |
OPTIONS_DEFINE= LAUNCHER |
29 |
OPTIONS_DEFINE= LAUNCHER |
| 25 |
OPTIONS_DEFAULT= LAUNCHER |
30 |
OPTIONS_DEFAULT= LAUNCHER |
| 26 |
|
31 |
|
| 27 |
LAUNCHER_DESC= Install launcher to manage game settings |
32 |
LAUNCHER_DESC= Install launcher to manage game settings |
| 28 |
LAUNCHER_USES= mono |
33 |
LAUNCHER_USES= mono |
| 29 |
LAUNCHER_BUILD_DEPENDS= convert:graphics/ImageMagick6 |
34 |
LAUNCHER_BUILD_DEPENDS= convert:graphics/ImageMagick6 |
| 30 |
LAUNCHER_PLIST_FILES= bin/ClawLauncher.exe bin/clawlauncher |
35 |
LAUNCHER_PLIST_FILES= bin/ClawLauncher.exe bin/clawlauncher |
| 31 |
LAUNCHER_DESKTOP_ENTRIES= \ |
36 |
LAUNCHER_DESKTOP_ENTRIES= \ |
| 32 |
"${GH_PROJECT}" \ |
37 |
"${GH_PROJECT}" \ |
| 33 |
"" \ |
38 |
"" \ |
| 34 |
"${PORTNAME:tl}" \ |
39 |
"${PORTNAME:tl}" \ |
| 35 |
"clawlauncher" \ |
40 |
"clawlauncher" \ |
| 36 |
"Game;ArcadeGame;" \ |
41 |
"Game;ArcadeGame;" \ |
| 37 |
"" |
42 |
"" |
| 38 |
|
43 |
|
| 39 |
post-patch: |
44 |
post-patch: |
| 40 |
@${REINPLACE_CMD} '/CMAKE_RUNTIME_OUTPUT_DIRECTORY/d; s| -O2 -g||' \ |
45 |
@${REINPLACE_CMD} '/CMAKE_RUNTIME_OUTPUT_DIRECTORY/d; s| -O2 -g||' \ |
| 41 |
${WRKSRC}/CMakeLists.txt |
46 |
${WRKSRC}/CMakeLists.txt |
| 42 |
@${REINPLACE_CMD} -e 's|/usr/share/openclaw|${DATADIR}|g' \ |
47 |
@${REINPLACE_CMD} -e 's|/usr/share/openclaw|${DATADIR}|g' \ |
| 43 |
${WRKSRC}/Build_Release/clawlauncher \ |
48 |
${WRKSRC}/Build_Release/clawlauncher \ |
| 44 |
${WRKSRC}/Build_Release/config_linux_release.xml |
49 |
${WRKSRC}/Build_Release/config_linux_release.xml |
| 45 |
|
50 |
|
| 46 |
pre-build: |
51 |
pre-build: |
| 47 |
@cd ${WRKSRC}/Build_Release && ${CP} config_linux_release.xml config.xml |
52 |
@cd ${WRKSRC}/Build_Release && ${CP} config_linux_release.xml config.xml |
| 48 |
|
53 |
|
| 49 |
post-build-LAUNCHER-on: |
54 |
post-build-LAUNCHER-on: |
| 50 |
@convert -verbose -set filename:size %wx%h \ |
55 |
@convert -verbose -set filename:size %wx%h \ |
| 51 |
${WRKSRC}/ClawLauncher/Resources/launcher_icon.ico \ |
56 |
${WRKSRC}/ClawLauncher/Resources/launcher_icon.ico \ |
| 52 |
${WRKDIR}/launcher_icon_%\[filename:size].png |
57 |
${WRKDIR}/launcher_icon_%\[filename:size].png |
| 53 |
|
58 |
|
| 54 |
do-install: |
59 |
do-install: |
| 55 |
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME:tl} \ |
60 |
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME:tl} \ |
| 56 |
${STAGEDIR}${PREFIX}/bin |
61 |
${STAGEDIR}${PREFIX}/bin |
| 57 |
@cd ${WRKSRC}/Build_Release && ${COPYTREE_SHARE} \ |
62 |
@cd ${WRKSRC}/Build_Release && ${COPYTREE_SHARE} \ |
| 58 |
"${PORTDATA}" ${STAGEDIR}${DATADIR} |
63 |
"${PORTDATA}" ${STAGEDIR}${DATADIR} |
| 59 |
|
64 |
|
| 60 |
do-install-LAUNCHER-on: |
65 |
do-install-LAUNCHER-on: |
| 61 |
${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/ClawLauncher.exe \ |
66 |
${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/ClawLauncher.exe \ |
| 62 |
${STAGEDIR}${PREFIX}/bin |
67 |
${STAGEDIR}${PREFIX}/bin |
| 63 |
${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/clawlauncher \ |
68 |
${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/clawlauncher \ |
| 64 |
${STAGEDIR}${PREFIX}/bin |
69 |
${STAGEDIR}${PREFIX}/bin |
| 65 |
.for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 192x192 256x256 |
70 |
.for size in 16x16 24x24 32x32 48x48 64x64 96x96 128x128 192x192 256x256 |
| 66 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps |
71 |
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps |
| 67 |
${INSTALL_DATA} ${WRKDIR}/launcher_icon_${size}.png \ |
72 |
${INSTALL_DATA} ${WRKDIR}/launcher_icon_${size}.png \ |
| 68 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps/${PORTNAME:tl}.png |
73 |
${STAGEDIR}${PREFIX}/share/icons/hicolor/${size}/apps/${PORTNAME:tl}.png |
| 69 |
@${ECHO_CMD} share/icons/hicolor/${size}/apps/${PORTNAME:tl}.png >> ${TMPPLIST} |
74 |
@${ECHO_CMD} share/icons/hicolor/${size}/apps/${PORTNAME:tl}.png >> ${TMPPLIST} |
| 70 |
.endfor |
75 |
.endfor |
| 71 |
|
76 |
|
| 72 |
.include <bsd.port.mk> |
77 |
.include <bsd.port.mk> |