1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- Unbreak build on i386

PR:		247631
Submitted by:	wen@(myself)
Approved by:	tota@(maintainer)
This commit is contained in:
Wen Heping 2020-09-26 08:36:54 +00:00
parent 132644ced3
commit 5f11b9367b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550137
2 changed files with 26 additions and 4 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= data.table
DISTVERSION= 1.12.8
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel
DISTNAME= ${PORTNAME}_${DISTVERSION}
@ -13,13 +13,25 @@ COMMENT= Extension of Data.frame
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
BROKEN_i386= unable to load datatable.so
USES= cran:auto-plist,compiles
USES= cran:auto-plist
OPTIONS_DEFINE= OPENMP
OPTIONS_DEFAULT= OPENMP
OPENMP_CONFIGURE_ENABLE= openmp
NO_ARCH_IGNORE= datatable.so
.include <bsd.port.options.mk>
.if ${ARCH} == i386
# See PR 230888 : Missing 64 bit atomic functions for i386
EXTRA_PATCHES= ${FILESDIR}/extra-patch-src_Makevars
USES+= compiler:gcc-c++11-lib
.elif defined(PPC_ABI) && ${PPC_ABI} == ELFv1
USE_GCC= yes
.else
USES+= cran:compiles
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,10 @@
--- src/Makevars.orig 2020-06-28 23:46:07 UTC
+++ src/Makevars
@@ -1,6 +1,6 @@
PKG_CFLAGS = $(SHLIB_OPENMP_CFLAGS)
-PKG_LIBS = $(SHLIB_OPENMP_CFLAGS) -lz
+PKG_LIBS = $(SHLIB_OPENMP_CFLAGS) -lz -latomic
all: $(SHLIB)
mv $(SHLIB) datatable$(SHLIB_EXT)