Lines 1-9
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= OpenClaw |
3 |
PORTNAME= openclaw |
4 |
DISTVERSION= 1.0-29 |
4 |
DISTVERSION= 1.0-29 |
5 |
DISTVERSIONSUFFIX= -g49c28d9 |
5 |
DISTVERSIONSUFFIX= -g49c28d9 |
6 |
CATEGORIES= games |
6 |
CATEGORIES= games |
7 |
|
7 |
|
8 |
MAINTAINER= greg@unrelenting.technology |
8 |
MAINTAINER= greg@unrelenting.technology |
9 |
COMMENT= Reimplementation of Captain Claw (1997) platformer |
9 |
COMMENT= Reimplementation of Captain Claw (1997) platformer |
Lines 12-50
LICENSE= GPLv3
Link Here
|
12 |
|
12 |
|
13 |
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml |
13 |
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml |
14 |
|
14 |
|
15 |
USES= cmake:outsource compiler:c++11-lang pkgconfig localbase:ldflags |
|
|
16 |
|
17 |
USE_GITHUB= yes |
15 |
USE_GITHUB= yes |
18 |
GH_ACCOUNT= pjasicek |
16 |
GH_ACCOUNT= pjasicek |
|
|
17 |
GH_PROJECT= OpenClaw |
19 |
|
18 |
|
|
|
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 \ |
23 |
bin/clawlauncher \ |
24 |
bin/openclaw |
25 |
PORTDATA= ASSETS.ZIP SAVES.XML clacon.ttf config.xml console02.tga |
22 |
SUB_FILES= pkg-message |
26 |
SUB_FILES= pkg-message |
23 |
DATADIR= ${LOCALBASE}/share/openclaw |
27 |
|
|
|
28 |
post-patch: |
29 |
@${REINPLACE_CMD} '/CMAKE_RUNTIME_OUTPUT_DIRECTORY/d' \ |
30 |
${WRKSRC}/CMakeLists.txt |
31 |
@${REINPLACE_CMD} -e 's|/usr/share/openclaw|${DATADIR}|g' \ |
32 |
${WRKSRC}/Build_Release/clawlauncher \ |
33 |
${WRKSRC}/Build_Release/config_linux_release.xml |
34 |
|
35 |
pre-build: |
36 |
cd ${WRKSRC}/Build_Release; ${CP} config_linux_release.xml config.xml |
24 |
|
37 |
|
25 |
do-install: |
38 |
do-install: |
26 |
${INSTALL} -s ${WRKSRC}/../Build_Release/openclaw \ |
39 |
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/${PORTNAME} \ |
27 |
${STAGEDIR}${PREFIX}/bin/openclaw |
40 |
${STAGEDIR}${PREFIX}/bin |
28 |
${INSTALL} ${WRKSRC}/Build_Release/ClawLauncher.exe \ |
41 |
${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/clawlauncher \ |
29 |
${STAGEDIR}${PREFIX}/bin/ClawLauncher.exe |
42 |
${STAGEDIR}${PREFIX}/bin |
30 |
${SED} -e 's|/usr/share/openclaw|${DATADIR}|g' \ |
43 |
${INSTALL_SCRIPT} ${WRKSRC}/Build_Release/ClawLauncher.exe \ |
31 |
${WRKSRC}/Build_Release/clawlauncher > \ |
44 |
${STAGEDIR}${PREFIX}/bin |
32 |
${WRKSRC}/Build_Release/clawlauncher_freebsd |
45 |
(cd ${WRKSRC}/Build_Release && ${COPYTREE_SHARE} \ |
33 |
${INSTALL} ${WRKSRC}/Build_Release/clawlauncher_freebsd \ |
46 |
"${PORTDATA}" ${STAGEDIR}${DATADIR}) |
34 |
${STAGEDIR}${PREFIX}/bin/clawlauncher |
|
|
35 |
${MKDIR} ${STAGEDIR}${DATADIR} |
36 |
${INSTALL_DATA} ${WRKSRC}/Build_Release/ASSETS.ZIP \ |
37 |
${STAGEDIR}${DATADIR}/ASSETS.ZIP |
38 |
${INSTALL_DATA} ${WRKSRC}/Build_Release/clacon.ttf \ |
39 |
${STAGEDIR}${DATADIR}/clacon.ttf |
40 |
${INSTALL_DATA} ${WRKSRC}/Build_Release/console02.tga \ |
41 |
${STAGEDIR}${DATADIR}/console02.tga |
42 |
${INSTALL_DATA} ${WRKSRC}/Build_Release/SAVES.XML \ |
43 |
${STAGEDIR}${DATADIR}/SAVES.XML |
44 |
${SED} -e 's|/usr/share/openclaw|${DATADIR}|g' \ |
45 |
${WRKSRC}/Build_Release/config_linux_release.xml > \ |
46 |
${WRKSRC}/Build_Release/config_freebsd_release.xml |
47 |
${INSTALL_DATA} ${WRKSRC}/Build_Release/config_freebsd_release.xml \ |
48 |
${STAGEDIR}${DATADIR}/config.xml |
49 |
|
47 |
|
50 |
.include <bsd.port.mk> |
48 |
.include <bsd.port.mk> |