freebsd-ports/games/openclaw/Makefile
David Naylor 1da3310ac1 lang/mono: update to version 5.2.0.215 (and enhance USES=mono)
Highlights:
 - New Roslyn compiler for C# available
 - Improved support for nuget packages in USES=mono

General:
 - fix pkg-plist: mono now produces '.pdb' debug files instead of '.mdb'
 - bump all dependant ports

USES=mono:
 - properly handle caching of nuget packages
 - add support for multiple feeds for nuget packages
 - add support for nuget dependencies in a separate file
 - add support for paket packages

lang/mono:
 - update to version 5.2.0.215
 - automate certificate initialisation [2]
 - increase test coverage
 - mark as conflicting with net/czmq (conflicting on makecert) [1]
 - patch mono to use $PREFIX/share/mono instead of /usr/share/.mono

devel/google-gdata:
 - use nunit.framework nuget package as the Mono shipped version is no longer suppport.
 - switch to using csc(1) for compiling (mcs(1) is depreciated).
 - use delayed signing (and then sign with sn(1)) as csc(1) does not support signing.
 - fix reference to system assemblies (the '.dll' suffix is required).
 - fix reference to HttpUtility: csc(1) is more strict about scoping

devel/monodevelop:
 - reroll distinfo (no changes to content)

lang/fsharp:
 - reroll distinfo (no changes to content)

security/gnome-keyring-sharp:
 - delay sign (then sign with sn(1)) as csc(1) does not support direct signing.

PR:	223188 [1]
PR:	209670 [2]
Differential Revision:	https://reviews.freebsd.org/D13752
2018-01-30 19:00:27 +00:00

74 lines
2.2 KiB
Makefile

# $FreeBSD$
PORTNAME= OpenClaw
DISTVERSION= 0.0-51
PORTREVISION= 1
DISTVERSIONSUFFIX= -gbac7730
CATEGORIES= games
MAINTAINER= greg@unrelenting.technology
COMMENT= Reimplementation of Captain Claw (1997) platformer
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libtinyxml.so:textproc/tinyxml
USES= cmake:outsource compiler:c++11-lib pkgconfig localbase:ldflags
USE_GITHUB= yes
GH_ACCOUNT= pjasicek
USE_SDL= gfx2 image2 mixer2 ttf2
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_PLIST_FILES= bin/ClawLauncher.exe bin/clawlauncher
LAUNCHER_DESKTOP_ENTRIES= \
"${GH_PROJECT}" \
"" \
"${PORTNAME:tl}" \
"clawlauncher" \
"Game;ArcadeGame;" \
""
post-patch:
@${REINPLACE_CMD} '/CMAKE_RUNTIME_OUTPUT_DIRECTORY/d; s| -O2 -g||' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e 's|/usr/share/openclaw|${DATADIR}|g' \
${WRKSRC}/Build_Release/clawlauncher \
${WRKSRC}/Build_Release/config_linux_release.xml
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:tl} \
${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:tl}.png
@${ECHO_CMD} share/icons/hicolor/${size}/apps/${PORTNAME:tl}.png >> ${TMPPLIST}
.endfor
.include <bsd.port.mk>