Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Oct 2019 00:19:52 +0000 (UTC)
From:      Johannes M Dieterich <jmd@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r515074 - in head/math/libpgmath: . files
Message-ID:  <201910210019.x9L0JqoY033644@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jmd
Date: Mon Oct 21 00:19:52 2019
New Revision: 515074
URL: https://svnweb.freebsd.org/changeset/ports/515074

Log:
  math/libpgmath: also set the linux macro

Modified:
  head/math/libpgmath/Makefile
  head/math/libpgmath/files/patch-lib_CMakeLists.txt

Modified: head/math/libpgmath/Makefile
==============================================================================
--- head/math/libpgmath/Makefile	Sun Oct 20 22:04:38 2019	(r515073)
+++ head/math/libpgmath/Makefile	Mon Oct 21 00:19:52 2019	(r515074)
@@ -3,6 +3,7 @@
 
 PORTNAME=	libpgmath
 DISTVERSION=	g20191020
+PORTREVISION=	1
 CATEGORIES=	math
 
 MAINTAINER=	jmd@FreeBSD.org

Modified: head/math/libpgmath/files/patch-lib_CMakeLists.txt
==============================================================================
--- head/math/libpgmath/files/patch-lib_CMakeLists.txt	Sun Oct 20 22:04:38 2019	(r515073)
+++ head/math/libpgmath/files/patch-lib_CMakeLists.txt	Mon Oct 21 00:19:52 2019	(r515074)
@@ -1,4 +1,4 @@
---- lib/CMakeLists.txt.orig	2019-10-20 13:54:36 UTC
+--- lib/CMakeLists.txt.orig	2019-10-09 20:28:35 UTC
 +++ lib/CMakeLists.txt
 @@ -15,6 +15,11 @@
  #
@@ -12,14 +12,19 @@
  set(PROCESSOR ${LIBPGMATH_SYSTEM_PROCESSOR})
  if(${LIBPGMATH_WITH_GENERIC} OR (NOT ${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64|aarch64"))
    set(PROCESSOR "generic")
-@@ -23,6 +28,10 @@ endif()
- find_program(SH_PROGRAM NAMES sh bash)
+@@ -30,13 +35,13 @@ if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64" AND 
+     set(DEFINITIONS_L1
+       HOST_LINUX LINUX LINUX86 LINUX8664 MAXCPUS=256 MAXCPUSL=8 MAXCPUSR=8
+       TARGET_LINUX TARGET_LINUX_X86 TARGET_LINUX_X8664 TARGET_X86 TARGET_X8664
+-      __gnu_linux__ PG_PIC)
++      __gnu_linux__ linux PG_PIC)
+     set(FLAGS_L1 "-m64 -O3 ")
  
- set_property(GLOBAL APPEND PROPERTY "TARGET_OBJECTS")
-+
-+if ("${LIBPGMATH_SYSTEM_NAME}" STREQUAL "FreeBSD")
-+    set(LIBPGMATH_SYSTEM_NAME "Linux")
-+endif ()
+     set(DEFINITIONS_L2
+       LINUX LINUX86 LINUX8664 MAXCPUS=256 MAXCPUSL=8 MAXCPUSR=8 __gnu_linux__
+       TARGET_LINUX TARGET_LINUX_X86 TARGET_LINUX_X8664 TARGET_X86 TARGET_X8664
+-      PG_PIC)
++      linux PG_PIC)
+     set(FLAGS_L2 "-m64 -O3 -mtune=core-avx2 -march=core-avx2 ")
  
- if(${LIBPGMATH_SYSTEM_PROCESSOR} MATCHES "x86_64" AND NOT ${LIBPGMATH_WITH_GENERIC})
-   if(${LIBPGMATH_SYSTEM_NAME} MATCHES "Linux")
+     # common



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