19cb0dd149
__builtin_bpermd with clang requires POWER7 or later: In file included from CMakeFiles/_pywraps2.dir/s2PYTHON_wrap.cxx:4427: In file included from /usr/local/include/s2/util/coding/coder.h:32: In file included from /usr/local/include/s2/util/coding/varint.h:41: /usr/local/include/s2/util/bits/bits.h:509:19: error: this builtin is only valid on POWER7 or later CPUs uint64 result = __builtin_bpermd(0x3f3e3d3c3b3a3938, temp); But GCC can use __builtin_bpermd without resorting to forcing POWER7.
37 lines
694 B
Makefile
37 lines
694 B
Makefile
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= s2
|
|
PORTVERSION= 0.9.0
|
|
DISTVERSIONPREFIX= v
|
|
CATEGORIES= graphics
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Python binding of S2 Geometry Library
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/../../LICENSE
|
|
|
|
BUILD_DEPENDS= s2>=${PORTVERSION}:graphics/s2 \
|
|
swig:devel/swig
|
|
LIB_DEPENDS= libs2.so:graphics/s2
|
|
|
|
USES= cmake localbase:ldflags python
|
|
|
|
WRKSRC_SUBDIR= src/python
|
|
|
|
GH_ACCOUNT= google
|
|
GH_PROJECT= s2geometry
|
|
USE_GITHUB= yes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH} == powerpc64
|
|
USES+= compiler:gcc-c++11-lib
|
|
.else
|
|
USES+= compiler:c++11-lang
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|