1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/graphics/s2/Makefile
Piotr Kubaj 5e82ad37c5 graphics/s2: fix build on powerpc64
Specifically optimize for POWER7 or later:
/wrkdirs/usr/ports/graphics/s2/work/s2geometry-0.9.0/src/s2/util/bits/bits.h:509:19: error: this builtin is only valid on POWER7 or later CPUs
  uint64 result = __builtin_bpermd(0x3f3e3d3c3b3a3938, temp);
2020-10-29 17:28:57 +00:00

45 lines
1.1 KiB
Makefile

# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= s2
PORTVERSION= 0.9.0
DISTVERSIONPREFIX= v
CATEGORIES= graphics
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= S2 Geometry Library
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
LIB_DEPENDS= libgtest.so:devel/googletest
USES= cmake compiler:c++11-lang localbase ssl
CMAKE_ON= BUILD_SHARED_LIBS
GH_ACCOUNT= google
GH_PROJECT= s2geometry
USE_GITHUB= yes
OPTIONS_DEFINE= EXAMPLES GFLAGS GLOG
OPTIONS_DEFAULT=GFLAGS GLOG
#OPTIONS_SUB= yes
GFLAGS_DESC= Use gflags to change command line flags
GLOG_DESC= Use glog for logging
EXAMPLES_CMAKE_BOOL= BUILD_EXAMPLES
GFLAGS_CMAKE_BOOL= WITH_GFLAGS
GFLAGS_LIB_DEPENDS= libgflags.so:devel/gflags
GLOG_CMAKE_BOOL= WITH_GLOG
GLOG_LIB_DEPENDS= libglog.so:devel/glog
CXXFLAGS_powerpc64= -mcpu=power7
post-install-EXAMPLES-on:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/examples/point_index ${INSTALL_WRKSRC}/examples/term_index ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/doc/examples/point_index.cc ${WRKSRC}/doc/examples/term_index.cc ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>