diff --git a/chinese/librime/Makefile b/chinese/librime/Makefile index aa95aec9862f..7b087b86167a 100644 --- a/chinese/librime/Makefile +++ b/chinese/librime/Makefile @@ -1,38 +1,38 @@ PORTNAME= librime -PORTVERSION= 1.14.0 +DISTVERSION= 1.14.0 +PORTREVISION= 1 CATEGORIES= chinese textproc MAINTAINER= khng@FreeBSD.org COMMENT= Rime Input Method Engine, the core library WWW= https://rime.github.io/ LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE LIB_DEPENDS= libboost_thread.so:devel/boost-libs \ - libcapnp.so:devel/capnproto \ libgflags.so:devel/gflags \ libglog.so:devel/glog \ libleveldb.so:databases/leveldb \ libmarisa.so:devel/marisa-trie \ libopencc.so:chinese/opencc \ - libyaml-cpp.so:devel/yaml-cpp \ + libyaml-cpp.so:devel/yaml-cpp -USES= cmake compiler:c++14-lang gettext perl5 pkgconfig xorg +USES= cmake compiler:c++17-lang perl5 pathfix pkgconfig xorg USE_PERL5= build patch - -CMAKE_OFF= BUILD_TEST - -USE_CXXSTD= c++14 -USE_LDCONFIG= yes USE_XORG= xorgproto +USE_LDCONFIG= yes + USE_GITHUB= yes GH_ACCOUNT= rime -PLIST_SUB= VER=${PORTVERSION} +PLIST_SUB= VER=${DISTVERSION} + +CMAKE_OFF= CMAKE_CXX_EXTENSIONS \ + BUILD_TEST post-patch: @${FIND} ${WRKSRC} \( -name '*.cc' -or -name '*.h' \) \ -exec ${PERL} -i -pe '$$. == 1 && s/^\xef\xbb\xbf//;' {} \; .include diff --git a/chinese/librime/files/patch-CMakeLists.txt b/chinese/librime/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..2f5773dd000c --- /dev/null +++ b/chinese/librime/files/patch-CMakeLists.txt @@ -0,0 +1,15 @@ +--- CMakeLists.txt.orig 2025-11-05 18:57:40 UTC ++++ CMakeLists.txt +@@ -174,9 +174,9 @@ endif() + set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /LARGEADDRESSAWARE") + endif() + +-if(UNIX) +- set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") +-endif() ++#if(UNIX) ++# set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") ++#endif() + + if (NOT CMAKE_BUILD_PARALLEL_LEVEL) + include(ProcessorCount)