freebsd-ports/devel/ocl-icd/Makefile
Koop Mast 7bc4660db0 Add ocl-icd - OpenCL Installable Client Driver.
This library provides a way that OpenCL programs can open several
ICD's. The Intel (beignet) and AMD/ATI (Clover for Mesa) OpenCL
implimentations will be build as ICD's. This has as benefit
that programs will not link directly against the OpenCL
implimentation but against ocl-icd. The user needs to manualy
install the OpenCL implimentation they want to use.

PR:		181244
Submitted by:	ohartman@zedat.fu-berlin.de
2015-09-17 17:45:21 +00:00

41 lines
912 B
Makefile

# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
PORTNAME= ocl-icd
PORTVERSION= 2.2.7
CATEGORIES= devel
MASTER_SITES= https://forge.imag.fr/frs/download.php/667/
MAINTAINER= ohartman@zedat.fu-berlin.de
COMMENT= OpenCL Installable Client Driver
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= opencl>=0:${PORTSDIR}/devel/opencl
CONFLICTS= freeocl-[0-9]* opencl-icd-[0-9]*
USE_RUBY= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
RUBY_NO_RUN_DEPENDS=yes
USES= gmake libtool pathfix
INSTALL_TARGET= install-strip
CONFIGURE_ARGS+=--disable-official-khronos-headers
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT=MANPAGES
OPTIONS_SUB= yes
MANPAGES_BUILD_DEPENDS= xmlto:${PORTSDIR}/textproc/xmlto \
asciidoc:${PORTSDIR}/textproc/asciidoc
post-patch:
@${REINPLACE_CMD} -e 's|/etc/|${LOCALBASE}/etc/|g' \
${WRKSRC}/doc/libOpenCL.7.txt
.include <bsd.port.mk>