-
-
Save bdangit/0cc543f03c7bf60b729f650a6001bee6 to your computer and use it in GitHub Desktop.
core/erlang/R16B03-1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pkg_name=erlang | |
pkg_origin=core | |
pkg_version="R16B03-1" | |
pkg_description="A programming language for massively scalable soft real-time systems." | |
pkg_upstream_url="http://www.erlang.org/" | |
pkg_dirname=otp_src_${pkg_version} | |
pkg_license=('Apache-2.0') | |
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>" | |
pkg_source=http://www.erlang.org/download/otp_src_${pkg_version}.tar.gz | |
pkg_filename=otp_src_${pkg_version}.tar.gz | |
pkg_shasum=17ce53459bc5ceb34fc2da412e15ac8c23835a15fbd84e62c8d1852704747ee7 | |
pkg_deps=(core/glibc core/zlib core/ncurses core/openssl core/sed) | |
pkg_build_deps=(core/coreutils core/gcc core/make core/openssl core/perl core/m4) | |
pkg_bin_dirs=(bin) | |
pkg_include_dirs=(include) | |
pkg_lib_dirs=(lib) | |
do_prepare() { | |
# The `/bin/pwd` path is hardcoded, so we'll add a symlink if needed. | |
if [[ ! -r /bin/pwd ]]; then | |
ln -sv "$(pkg_path_for coreutils)/bin/pwd" /bin/pwd | |
_clean_pwd=true | |
fi | |
if [[ ! -r /bin/rm ]]; then | |
ln -sv "$(pkg_path_for coreutils)/bin/rm" /bin/rm | |
_clean_rm=true | |
fi | |
} | |
do_build() { | |
./configure --prefix="${pkg_prefix}" \ | |
--enable-threads \ | |
--enable-smp-support \ | |
--enable-kernel-poll \ | |
--enable-dynamic-ssl-lib \ | |
--enable-shared-zlib \ | |
--enable-hipe \ | |
--with-ssl="$(pkg_path_for openssl)/lib" \ | |
--with-ssl-include="$(pkg_path_for openssl)/include" \ | |
--without-javac | |
make | |
} | |
do_end() { | |
# Clean up the `pwd` link, if we set it up. | |
if [[ -n "$_clean_pwd" ]]; then | |
rm -fv /bin/pwd | |
fi | |
if [[ -n "$_clean_rm" ]]; then | |
rm -fv /bin/rm | |
fi | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment