aboutsummaryrefslogtreecommitdiff
path: root/devel/clinfo/Makefile
blob: 108983190ba3912e78d3983e8cddeeef9af36eda (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
34
# Created by: Koop Mast <kwm@FreeBSD.org>
# $FreeBSD$

PORTNAME=	clinfo
PORTVERSION=	2.1.16.01.12
CATEGORIES=	devel

MAINTAINER=	x11@FreeBSD.org
COMMENT=	OpenCL info program like glxinfo is for libGL

BUILD_DEPENDS=	${LOCALBASE}/include/CL/opencl.h:${PORTSDIR}/devel/opencl
LIB_DEPENDS=	libOpenCL.so:${PORTSDIR}/devel/ocl-icd

USE_GITHUB=	yes
GH_ACCOUNT=	Oblomov

USES=		gmake
NO_CONFIGURE=	yes
ALL_TARGET=	#
PLIST_FILES=	bin/clinfo \
		man/man1/clinfo.1.gz

BROKEN_FreeBSD_9=	OpenCL is only supported on FreeBSD 10 and newer

post-patch:
	@${REINPLACE_CMD} -e 's|-Wall|-Wall -I${LOCALBASE}/include|g; \
		s|-lOpenCL|-lOpenCL -L${LOCALBASE}/lib|g' \
		${WRKSRC}/Makefile

do-install:
	@${INSTALL_PROGRAM} ${WRKSRC}/clinfo ${STAGEDIR}${PREFIX}/bin/
	@${INSTALL_MAN}	${WRKSRC}/man/clinfo.1 ${STAGEDIR}${PREFIX}/man/man1/

.include <bsd.port.mk>