From 6e746650100c77940add6b6637a8748cf10ce1a8 Mon Sep 17 00:00:00 2001 From: pjotrp Date: Sat, 11 Jun 2016 07:11:17 +0000 Subject: Erlang: took some hints from brew https://github.com/Homebrew/homebrew-core/blob/master/Formula/erlang.rb --- gn/packages/erlang.scm | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gn/packages/erlang.scm b/gn/packages/erlang.scm index 5f72ee7..9141e08 100644 --- a/gn/packages/erlang.scm +++ b/gn/packages/erlang.scm @@ -23,6 +23,7 @@ #:use-module (guix download) #:use-module (guix build-system gnu) #:use-module (gnu packages autotools) + #:use-module (gnu packages gl) #:use-module (gnu packages ncurses) #:use-module (gnu packages perl) #:use-module (gnu packages wxwidgets) @@ -48,16 +49,25 @@ `(("perl" ,perl) ("autoconf" ,autoconf) ("automake" ,automake) - ("wxwidgets" ,wxwidgets) )) ;; Erlang's documentation is distributed in a separate tarball. (inputs `(("ncurses" ,ncurses) + ("mesa" ,mesa) + ("wxwidgets" ,wxwidgets) ("openssl" ,openssl))) + (propagated-inputs + ;; Headers from Mesa and GLU are needed. + `(("glu" ,glu) + ("mesa" ,mesa))) + (arguments `(#:configure-flags - (list "--disable-saved-compile-time" (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl"))) + (list "--disable-saved-compile-time" "--enable-wx" "--enable-native-libs" + "--enable-threads" "--enable-dynamic-ssl-lib" "--enable-shared-zlib" + "--enable-smp-support" + (string-append "--with-ssl=" (assoc-ref %build-inputs "openssl"))) #:phases (modify-phases %standard-phases (add-before 'configure 'autoconf -- cgit v1.2.3