项目作者: chris-huxtable

项目描述 :
OpenBSD port of crystal
高级语言: Makefile
项目地址: git://github.com/chris-huxtable/crystal-port.git
创建时间: 2017-09-10T20:56:42Z
项目社区:https://github.com/chris-huxtable/crystal-port

开源协议:

下载


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:

  1. 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:

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

Dependencies:

Easier and faster to add from ports then by compilation:

  1. pkg_add gmake libiconv boehm-gc libevent llvm pcre libyaml bash

Cross Compiling

On MacOS/Linux:

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

Updating Port

  1. make clean=all
  2. make makesum
  3. make
  4. make update-plist
  5. make package

Help: