aboutsummaryrefslogtreecommitdiffstats
path: root/devel/freeocl/Makefile
blob: a9b032d77fab191d709f6904aca0d8dfcdcb825f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Oliver Hartmann <ohartman@zedat.fu-berlin.de>
# $FreeBSD$

PORTNAME=   freeocl
PORTVERSION=    0.3.6
CATEGORIES= devel
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE}
DISTNAME=   FreeOCL-${PORTVERSION}-src

MAINTAINER= ohartman@zedat.fu-berlin.de
COMMENT=    Free Open Computing Language (OpenCL) implementation for CPU

BUILD_DEPENDS=  ${LOCALBASE}/lib/libatomic_ops.a:${PORTSDIR}/devel/libatomic_ops \
        ${LOCALBASE}/include/CL/opencl.h:${PORTSDIR}/devel/opencl

LICENSE=    LGPL3

WRKSRC=     ${WRKDIR}/FreeOCL-${PORTVERSION}-Source

USE_GCC=    4.6+
USE_CMAKE=  yes
USE_LDCONFIG=   yes
CMAKE_BUILD_TYPE=Release

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

.include <bsd.port.pre.mk>
.if ${OSVERSION} < 800000
BROKEN=     this port does not compile at 7.x: "src/program.cpp:531:37: error: 'RTLD_NOLOAD' was not declared in this scope"
.endif
.include <bsd.port.post.mk>