1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-18 19:49:40 +00:00
freebsd-ports/misc/xplr/Makefile
2023-03-16 12:11:52 +01:00

225 lines
5.0 KiB
Makefile

PORTNAME= xplr
DISTVERSIONPREFIX= v
DISTVERSION= 0.20.1
PORTREVISION= 4
CATEGORIES= misc
MAINTAINER= lcook@FreeBSD.org
COMMENT= Hackable, minimal, fast TUI file explorer
WWW= https://xplr.dev
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cargo compiler desktop-file-utils gmake
USE_GITHUB= yes
GH_ACCOUNT= sayanarijit
CARGO_CRATES= aho-corasick-0.7.20 \
android_system_properties-0.1.5 \
anes-0.1.6 \
ansi-to-tui-2.0.0 \
anyhow-1.0.66 \
assert_cmd-2.0.7 \
atty-0.2.14 \
autocfg-1.1.0 \
bitflags-1.3.2 \
bstr-0.2.17 \
bstr-1.0.1 \
bumpalo-3.11.1 \
cassowary-0.3.0 \
cast-0.3.0 \
cc-1.0.77 \
cfg-if-1.0.0 \
chrono-0.4.23 \
ciborium-0.2.0 \
ciborium-io-0.2.0 \
ciborium-ll-0.2.0 \
clap-3.2.23 \
clap_lex-0.2.4 \
codespan-reporting-0.11.1 \
core-foundation-sys-0.8.3 \
criterion-0.4.0 \
criterion-plot-0.5.0 \
crossbeam-channel-0.5.6 \
crossbeam-deque-0.8.2 \
crossbeam-epoch-0.9.13 \
crossbeam-utils-0.8.14 \
crossterm-0.25.0 \
crossterm_winapi-0.9.0 \
cxx-1.0.83 \
cxx-build-1.0.83 \
cxxbridge-flags-1.0.83 \
cxxbridge-macro-1.0.83 \
difflib-0.4.0 \
dirs-4.0.0 \
dirs-sys-0.3.7 \
doc-comment-0.3.3 \
either-1.8.0 \
erased-serde-0.3.23 \
fuzzy-matcher-0.3.7 \
gethostname-0.4.1 \
getrandom-0.2.8 \
half-1.8.2 \
hashbrown-0.12.3 \
hermit-abi-0.1.19 \
humansize-2.1.2 \
iana-time-zone-0.1.53 \
iana-time-zone-haiku-0.1.1 \
indexmap-1.9.2 \
itertools-0.10.5 \
itoa-1.0.4 \
js-sys-0.3.60 \
lazy_static-1.4.0 \
libc-0.2.138 \
libm-0.2.6 \
link-cplusplus-1.0.7 \
lock_api-0.4.9 \
log-0.4.17 \
lua-src-544.0.1 \
luajit-src-210.4.3+resty8384278 \
memchr-2.5.0 \
memoffset-0.7.1 \
mime-0.3.16 \
mime_guess-2.0.4 \
minimal-lexical-0.2.1 \
mio-0.8.5 \
mlua-0.8.6 \
natord-1.0.9 \
nom-7.1.1 \
num-integer-0.1.45 \
num-traits-0.2.15 \
num_cpus-1.14.0 \
once_cell-1.16.0 \
oorandom-11.1.3 \
os_str_bytes-6.4.1 \
parking_lot-0.12.1 \
parking_lot_core-0.9.5 \
path-absolutize-3.0.14 \
path-dedot-3.0.18 \
pkg-config-0.3.26 \
plotters-0.3.4 \
plotters-backend-0.3.4 \
plotters-svg-0.3.3 \
predicates-2.1.4 \
predicates-core-1.0.5 \
predicates-tree-1.0.7 \
proc-macro2-1.0.47 \
quote-1.0.21 \
rayon-1.6.0 \
rayon-core-1.10.1 \
redox_syscall-0.2.16 \
redox_users-0.4.3 \
regex-1.7.0 \
regex-automata-0.1.10 \
regex-syntax-0.6.28 \
rustc-hash-1.1.0 \
ryu-1.0.11 \
same-file-1.0.6 \
scopeguard-1.1.0 \
scratch-1.0.2 \
serde-1.0.148 \
serde_derive-1.0.148 \
serde_json-1.0.89 \
serde_yaml-0.9.14 \
signal-hook-0.3.14 \
signal-hook-mio-0.2.3 \
signal-hook-registry-1.4.0 \
smallvec-1.10.0 \
syn-1.0.105 \
termcolor-1.1.3 \
termtree-0.4.0 \
textwrap-0.16.0 \
thiserror-1.0.37 \
thiserror-impl-1.0.37 \
thread_local-1.1.4 \
time-0.1.45 \
tinytemplate-1.2.1 \
tui-0.19.0 \
tui-input-0.6.1 \
unicase-2.6.0 \
unicode-ident-1.0.5 \
unicode-segmentation-1.10.0 \
unicode-width-0.1.10 \
unsafe-libyaml-0.2.4 \
version_check-0.9.4 \
wait-timeout-0.2.0 \
walkdir-2.3.2 \
wasi-0.10.0+wasi-snapshot-preview1 \
wasi-0.11.0+wasi-snapshot-preview1 \
wasm-bindgen-0.2.83 \
wasm-bindgen-backend-0.2.83 \
wasm-bindgen-macro-0.2.83 \
wasm-bindgen-macro-support-0.2.83 \
wasm-bindgen-shared-0.2.83 \
web-sys-0.3.60 \
which-4.3.0 \
winapi-0.3.9 \
winapi-i686-pc-windows-gnu-0.4.0 \
winapi-util-0.1.5 \
winapi-x86_64-pc-windows-gnu-0.4.0 \
windows-0.43.0 \
windows-sys-0.42.0 \
windows_aarch64_gnullvm-0.42.0 \
windows_aarch64_msvc-0.42.0 \
windows_i686_gnu-0.42.0 \
windows_i686_msvc-0.42.0 \
windows_x86_64_gnu-0.42.0 \
windows_x86_64_gnullvm-0.42.0 \
windows_x86_64_msvc-0.42.0
BINARY_ALIAS= make=gmake
PORTDOCS= CODE_OF_CONDUCT.md README.md RELEASE.md
_EXAMPLES= ${WRKSRC}/src/init.lua
PORTEXAMPLES= ${_EXAMPLES:T}
OPTIONS_DEFINE= DOCS EXAMPLES
_ASSETS= ${WRKSRC}/assets
_ICONS= ${STAGEDIR}${PREFIX}/share/icons/hicolor
.include <bsd.port.options.mk>
.if ${ARCH:Mpowerpc64*}
EXTRA_PATCHES= ${FILESDIR}/extra-patch-Cargo.toml
LIB_DEPENDS= libluajit-5.1.so:lang/luajit-openresty
.endif
.include <bsd.port.pre.mk>
.if ${ARCH} == powerpc && ${COMPILER_VERSION} < 140
BUILD_DEPENDS+= as:devel/binutils
CFLAGS+= -fno-integrated-as
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_DATA} ${_ASSETS}/desktop/${PORTNAME}.desktop \
${STAGEDIR}${PREFIX}/share/applications/${PORTNAME}.desktop
@${MKDIR} ${_ICONS}/scalable/apps
${INSTALL_DATA} ${_ASSETS}/icon/${PORTNAME}.svg \
${_ICONS}/scalable/apps
.for res in 16 32 64 128
@${MKDIR} ${_ICONS}/${res}x${res}/apps
.for icon in ico png
${INSTALL_DATA} ${_ASSETS}/icon/${PORTNAME}${res}.${icon} \
${_ICONS}/${res}x${res}/apps/${PORTNAME}.${icon}
.endfor
.endfor
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && \
${INSTALL_DATA} ${_EXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.post.mk>