Skip to content

Commit

Permalink
- Fix build on pre-10.x by requiring newer compiler
Browse files Browse the repository at this point in the history
- Fix build on i386 by enabling sse support

Submitted by:	pkg-fallout
Approved by:	portmgr blanket
  • Loading branch information
AMDmi3 committed Jun 27, 2015
1 parent 684e11e commit 118b68d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion devel/freeocl/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ CONFLICTS= ocl-icd[0-9]* opencl-icd[0-9]* pocl[0-9]*
WRKSRC= ${WRKDIR}/FreeOCL-${PORTVERSION}-Source

USE_GCC= any
USES= cmake
USES= cmake compiler:c++11-lib
USE_LDCONFIG= yes

CXXFLAGS+= -pthread -std=gnu++0x
CMAKE_ENV+= FREEOCL_CXX_COMPILER="${CXX}"

CFLAGS_i386= -msse

post-patch:
${REINPLACE_CMD} -e 's:%%PREFIX%%:${PREFIX}:g' ${WRKSRC}/src/icd/icd_loader.cpp \
${WRKSRC}/CMakeLists.txt
Expand Down

0 comments on commit 118b68d

Please sign in to comment.