From owner-freebsd-ports@freebsd.org  Thu Jun 23 22:41:41 2016
Return-Path: <owner-freebsd-ports@freebsd.org>
Delivered-To: freebsd-ports@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id E26F2B73267
 for <freebsd-ports@mailman.ysv.freebsd.org>;
 Thu, 23 Jun 2016 22:41:41 +0000 (UTC)
 (envelope-from jbeich@vfemail.net)
Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3])
 by mx1.freebsd.org (Postfix) with ESMTP id C63BF1484
 for <freebsd-ports@freebsd.org>; Thu, 23 Jun 2016 22:41:41 +0000 (UTC)
 (envelope-from jbeich@vfemail.net)
Received: by mailman.ysv.freebsd.org (Postfix)
 id C5733B73266; Thu, 23 Jun 2016 22:41:41 +0000 (UTC)
Delivered-To: ports@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id C51CAB73265
 for <ports@mailman.ysv.freebsd.org>; Thu, 23 Jun 2016 22:41:41 +0000 (UTC)
 (envelope-from jbeich@vfemail.net)
Received: from vfemail.net (onethreetwo.vfemail.net [199.16.11.132])
 (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits))
 (Client did not present a certificate)
 by mx1.freebsd.org (Postfix) with ESMTPS id 678F81483
 for <ports@freebsd.org>; Thu, 23 Jun 2016 22:41:40 +0000 (UTC)
 (envelope-from jbeich@vfemail.net)
Received: (qmail 30423 invoked by uid 89); 23 Jun 2016 22:41:34 -0000
Received: from localhost (HELO freequeue.vfemail.net) (127.0.0.1)
 by localhost with (DHE-RSA-AES256-SHA encrypted) SMTP;
 23 Jun 2016 22:41:33 -0000
Received: (qmail 30407 invoked by uid 89); 23 Jun 2016 22:41:16 -0000
Received: by simscan 1.3.1 ppid: 30398, pid: 30402, t: 0.0048s scanners:none
Received: from unknown (HELO smtp102-2.vfemail.net) (172.16.100.62)
 by FreeQueue with SMTP; 23 Jun 2016 22:41:16 -0000
Received: (qmail 4346 invoked by uid 89); 23 Jun 2016 22:41:16 -0000
Received: by simscan 1.4.0 ppid: 4328, pid: 4342, t: 0.5527s scanners:none
Received: from unknown (HELO nil) (amJlaWNoQHZmZW1haWwubmV0@172.16.100.27)
 by mail.vfemail.net with ESMTPA; 23 Jun 2016 22:41:15 -0000
From: Jan Beich <jbeich@vfemail.net>
To: Torsten Zuehlsdorff <tz@FreeBSD.org>
Cc: Raymond Cheung <korekontakt@gmail.com>, ports@freebsd.org,
 Kurt Jaeger <lists@opsec.eu>
Subject: Torch7 ports (Was: Wxlua / Zbstudio)
References: <CAFGnCTa_kmYuK6_pmx0eksV+X5fazF04dgaH=fGZXUeJWzdy7Q@mail.gmail.com>
 <CAFGnCTY2z2PFSHkvC_aOQ0HqmP3cibD95hndXQD2yqoSHPjUMQ@mail.gmail.com>
 <20160609190710.GT41922@home.opsec.eu>
 <CAFGnCTaYVBmZ-y-AfhMF0mtY1NrKioP0s=3Dmo7aftkiabnXnA@mail.gmail.com>
 <9f300278-31ab-bc50-1fc7-8e7e6dc44215@toco-domains.de>
 <CAFGnCTYe13XHjM1-sEHKUpopy_k_ZyXRd+k8rFUX5VkHDXuKYA@mail.gmail.com>
 <d29c29f2-1ab4-53a5-c571-dc1296e287df@toco-domains.de>
 <CAFGnCTZPML32ndHBVNeW+GcecwNFCZon7qt1sOJLAGz8nObn2w@mail.gmail.com>
 <a097df53-16c4-9ed1-f6d8-cb923edd64c8@FreeBSD.org>
Date: Fri, 24 Jun 2016 00:41:07 +0200
In-Reply-To: <a097df53-16c4-9ed1-f6d8-cb923edd64c8@FreeBSD.org> (Torsten
 Zuehlsdorff's message of "Thu, 23 Jun 2016 18:44:56 +0200")
Message-ID: <8txv-34vw-wny_-_@vfemail.net>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha512; protocol="application/pgp-signature"
X-BeenThere: freebsd-ports@freebsd.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Porting software to FreeBSD <freebsd-ports.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ports/>
List-Post: <mailto:freebsd-ports@freebsd.org>
List-Help: <mailto:freebsd-ports-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-ports>,
 <mailto:freebsd-ports-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 23 Jun 2016 22:41:42 -0000

--=-=-=
Content-Type: text/plain

Torsten Zuehlsdorff <tz@FreeBSD.org> writes:

> Hello Raymond,
>
>> OpenBlas (make config; # with OpenMP option), OpenMP, Lapack & ++, GotoBlas
>> are installed. Header files of OpenBlas is also included to
>> $CMAKE_LIBRARY_PATH. However, I still got the same error message, missing
>> lapack.
>
> There are various variables to set to specify where to look vor the
> libs, like lapack.
>
> Sadly i'm out of time. Tomorrow i'm heading into vacation. When back i
> will come back to your request and try to create a port for
> this. Maybe we could success together (with more time).

I did some work in the past on Torch7 ports before losing interest[1].
Check math/TH if you want to see how it detects OpenBLAS (default).

  $ git clone https://github.com/jbeich/freebsd-ports torch-ports
  $ export PORTSDIR=$PWD/torch-ports
  $ cd $PORTSDIR/devel/lua-trepl
  $ make install
  $ th51

--
[1] Many Torch pkgs rely on luarocks to build and resolve dependencies
    and some have a hard dependency on luajit. My approach didn't scale
    as writing such ports often required translating *.rockspec files
    which can quickly grow into maintenance nightmare, so an infra work
    had to be done beforehand.

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQF8BAEBCgBmBQJXbGWDXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXREQjQ0MzY3NEM3RDIzNTc4NkUxNDkyQ0VF
NEM3Nzg4MzQ3OURCRERCAAoJEOTHeINHnb3b0okH/j4G96HL0wz2Ndg46IakFLWk
MNaFjhfnF37M5V3tezmOihZz2tryFu+eeBseRvW+GDJrnPBJPyZip+9fUdZ0LS/o
TF5uss1MaJvXsaKivL48MEDw/aVLO7ht1hOU7o69IXt1g4tlrP6h/i/j7k8ou0ZQ
YfiYqalvDxmPRKw3+AE7iFZHdrgrabSo/OHDHliZDGTkJiUJu9qx6RjxcEaznAur
e5lYsXFAvSOFoPyM1fl0yKFA3XRtf8YYtYs/5d3Wp6j+B/TwAs5QRMLiJudo2/eG
CX64O0cDWUtpGIqRkcSEWksJgqJzKcMYI+j2T6hFeqHBlhdyhZ9LmYK0z9g7LbU=
=Twui
-----END PGP SIGNATURE-----
--=-=-=--