Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Nov 2016 03:58:37 +0000 (UTC)
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r425461 - in head/devel/openmp: . files
Message-ID:  <201611060358.uA63wbGc044607@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jbeich
Date: Sun Nov  6 03:58:37 2016
New Revision: 425461
URL: https://svnweb.freebsd.org/changeset/ports/425461

Log:
  devel/openmp: minor cleanup
  
  - Unbreak on 9.x: needs lang/gcc for <atomic>
  - Define LICENSE_FILE
  - Simplify SOVERSION fix
  - Move ONLY_FOR_ARCHS to be more visible
  - Sort USES
  
  Approved by:	portmgr blanket

Added:
  head/devel/openmp/files/
  head/devel/openmp/files/patch-runtime_src_CMakeLists.txt   (contents, props changed)
Modified:
  head/devel/openmp/Makefile   (contents, props changed)

Modified: head/devel/openmp/Makefile
==============================================================================
--- head/devel/openmp/Makefile	Sun Nov  6 03:51:24 2016	(r425460)
+++ head/devel/openmp/Makefile	Sun Nov  6 03:58:37 2016	(r425461)
@@ -10,22 +10,17 @@ MAINTAINER=	bapt@FreeBSD.org
 COMMENT=	Support for the OpenMP language
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
 
-BROKEN_FreeBSD_9=	does not build
+ONLY_FOR_ARCHS=	amd64 # i386
 
-USES=		tar:xz cmake perl5 compiler:c11
+USES=		cmake compiler:c++11-lib perl5 tar:xz
 USE_PERL5=	build
 USE_LDCONFIG=	yes
-CMAKE_ARGS=	-DLIBOMP_LIBFLAGS:STRING="-Wl,-soname,libomp.so.0"
-ONLY_FOR_ARCHS=	amd64 # i386
 PLIST_FILES=	include/omp.h \
 		lib/libgomp.so \
 		lib/libiomp5.so \
 		lib/libomp.so.0 \
 		lib/libomp.so
 
-post-install:
-	${MV} ${STAGEDIR}${PREFIX}/lib/libomp.so ${STAGEDIR}${PREFIX}/lib/libomp.so.0
-	${LN} -sf libomp.so.0 ${STAGEDIR}${PREFIX}/lib/libomp.so
-
 .include <bsd.port.mk>

Added: head/devel/openmp/files/patch-runtime_src_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/openmp/files/patch-runtime_src_CMakeLists.txt	Sun Nov  6 03:58:37 2016	(r425461)
@@ -0,0 +1,11 @@
+--- runtime/src/CMakeLists.txt.orig	2016-06-28 19:25:13 UTC
++++ runtime/src/CMakeLists.txt
+@@ -235,6 +235,8 @@ if(WIN32)
+       -o ${LIBOMP_LIB_NAME}.def ${CMAKE_CURRENT_SOURCE_DIR}/dllexports
+     DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/dllexports ${LIBOMP_TOOLS_DIR}/generate-def.pl
+   )
++else()
++  set_target_properties(omp PROPERTIES SOVERSION 0)
+ endif()
+ 
+ # Building the Fortran module files



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