freebsd-ports/devel/ocl-icd/Makefile
Jan Beich de722a33bf devel/ocl-icd: respect prefix after r435308
$ clinfo
Number of platforms                               1
  Platform Name                                   Intel Gen OCL Driver
  Platform Vendor                                 Intel
  Platform Version                                OpenCL 1.2 beignet 1.2
[...]
$ pkg upgrade -q
$ clinfo
Number of platforms                               0
$ truss clinfo
[...]
open("/etc/OpenCL/vendors",O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC,022) ERR#2 'No such file or directory'
[...]

PR:		216739
Approved by:	portmgr blanket
2017-03-08 06:36:21 +00:00

41 lines
891 B
Makefile

# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$
PORTNAME= ocl-icd
PORTVERSION= 2.2.11
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= https://forge.imag.fr/frs/download.php/${REVID}/
REVID= 814
MAINTAINER= ohartman@zedat.fu-berlin.de
COMMENT= OpenCL Installable Client Driver
LICENSE= BSD2CLAUSE
BUILD_DEPENDS= opencl>=2.1: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 localbase pathfix
INSTALL_TARGET= install-strip
CONFIGURE_ARGS+=--disable-official-khronos-headers \
--enable-custom-vendordir
OPTIONS_DEFINE= MANPAGES
OPTIONS_DEFAULT=MANPAGES
OPTIONS_SUB= yes
MANPAGES_BUILD_DEPENDS= xmlto:textproc/xmlto \
asciidoc:textproc/asciidoc
post-patch:
@${REINPLACE_CMD} -e 's|/etc/|${LOCALBASE}/etc/|g' \
${WRKSRC}/doc/libOpenCL.7.txt.in
.include <bsd.port.mk>