-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
63 lines (48 loc) · 2.49 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# -*- coding: utf-8; mode: tcl; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- vim:fenc=utf-8:ft=tcl:et:sw=2:ts=2:sts=2
PortSystem 1.0
PortGroup sourcehut 1.0
PortGroup compiler_blacklist_versions 1.0
name uxn
sourcehut.setup rabbits uxn 94f6627145ea769fa7500b1851b62580937c51d0
version 20231125
revision 0
categories emulators
license MIT
maintainers nomaintainer
description An assembler and emulator for the Uxn \
stack-machine, written in ANSI C.
long_description Uxn is a virtual machine with 32 instructions. \
This one-page computer is capable of hosting small \
applications, programmable in a unique language. It \
was designed with an implementation-first mindset \
with a focus on creating portable tools and games.
homepage https://100r.co/site/uxn.html
checksums rmd160 fe33e830145b0d61a294870408f8176bd7fec43a \
sha256 781f65e99df521d335fe21d981f916e446071cc74fb9c122fe5b47cbe6889c63 \
size 303478
depends_lib port:libsdl2
patchfiles patch-uxn-build.diff
use_configure no
compiler.blacklist-append \
*gcc* {clang < 500}
configure.cflags-append -std=c89 -D_C99_SOURCE
build.cmd ${worksrcpath}/build.sh
build.args --no-run
build.env CC=${configure.cc} \
"CFLAGS=${configure.cflags} [get_canonical_archflags cc]" \
"LDFLAGS=${configure.ldflags} [get_canonical_archflags ld]"
destroot {
set demos_dir ${destroot}${prefix}/share/examples/${name}/demos
set doc_dir ${destroot}${prefix}/share/doc/${name}
xinstall -d -m 0755 ${demos_dir} ${doc_dir}
xinstall -m 0644 ${build.dir}/bin/launcher.rom ${destroot}${prefix}/share/examples/${name}
xinstall -m 0644 {*}[glob ${worksrcpath}/projects/examples/demos/*.tal] ${demos_dir}
xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${doc_dir}
xinstall -m 0755 ${build.dir}/bin/uxnasm ${build.dir}/bin/uxncli ${build.dir}/bin/uxnemu \
${destroot}${prefix}/bin
}
notes "
To get started, see ${prefix}/share/doc/${name}/README.md and
${prefix}/share/examples/${name}/demos/.
"
livecheck.type none