Import xcb-imdkit-1.0.3
xcb-imdkit is an implementation of xim protocol in xcb, comparing with the implementation of IMDkit with Xlib, and xim inside Xlib, it has less memory foot print, better performance, and safer on malformed client. From Yifei Zhan
This commit is contained in:
parent
81324d88d7
commit
ba759af3a6
32
inputmethods/xcb-imdkit/Makefile
Normal file
32
inputmethods/xcb-imdkit/Makefile
Normal file
|
@ -0,0 +1,32 @@
|
|||
COMMENT = implementation of xim protocol in xcb
|
||||
|
||||
DISTNAME = xcb-imdkit-1.0.3
|
||||
|
||||
SHARED_LIBS += xcb-imdkit 0.0 # 0.0
|
||||
|
||||
CATEGORIES = inputmethods
|
||||
|
||||
HOMEPAGE = https://github.com/fcitx/xcb-imdkit
|
||||
|
||||
MAINTAINER = Yifei Zhan <openbsd@zhan.science>
|
||||
|
||||
# LGPL 2.1
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB += xcb xcb-util
|
||||
|
||||
MASTER_SITES = https://download.fcitx-im.org/fcitx5/xcb-imdkit/
|
||||
EXTRACT_SUFX = .tar.xz
|
||||
|
||||
# C11
|
||||
COMPILER = base-clang ports-clang ports-gcc
|
||||
COMPILER_LANGS = c
|
||||
|
||||
MODULES = devel/kf5
|
||||
MODQT5_DEPS = No
|
||||
|
||||
BUILD_DEPENDS = devel/uthash
|
||||
|
||||
CFLAGS += -I${LOCALBASE}/include
|
||||
|
||||
.include <bsd.port.mk>
|
2
inputmethods/xcb-imdkit/distinfo
Normal file
2
inputmethods/xcb-imdkit/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
|||
SHA256 (xcb-imdkit-1.0.3.tar.xz) = CcJibqKfvWqMZQFEyhJre91jZSWLfDlQgCi/3KbcqOg=
|
||||
SIZE (xcb-imdkit-1.0.3.tar.xz) = 346404
|
12
inputmethods/xcb-imdkit/patches/patch-CMakeLists_txt
Normal file
12
inputmethods/xcb-imdkit/patches/patch-CMakeLists_txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: CMakeLists.txt
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -40,8 +40,6 @@ set(CMAKECONFIG_INSTALL_DIR "${CMAKE_INSTALL_LIBDIR}/c
|
||||
|
||||
add_definitions(-D_GNU_SOURCE)
|
||||
set(CMAKE_C_FLAGS "-fPIC -Wall -Wextra -Wno-unused-parameter -fvisibility=hidden ${CMAKE_C_FLAGS}")
|
||||
-set(CMAKE_SHARED_LINKER_FLAGS "-Wl,--as-needed -Wl,--no-undefined ${CMAKE_SHARED_LINKER_FLAGS}")
|
||||
-set(CMAKE_MODULE_LINKER_FLAGS "-Wl,--as-needed ${CMAKE_MODULE_LINKER_FLAGS}")
|
||||
|
||||
find_package(XCB REQUIRED COMPONENTS XCB UTIL KEYSYMS)
|
||||
|
12
inputmethods/xcb-imdkit/patches/patch-src_CMakeLists_txt
Normal file
12
inputmethods/xcb-imdkit/patches/patch-src_CMakeLists_txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
Index: src/CMakeLists.txt
|
||||
--- src/CMakeLists.txt.orig
|
||||
+++ src/CMakeLists.txt
|
||||
@@ -36,8 +36,6 @@ target_include_directories(xcb-imdkit
|
||||
set_target_properties(xcb-imdkit PROPERTIES
|
||||
VERSION ${XCB_IMDKIT_VERSION}
|
||||
SOVERSION ${XCB_IMDKIT_SOVERSION}
|
||||
- C_VISIBILITY_PRESET hidden
|
||||
- LINK_FLAGS "-Wl,--no-undefined"
|
||||
EXPORT_NAME XCBImdkit)
|
||||
|
||||
target_link_libraries(xcb-imdkit
|
4
inputmethods/xcb-imdkit/pkg/DESCR
Normal file
4
inputmethods/xcb-imdkit/pkg/DESCR
Normal file
|
@ -0,0 +1,4 @@
|
|||
xcb-imdkit is an implementation of xim protocol in xcb, comparing
|
||||
with the implementation of IMDkit with Xlib, and xim inside Xlib,
|
||||
it has less memory foot print, better performance, and safer on
|
||||
malformed client.
|
16
inputmethods/xcb-imdkit/pkg/PLIST
Normal file
16
inputmethods/xcb-imdkit/pkg/PLIST
Normal file
|
@ -0,0 +1,16 @@
|
|||
include/xcb-imdkit/
|
||||
include/xcb-imdkit/encoding.h
|
||||
include/xcb-imdkit/imclient.h
|
||||
include/xcb-imdkit/imdkit.h
|
||||
include/xcb-imdkit/xcbimdkit_export.h
|
||||
include/xcb-imdkit/ximcommon.h
|
||||
include/xcb-imdkit/ximproto-gen.h
|
||||
include/xcb-imdkit/ximproto.h
|
||||
lib/cmake/
|
||||
lib/cmake/XCBImdkit/
|
||||
lib/cmake/XCBImdkit/XCBImdkitConfig.cmake
|
||||
lib/cmake/XCBImdkit/XCBImdkitConfigVersion.cmake
|
||||
lib/cmake/XCBImdkit/XCBImdkitLibraryTargets${MODCMAKE_BUILD_SUFFIX}
|
||||
lib/cmake/XCBImdkit/XCBImdkitLibraryTargets.cmake
|
||||
@lib lib/libxcb-imdkit.so.${LIBxcb-imdkit_VERSION}
|
||||
lib/pkgconfig/xcb-imdkit.pc
|
Loading…
Reference in New Issue
Block a user