opnsense-ports/devel/clinfo/Makefile
Franco Fichtner d543c3ab93 */*: sync with upstream
Taken from: FreeBSD
2016-04-02 16:03:17 +02:00

34 lines
819 B
Makefile

# 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:devel/opencl
LIB_DEPENDS= libOpenCL.so: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>