From owner-svn-ports-all@freebsd.org Mon Apr 4 20:46:24 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 32845B036C0; Mon, 4 Apr 2016 20:46:24 +0000 (UTC) (envelope-from bapt@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 E41E51AF6; Mon, 4 Apr 2016 20:46:23 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u34KkNAN008148; Mon, 4 Apr 2016 20:46:23 GMT (envelope-from bapt@FreeBSD.org) Received: (from bapt@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u34KkMgJ008145; Mon, 4 Apr 2016 20:46:22 GMT (envelope-from bapt@FreeBSD.org) Message-Id: <201604042046.u34KkMgJ008145@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: bapt set sender to bapt@FreeBSD.org using -f From: Baptiste Daroussin Date: Mon, 4 Apr 2016 20:46:22 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r412529 - in head/math/openblas: . 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.21 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: Mon, 04 Apr 2016 20:46:24 -0000 Author: bapt Date: Mon Apr 4 20:46:22 2016 New Revision: 412529 URL: https://svnweb.freebsd.org/changeset/ports/412529 Log: Create a proper library with a SONAME PR: 208472 Submitted by: phd_kimberlite@yahoo.co.jp (maintainer) MFH: 2016Q2 Modified: head/math/openblas/Makefile head/math/openblas/files/patch-Makefile.system head/math/openblas/files/patch-exports+Makefile Modified: head/math/openblas/Makefile ============================================================================== --- head/math/openblas/Makefile Mon Apr 4 19:14:37 2016 (r412528) +++ head/math/openblas/Makefile Mon Apr 4 20:46:22 2016 (r412529) @@ -4,6 +4,7 @@ PORTNAME= openblas PORTVERSION= 0.2.15 DISTVERSIONPREFIX= v +PORTREVISION= 1 PORTEPOCH= 1 CATEGORIES= math MASTER_SITES= GH NL/lapack/timing/:lapack_tmg Modified: head/math/openblas/files/patch-Makefile.system ============================================================================== --- head/math/openblas/files/patch-Makefile.system Mon Apr 4 19:14:37 2016 (r412528) +++ head/math/openblas/files/patch-Makefile.system Mon Apr 4 20:46:22 2016 (r412529) @@ -8,7 +8,25 @@ MD5SUM = md5 -r endif -@@ -1020,15 +1021,6 @@ ifndef LIBSUFFIX +@@ -889,9 +890,17 @@ SYMBOLSUFFIX = + endif + + ifndef LIBNAMESUFFIX ++ifndef SMP + LIBPREFIX = lib$(SYMBOLPREFIX)openblas$(SYMBOLSUFFIX) + else ++LIBPREFIX = lib$(SYMBOLPREFIX)openblasp$(SYMBOLSUFFIX) ++endif ++else ++ifndef SMP + LIBPREFIX = lib$(SYMBOLPREFIX)openblas$(SYMBOLSUFFIX)_$(LIBNAMESUFFIX) ++else ++LIBPREFIX = lib$(SYMBOLPREFIX)openblasp$(SYMBOLSUFFIX)_$(LIBNAMESUFFIX) ++endif + endif + + KERNELDIR = $(TOPDIR)/kernel/$(ARCH) +@@ -1020,24 +1029,8 @@ ifndef LIBSUFFIX LIBSUFFIX = a endif @@ -21,18 +39,19 @@ -LIBNAME_P = $(LIBPREFIX)_$(LIBCORE)p$(REVISION)_p.$(LIBSUFFIX) -endif -else - ifndef SMP +-ifndef SMP LIBNAME = $(LIBPREFIX)$(REVISION).$(LIBSUFFIX) LIBNAME_P = $(LIBPREFIX)$(REVISION)_p.$(LIBSUFFIX) -@@ -1036,7 +1028,6 @@ else - LIBNAME = $(LIBPREFIX)p$(REVISION).$(LIBSUFFIX) - LIBNAME_P = $(LIBPREFIX)p$(REVISION)_p.$(LIBSUFFIX) - endif +-else +-LIBNAME = $(LIBPREFIX)p$(REVISION).$(LIBSUFFIX) +-LIBNAME_P = $(LIBPREFIX)p$(REVISION)_p.$(LIBSUFFIX) -endif - +-endif +- LIBDLLNAME = $(LIBPREFIX).dll -@@ -1067,7 +1058,7 @@ LIB_COMPONENTS = CBLAS + LIBSONAME = $(LIBNAME:.$(LIBSUFFIX)=.so) +@@ -1067,7 +1060,7 @@ LIB_COMPONENTS = CBLAS endif export OSNAME Modified: head/math/openblas/files/patch-exports+Makefile ============================================================================== --- head/math/openblas/files/patch-exports+Makefile Mon Apr 4 19:14:37 2016 (r412528) +++ head/math/openblas/files/patch-exports+Makefile Mon Apr 4 20:46:22 2016 (r412529) @@ -8,3 +8,11 @@ so : ../$(LIBSONAME) ifeq (, $(SYMBOLPREFIX)$(SYMBOLSUFFIX)) +@@ -151,6 +152,7 @@ else + endif + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o ../$(LIBSONAME) \ + -Wl,--whole-archive $< -Wl,--no-whole-archive \ ++ -Wl,-soname,$(LIBPREFIX).so.$(MAJOR_VERSION) \ + $(FEXTRALIB) $(EXTRALIB) + $(CC) $(CFLAGS) $(LDFLAGS) -w -o linktest linktest.c ../$(LIBSONAME) $(FEXTRALIB) && echo OK. + rm -f linktest