summaryrefslogtreecommitdiff
path: root/misc/urbit
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2018-06-02 21:05:40 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2018-06-02 21:05:40 +0000
commit976128edd205fbfce68c9f1e03a22766ff8f1e04 (patch)
tree5163e4e6b8f61c4d9e653d22f7b9175297f45b10 /misc/urbit
parentsecurity/vuxml: Document devel/git CVEs (2018-11233 and 2018-11235) (diff)
New port: misc/urbit: Operating function
Diffstat (limited to 'misc/urbit')
-rw-r--r--misc/urbit/Makefile38
-rw-r--r--misc/urbit/distinfo13
-rw-r--r--misc/urbit/files/patch-meson.build28
-rw-r--r--misc/urbit/pkg-descr4
4 files changed, 83 insertions, 0 deletions
diff --git a/misc/urbit/Makefile b/misc/urbit/Makefile
new file mode 100644
index 000000000000..6b8b31bb96e0
--- /dev/null
+++ b/misc/urbit/Makefile
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME= urbit
+DISTVERSIONPREFIX= newmodel-
+DISTVERSION= 0.5.1-232
+DISTVERSIONSUFFIX= -g5164bd0d
+CATEGORIES= misc emulators lang
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Operating function
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BROKEN_i386= __int128 is not supported on this target
+
+BUILD_DEPENDS= re2c:devel/re2c
+LIB_DEPENDS= libcurl.so:ftp/curl \
+ libgmp.so:math/gmp \
+ libh2o.so:www/h2o \
+ libsigsegv.so:devel/libsigsegv \
+ libuv.so:devel/libuv
+
+USES= localbase:ldflags meson ncurses pkgconfig ssl
+USE_GITHUB= yes
+GH_TUPLE= urbit:commonmark-legacy:8555ef1:cmark/subprojects/commonmark-legacy # need the legacy version
+GH_TUPLE+= urbit:ed25519:ba4777a:ed25519/subprojects/ed25519 # not ported
+GH_TUPLE+= urbit:libscrypt:4ebe362:libscrypt/subprojects/libscrypt # https://github.com/urbit/urbit/issues/991
+GH_TUPLE+= urbit:murmur3:001378c:murmur3/subprojects/murmur3
+GH_TUPLE+= urbit:berkeley-softfloat-3:9d43420:softfloat/subprojects/softfloat3 # not ported
+
+PLIST_FILES= bin/urbit
+
+post-install: # https://github.com/urbit/urbit/issues/992
+ @${RM} -r ${STAGEDIR}${PREFIX}/include/*
+ @${RM} ${STAGEDIR}${PREFIX}/lib/*.a
+
+.include <bsd.port.mk>
diff --git a/misc/urbit/distinfo b/misc/urbit/distinfo
new file mode 100644
index 000000000000..e4172f6080ae
--- /dev/null
+++ b/misc/urbit/distinfo
@@ -0,0 +1,13 @@
+TIMESTAMP = 1527968212
+SHA256 (urbit-urbit-newmodel-0.5.1-232-g5164bd0d_GH0.tar.gz) = d718293bfc9884cd6137096ac12864ac87994b062382ddfc53e6cf62e30713eb
+SIZE (urbit-urbit-newmodel-0.5.1-232-g5164bd0d_GH0.tar.gz) = 283760
+SHA256 (urbit-commonmark-legacy-8555ef1_GH0.tar.gz) = 1f77582dcabfe376f4f54bcd46d96e7d794d18c599d260732d5e5a20b2c3a0a0
+SIZE (urbit-commonmark-legacy-8555ef1_GH0.tar.gz) = 210151
+SHA256 (urbit-ed25519-ba4777a_GH0.tar.gz) = ca486bb870b97f9c9d1cc0848599c2765dba442a4030f0bcc4258f4d47de4279
+SIZE (urbit-ed25519-ba4777a_GH0.tar.gz) = 226668
+SHA256 (urbit-libscrypt-4ebe362_GH0.tar.gz) = 36aa12cf8459a10efaa11a4ce296676c4955c59421acdbe1356269e1752b6f26
+SIZE (urbit-libscrypt-4ebe362_GH0.tar.gz) = 19884
+SHA256 (urbit-murmur3-001378c_GH0.tar.gz) = 06ba758fe6485c2bd53e5074ab8011da7472e387a7b643e6f2bc0b647a6f13b1
+SIZE (urbit-murmur3-001378c_GH0.tar.gz) = 40771
+SHA256 (urbit-berkeley-softfloat-3-9d43420_GH0.tar.gz) = ec82cb4b78eabb34aa25cd28f4ae59fbd4969e01ba4e810bf907c9245ca3de84
+SIZE (urbit-berkeley-softfloat-3-9d43420_GH0.tar.gz) = 150252
diff --git a/misc/urbit/files/patch-meson.build b/misc/urbit/files/patch-meson.build
new file mode 100644
index 000000000000..1e2a97a3f3b4
--- /dev/null
+++ b/misc/urbit/files/patch-meson.build
@@ -0,0 +1,28 @@
+--- meson.build.orig 2018-05-29 20:27:08 UTC
++++ meson.build
+@@ -254,12 +254,12 @@ elif osdet == 'darwin'
+
+ os_deps = os_deps + [ncurses_dep]
+
+-elif osdet == 'bsd'
++elif osdet == 'freebsd'
+ conf_data.set('U3_OS_bsd', true)
+
+ pthread_dep = meson.get_compiler('c').find_library('pthread')
+ kvm_dep = meson.get_compiler('c').find_library('kvm')
+- ncurses_dep = dependency('ncurses')
++ ncurses_dep = meson.get_compiler('c').find_library('ncurses')
+ os_deps = os_deps + [kvm_dep, pthread_dep, ncurses_dep]
+ else
+ error('Unsupported OS detected:' + osdet)
+@@ -284,6 +284,10 @@ if osdet == 'darwin'
+ libcrypto = meson.get_compiler('c').find_library('crypto', dirs: [ '/usr/local/opt/openssl/lib/' ])
+ libssl = meson.get_compiler('c').find_library('ssl', dirs: [ '/usr/local/opt/openssl/lib/' ])
+ openssl_dep = declare_dependency(dependencies: [libcrypto, libssl], include_directories: include_directories('/usr/local/opt/openssl/include'))
++elif osdet == 'freebsd'
++ libcrypto = meson.get_compiler('c').find_library('crypto', dirs: [ '/usr/lib/' ])
++ libssl = meson.get_compiler('c').find_library('ssl', dirs: [ '/usr/lib/' ])
++ openssl_dep = declare_dependency(dependencies: [libcrypto, libssl], include_directories: include_directories('/usr/include'))
+ else
+ openssl_dep = dependency('openssl', version: '>=1.0.0')
+ endif
diff --git a/misc/urbit/pkg-descr b/misc/urbit/pkg-descr
new file mode 100644
index 000000000000..9e66155ea509
--- /dev/null
+++ b/misc/urbit/pkg-descr
@@ -0,0 +1,4 @@
+Urbit is a secure peer-to-peer network of personal servers, built on
+a clean-slate system software stack.
+
+WWW: https://urbit.org/