Skip to content

Commit

Permalink
rio: import unfinished
Browse files Browse the repository at this point in the history
  • Loading branch information
0323pin committed Dec 10, 2023
1 parent 50a1787 commit e87b3a9
Show file tree
Hide file tree
Showing 10 changed files with 1,781 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4845,6 +4845,7 @@ SUBDIR+= rhapsody
SUBDIR+= riak
SUBDIR+= riak14
SUBDIR+= ricochet
SUBDIR+= rio
SUBDIR+= ripe-rpsl-objectlibrary
SUBDIR+= ripit
SUBDIR+= ripole
Expand Down
2 changes: 2 additions & 0 deletions rio/DESCR
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Rio is a terminal built to run everywhere, as a native desktop applications by
Rust or even in the browser powered by WebAssembly.
54 changes: 54 additions & 0 deletions rio/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# $NetBSD$

DISTNAME= rio-0.0.30
CATEGORIES= x11
MASTER_SITES= ${MASTER_SITE_GITHUB:=raphamorim/}
GITHUB_TAG= v${PKGVERSION_NOREV}

MAINTAINER= [email protected]
HOMEPAGE= https://raphamorim.io/rio/
COMMENT= Hardware-accelerated GPU terminal emulator
LICENSE= mit

TOOL_DEPENDS+= cmake-[0-9]*:../../devel/cmake

.include "cargo-depends.mk"

USE_LANGUAGES+= c c++
USE_TOOLS+= gmake pkg-config

.include "../../mk/bsd.prefs.mk"

RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libX11}/lib
RUSTFLAGS+= -C link-arg=-L${BUILDLINK_PREFIX.libX11}/lib
.if ${OPSYS} != "Darwin"
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.libxcb}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.fontconfig}/lib
RUSTFLAGS+= -C link-arg=${COMPILER_RPATH_FLAG}${BUILDLINK_PREFIX.freetype2}/lib
.endif

.if ${OPSYS} == "NetBSD" && exists(${X11BASE}/lib/X11/locale/lib/common/xlcUTF8Load.so)
# This works around XIM errors when RTLD local-binding libX11.
# See x11/alacritty for details.
SUBST_CLASSES+= rtld
SUBST_MESSAGE.rtld= amend RTLD_GLOBAL
SUBST_STAGE.rtld= pre-configure
SUBST_FILES.rtld= ../vendor/x11-dl-*/src/link.rs
SUBST_SED.rtld= -e 's,libc::RTLD_LAZY,& | libc::RTLD_GLOBAL,g'
.endif

INSTALLATION_DIRS= bin

do-install:
${INSTALL_PROGRAM} ${WRKSRC}/target/release/rio \
${DESTDIR}${PREFIX}/bin

.include "../../lang/rust/cargo.mk"
.include "../../x11/libX11/buildlink3.mk"
.if ${OPSYS} != "Darwin"
.include "../../fonts/fontconfig/buildlink3.mk"
.include "../../graphics/freetype2/buildlink3.mk"
.include "../../x11/libxcb/buildlink3.mk"
.include "../../x11/libxkbcommon/buildlink3.mk"
.endif
.include "../../mk/bsd.pkg.mk"
2 changes: 2 additions & 0 deletions rio/PLIST
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@comment $NetBSD$
bin/rio
1 change: 1 addition & 0 deletions rio/TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
See: https://github.com/raphamorim/rio/issues/376
Loading

0 comments on commit e87b3a9

Please sign in to comment.