From owner-svn-ports-all@freebsd.org Fri Jan 29 13:52:26 2016 Return-Path: Delivered-To: svn-ports-all@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 A2204A72276; Fri, 29 Jan 2016 13:52:26 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7C5951361; Fri, 29 Jan 2016 13:52:26 +0000 (UTC) (envelope-from lwhsu@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u0TDqPst015141; Fri, 29 Jan 2016 13:52:25 GMT (envelope-from lwhsu@FreeBSD.org) Received: (from lwhsu@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u0TDqOXx015133; Fri, 29 Jan 2016 13:52:24 GMT (envelope-from lwhsu@FreeBSD.org) Message-Id: <201601291352.u0TDqOXx015133@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: lwhsu set sender to lwhsu@FreeBSD.org using -f From: Li-Wen Hsu Date: Fri, 29 Jan 2016 13:52:24 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407468 - in head/math: . openlibm openlibm/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jan 2016 13:52:26 -0000 Author: lwhsu Date: Fri Jan 29 13:52:24 2016 New Revision: 407468 URL: https://svnweb.freebsd.org/changeset/ports/407468 Log: Add openlibm, high quality system independent, portable, open source libm PR: 206676 Submitted by: Iblis Lin Added: head/math/openlibm/ head/math/openlibm/Makefile (contents, props changed) head/math/openlibm/distinfo (contents, props changed) head/math/openlibm/files/ head/math/openlibm/files/patch-Make.inc (contents, props changed) head/math/openlibm/files/patch-Makefile (contents, props changed) head/math/openlibm/pkg-descr (contents, props changed) head/math/openlibm/pkg-message (contents, props changed) head/math/openlibm/pkg-plist (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Fri Jan 29 13:50:41 2016 (r407467) +++ head/math/Makefile Fri Jan 29 13:52:24 2016 (r407468) @@ -399,6 +399,7 @@ SUBDIR += open-axiom SUBDIR += openblas SUBDIR += openfst + SUBDIR += openlibm SUBDIR += orpie SUBDIR += p5-AI-DecisionTree SUBDIR += p5-AI-Genetic Added: head/math/openlibm/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/Makefile Fri Jan 29 13:52:24 2016 (r407468) @@ -0,0 +1,36 @@ +# Created by: Iblis Lin +# $FreeBSD$ + +PORTNAME= openlibm +PORTVERSION= 0.4.1 +DISTVERSIONPREFIX= v +CATEGORIES= math +MASTER_SITES= GH + +MAINTAINER= iblis@hs.ntnu.edu.tw +COMMENT= High quality system independent, portable, open source libm + +LICENSE= MIT ISCL BSD2CLAUSE +LICENSE_COMB= multi +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +USE_GITHUB= yes +GH_ACCOUNT= JuliaLang +GH_PROJECT= openlibm + +USES= gmake +USE_LDCONFIG= yes + +.include + +MAKE_ENV+= prefix=${PREFIX} + +.if ${ARCH} == "amd64" || ${ARCH} == "i386" +PLIST_SUB+= EXTRA_HEADER="" +.else +PLIST_SUB+= EXTRA_HEADER="@comment " +.endif + +TEST_TARGET= check + +.include Added: head/math/openlibm/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/distinfo Fri Jan 29 13:52:24 2016 (r407468) @@ -0,0 +1,2 @@ +SHA256 (JuliaLang-openlibm-v0.4.1_GH0.tar.gz) = d6269849348027b0a02ef5f7707968185017b4bb9607acd2fd7348ba28c69833 +SIZE (JuliaLang-openlibm-v0.4.1_GH0.tar.gz) = 277924 Added: head/math/openlibm/files/patch-Make.inc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/files/patch-Make.inc Fri Jan 29 13:52:24 2016 (r407468) @@ -0,0 +1,41 @@ +--- Make.inc.orig 2014-12-01 13:10:35 UTC ++++ Make.inc +@@ -7,11 +7,17 @@ VERSION = 0.4 + SOMAJOR = 1 + SOMINOR = 0 + DESTDIR = +-prefix = /usr/local ++prefix ?= /usr/local + bindir = $(prefix)/bin + libdir = $(prefix)/lib + includedir = $(prefix)/include + ++pkgconfigdir = $(libdir)/pkgconfig ++ ++ifeq ($(OS), FreeBSD) ++pkgconfigdir = $(prefix)/libdata/pkgconfig ++endif ++ + USEGCC = 1 + USECLANG = 0 + +@@ -20,6 +26,11 @@ USEGCC = 0 + USECLANG = 1 + endif + ++ifeq ($(OS), FreeBSD) ++USEGCC = 0 ++USECLANG = 1 ++endif ++ + AR = ar + + ifeq ($(USECLANG),1) +@@ -90,6 +101,7 @@ ifeq ($(OS), FreeBSD) + SHLIB_EXT = so + SONAME_FLAG = -soname + CFLAGS_add+=-fPIC ++libdatadir = $(prefix)/libdata + endif + + ifeq ($(OS), Darwin) Added: head/math/openlibm/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/files/patch-Makefile Fri Jan 29 13:52:24 2016 (r407468) @@ -0,0 +1,42 @@ +--- Makefile.orig 2014-12-01 13:10:35 UTC ++++ Makefile +@@ -37,6 +37,16 @@ else + @-ln -sf libopenlibm.$(SHLIB_EXT).$(SOMAJOR).$(SOMINOR) libopenlibm.$(SHLIB_EXT) + endif + ++check test: test/test-double test/test-float ++ test/test-double ++ test/test-float ++ ++test/test-double: libopenlibm.$(SHLIB_EXT) ++ $(MAKE) -C test test-double ++ ++test/test-float: libopenlibm.$(SHLIB_EXT) ++ $(MAKE) -C test test-float ++ + clean: + @for dir in $(SUBDIRS) .; do \ + rm -fr $$dir/*.o $$dir/*.a $$dir/*.$(SHLIB_EXT)*; \ +@@ -53,15 +63,15 @@ openlibm.pc: openlibm.pc.in Make.inc Mak + + install: all openlibm.pc + mkdir -p $(DESTDIR)$(shlibdir) +- mkdir -p $(DESTDIR)$(libdir)/pkgconfig ++ mkdir -p $(DESTDIR)$(pkgconfigdir) + mkdir -p $(DESTDIR)$(includedir)/openlibm +- cp -a libopenlibm.$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/ +- cp -a libopenlibm.a $(DESTDIR)$(libdir)/ +- cp -a src/openlibm.h $(DESTDIR)$(includedir)/ +- cp -a openlibm.pc $(DESTDIR)$(libdir)/pkgconfig/ ++ ${BSD_INSTALL_LIB} libopenlibm.$(SHLIB_EXT)* $(DESTDIR)$(shlibdir)/ ++ ${BSD_INSTALL_DATA} libopenlibm.a $(DESTDIR)$(libdir)/ ++ ${BSD_INSTALL_DATA} src/openlibm.h $(DESTDIR)$(includedir)/ ++ ${BSD_INSTALL_DATA} openlibm.pc $(DESTDIR)$(pkgconfigdir)/ + ifneq ($(wildcard $(ARCH)/bsd_asm.h),) +- cp -a $(ARCH)/bsd_asm.h $(DESTDIR)$(includedir)/openlibm/ ++ ${BSD_INSTALL_DATA} $(ARCH)/bsd_asm.h $(DESTDIR)$(includedir)/openlibm/ + endif + ifneq ($(wildcard $(ARCH)/bsd_cdefs.h),) +- cp -a $(ARCH)/bsd_cdefs.h $(DESTDIR)$(includedir)/openlibm/ ++ ${BSD_INSTALL_DATA} $(ARCH)/bsd_cdefs.h $(DESTDIR)$(includedir)/openlibm/ + endif Added: head/math/openlibm/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/pkg-descr Fri Jan 29 13:52:24 2016 (r407468) @@ -0,0 +1,9 @@ +OpenLibm is an effort to have a high quality, portable, standalone C +mathematical library (libm). It can be used standalone in applications and +programming language implementations. + +The project was born out of a need to have a good libm for the Julia +programming langage that worked consistently across compilers and operating +systems, and in 32-bit and 64-bit environments. + +WWW: http://julialang.org/openlibm/ Added: head/math/openlibm/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/pkg-message Fri Jan 29 13:52:24 2016 (r407468) @@ -0,0 +1,5 @@ +********************************************************************* +* At this point it is prudent to remind you that OpenLibm is still * +* experimental. There are some test failures. For more information, * +* please checkout https://github.com/julialang/openlibm/issues/10 . * +********************************************************************* Added: head/math/openlibm/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/openlibm/pkg-plist Fri Jan 29 13:52:24 2016 (r407468) @@ -0,0 +1,9 @@ +@comment $FreeBSD$ +include/openlibm.h +%%EXTRA_HEADER%%include/openlibm/bsd_asm.h +%%EXTRA_HEADER%%include/openlibm/bsd_cdefs.h +lib/libopenlibm.a +lib/libopenlibm.so +lib/libopenlibm.so.1 +lib/libopenlibm.so.1.0 +libdata/pkgconfig/openlibm.pc