diff --git a/games/rlvm/Makefile b/games/rlvm/Makefile index 425e271a1621..da5f9fe51577 100644 --- a/games/rlvm/Makefile +++ b/games/rlvm/Makefile @@ -1,99 +1,99 @@ PORTNAME= rlvm DISTVERSIONPREFIX= release- DISTVERSION= 0.14-77 DISTVERSIONSUFFIX= -gfabf134a PORTREVISION= 4 CATEGORIES= games MAINTAINER= jbeich@FreeBSD.org COMMENT= RealLive virtual machine clone WWW= http://www.rlvm.net/ LICENSE= GPLv2 GPLv3 MIT LICENSE_COMB= multi BROKEN_FreeBSD_12_powerpc64= fails to link on powerpc64 elfv1: gcn_platform.cc: undefined reference to gcn::Exception::Exception BUILD_DEPENDS= boost-libs>0:devel/boost-libs \ - utf8cpp>0:devel/utf8cpp + utf8cpp>=4.0.0:devel/utf8cpp LIB_DEPENDS= libsndfile.so:audio/libsndfile \ libvorbisfile.so:audio/libvorbis \ libguichan.so:devel/guichan RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu USE_GITHUB= yes GH_ACCOUNT= eglaysher USES= compiler:c++11-lib gl gnome pkgconfig scons sdl USE_GL= glew glu USE_GNOME= gtk20 USE_SDL= image mixer ttf EXCLUDE= GLEW SDL_image SDL_mixer SDL_ttf gmock gtest guichan \ luabind utf8cpp # leaving only pygame, xclannad, *.cpp EXTRACT_AFTER_ARGS=${EXCLUDE:S,^,--exclude vendor/,} LDFLAGS+= -Wl,--as-needed # avoid overlinking (gtk deps) MAKE_ARGS= VERBOSE=1 PORTDOCS= AUTHORS.TXT NEWS.TXT README.md STATUS.TXT notes OPTIONS_DEFINE= DEBUG DOCS NLS TEST OPTIONS_DEFAULT=MONA OPTIONS_MULTI= JAPANESE_FONT OPTIONS_MULTI_JAPANESE_FONT=KOCHI MONA SAZANAMI OPTIONS_SUB= yes JAPANESE_FONT_DESC=msgothic.ttc alternatives with verified metrics (unless --font) KOCHI_DESC= kochi-gothic-subst.ttf from japanese/font-kochi KOCHI_RUN_DEPENDS=${LOCALBASE}/share/fonts/kochi/kochi-gothic-subst.ttf:japanese/font-kochi MONA_DESC= mona.ttf from japanese/font-mona-ttf MONA_RUN_DEPENDS=${LOCALBASE}/share/fonts/mona-ttf/mona.ttf:japanese/font-mona-ttf SAZANAMI_DESC= sazanami-gothic.ttf from japanese/font-sazanami SAZANAMI_RUN_DEPENDS=${LOCALBASE}/share/fonts/sazanami/sazanami-gothic.ttf:japanese/font-sazanami DEBUG_MAKE_ARGS_OFF=--release NLS_USES= gettext NLS_EXTRA_PATCHES_OFF=${FILESDIR}/extra-patch-disable-nls TEST_USES= lua:51 TEST_BUILD_DEPENDS=googletest>=1.7.0:devel/googletest \ luabind>0:devel/luabind TEST_EXTRA_PATCHES_OFF=${FILESDIR}/extra-patch-disable-test post-patch: @${REINPLACE_CMD} -e "s/boost_[^\"]*/:lib&$$'\\\x2e'a/" \ ${WRKSRC}/SConstruct @${REINPLACE_CMD} -e 's,/usr/share,${PREFIX}/share,' \ ${WRKSRC}/src/platforms/gtk/gtk_rlvm_instance.cc @${REINPLACE_CMD} -e 's,/usr/share,${LOCALBASE}/share,' \ -e 's,truetype/ttf-dejavu,dejavu,' \ -e 's,truetype/mona,mona-ttf,' \ -e 's,truetype/,,' \ ${WRKSRC}/src/utilities/find_font_file.cc do-test-TEST-on: (cd ${WRKSRC} && build/${PORTNAME}_unittests) pre-install-TEST-on: do-test-TEST-on do-install: ${INSTALL_PROGRAM} ${WRKSRC}/build/${PORTNAME} \ ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/debian/${PORTNAME}.6 \ ${STAGEDIR}${PREFIX}/share/man/man6 ${INSTALL_DATA} ${WRKSRC}/src/platforms/gtk/${PORTNAME}.desktop \ ${STAGEDIR}${DESKTOPDIR} @(cd ${WRKSRC}/resources && for f in */${PORTNAME}.png; do \ ${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/$${f%/*}x$${f%/*}/apps; \ ${INSTALL_DATA} -v $$f \ ${STAGEDIR}${PREFIX}/share/icons/hicolor/$${f%/*}x$${f%/*}/apps; \ done) post-install-NLS-on: (cd ${WRKSRC}/build/locale && ${COPYTREE_SHARE} \ . ${STAGEDIR}${PREFIX}/share/locale) post-install-DOCS-on: (cd ${WRKSRC} && ${COPYTREE_SHARE} \ "${PORTDOCS:Nnotes}" ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC}/doc && ${COPYTREE_SHARE} \ notes ${STAGEDIR}${DOCSDIR}) .include diff --git a/games/rlvm/files/patch-utf8cpp b/games/rlvm/files/patch-utf8cpp new file mode 100644 index 000000000000..0d12cd2e93d1 --- /dev/null +++ b/games/rlvm/files/patch-utf8cpp @@ -0,0 +1,99 @@ +--- src/long_operations/textout_long_operation.cc.orig 2021-05-27 12:59:29 UTC ++++ src/long_operations/textout_long_operation.cc +@@ -39,7 +39,7 @@ + #include "systems/base/text_page.h" + #include "systems/base/text_system.h" + #include "utilities/exception.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + + // Timing information must stay the same between individual + // TextoutLongOperations. rlBabel compiled games will always display one +--- src/machine/rlvm_instance.cc.orig 2021-05-27 12:59:29 UTC ++++ src/machine/rlvm_instance.cc +@@ -43,7 +43,7 @@ + #include "systems/base/graphics_system.h" + #include "systems/base/system_error.h" + #include "systems/sdl/sdl_system.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + #include "utilities/exception.h" + #include "utilities/file.h" + #include "utilities/find_font_file.h" +--- src/modules/module_sys_save.cc.orig 2021-05-27 12:59:29 UTC ++++ src/modules/module_sys_save.cc +@@ -54,7 +54,7 @@ + #include "systems/base/surface.h" + #include "systems/base/system.h" + #include "libreallive/intmemref.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + + using boost::starts_with; + using boost::ends_with; +--- src/systems/base/text_page.cc.orig 2021-05-27 12:59:29 UTC ++++ src/systems/base/text_page.cc +@@ -35,7 +35,7 @@ + #include "systems/base/system.h" + #include "systems/base/text_system.h" + #include "systems/base/text_window.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + #include "utilities/exception.h" + #include "utilities/string_utilities.h" + +--- src/systems/base/text_system.cc.orig 2021-05-27 12:59:29 UTC ++++ src/systems/base/text_system.cc +@@ -49,7 +49,7 @@ + #include "systems/base/text_key_cursor.h" + #include "systems/base/text_page.h" + #include "systems/base/text_window.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + #include "utilities/exception.h" + #include "utilities/string_utilities.h" + +--- src/systems/base/text_window.cc.orig 2021-05-27 12:59:29 UTC ++++ src/systems/base/text_window.cc +@@ -45,7 +45,7 @@ + #include "systems/base/system_error.h" + #include "systems/base/text_system.h" + #include "systems/base/text_waku.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + #include "utilities/exception.h" + #include "utilities/graphics.h" + #include "utilities/string_utilities.h" +--- src/systems/sdl/sdl_text_window.cc.orig 2021-05-27 12:59:29 UTC ++++ src/systems/sdl/sdl_text_window.cc +@@ -43,7 +43,7 @@ + #include "systems/sdl/sdl_system.h" + #include "systems/sdl/sdl_text_system.h" + #include "systems/sdl/sdl_utils.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + #include "utilities/exception.h" + #include "utilities/string_utilities.h" + +--- src/utilities/string_utilities.cc.orig 2021-05-27 12:59:29 UTC ++++ src/utilities/string_utilities.cc +@@ -31,7 +31,7 @@ + + #include "encodings/codepage.h" + #include "utilities/exception.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + + using std::string; + using std::wstring; +--- test/test_system/test_text_system.cc.orig 2021-05-27 12:59:29 UTC ++++ test/test_system/test_text_system.cc +@@ -33,7 +33,7 @@ + #include "test_system/mock_surface.h" + #include "test_system/mock_text_window.h" + #include "test_system/test_text_window.h" +-#include "utf8cpp/utf8.h" ++#include "utf8.h" + + TestTextSystem::TestTextSystem(System& system, Gameexe& gexe) + : TextSystem(system, gexe) {}