Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Jan 2016 13:52:24 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
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
Message-ID:  <201601291352.u0TDqOXx015133@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 <e196819@hotmail.com>

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 <iblis@hs.ntnu.edu.tw>
+# $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 <bsd.port.pre.mk>
+
+MAKE_ENV+=	prefix=${PREFIX}
+
+.if ${ARCH} == "amd64" || ${ARCH} == "i386"
+PLIST_SUB+=	EXTRA_HEADER=""
+.else
+PLIST_SUB+=	EXTRA_HEADER="@comment "
+.endif
+
+TEST_TARGET=	check
+
+.include <bsd.port.post.mk>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601291352.u0TDqOXx015133>