Skip to content

chris-huxtable/crystal-port

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

64 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Crystal OpenBSD Port

OpenBSD port of crystal; a Ruby-like, statically typed, object oriented, language. This port also includes shards a dependancy manager for Crystal.

Pre-Built:

pkg_add -D unsigned https://github.com/chris-huxtable/crystal-port/releases/download/v0.25.1/crystal-0.25.1.tgz

Setup:

On OpenBSD with ports installed:

cd /usr/ports/lang
git clone https://github.com/bitfliplabs/crystal-port.git crystal
cd crystal

Dependencies:

Easier and faster to add from ports then by compilation:

pkg_add gmake libiconv boehm-gc libevent llvm pcre libyaml bash

Cross Compiling

On MacOS/Linux:

cd root/dir/of/crystal/
make clean && make
.build/crystal build --release --cross-compile --target "amd64-unknown-openbsd6.3" -D i_know_what_im_doing src/compiler/crystal.cr
mv crystal.o crystal-v0.25.1.o
tar -cvf crystal-v0.25.1-object.tar crystal-v0.25.1.o
gzip -9 crystal-v0.25.1-object.tar

Updating Port

make clean=all
make makesum
make
make update-plist
make package

Help: