In file included from cm_program.cpp:30: In file included from ./cm_device.h:37: In file included from ./cm_array.h:31: ./cm_mem.h:44:9: warning: '__fastcall' macro redefined [-Wmacro-redefined] #define __fastcall ^ /usr/include/sys/cdefs.h:383:9: note: previous definition is here #define __fastcall __attribute__((__fastcall__)) ^ In file included from cm_task.cpp:29: In file included from ./cm_task.h:29: In file included from ./cm_def.h:42: In file included from ./cm_common.h:32: In file included from ./oscl_impl_linux.h:34: ./oscl_platform_def.h:34:9: warning: 'UINT_MAX' macro redefined [-Wmacro-redefined] #define UINT_MAX 0xffffffff ^ /usr/include/sys/limits.h:59:9: note: previous definition is here #define UINT_MAX __UINT_MAX /* max value for an unsigned int */ ^
35 lines
772 B
Makefile
35 lines
772 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= cmrt
|
|
DISTVERSION= 1.0.6
|
|
CATEGORIES= multimedia
|
|
|
|
MAINTAINER= jbeich@FreeBSD.org
|
|
COMMENT= C for Media Runtime
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= Only Intel GPUs on x86 are supported
|
|
|
|
LIB_DEPENDS= libdrm_intel.so:graphics/libdrm \
|
|
libva.so:multimedia/libva
|
|
|
|
USES= autoreconf compiler:c11 libtool pkgconfig
|
|
USE_GITHUB= yes
|
|
USE_LDCONFIG= yes
|
|
GH_ACCOUNT= intel
|
|
GNU_CONFIGURE= yes
|
|
INSTALL_TARGET= install-strip
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e '/-g/d; /-O2/d' \
|
|
${WRKSRC}/src/Makefile.am
|
|
# Silence -Wmacro-redefined
|
|
@${REINPLACE_CMD} -e '/__fastcall/d' \
|
|
${WRKSRC}/src/cm_mem.h
|
|
@${REINPLACE_CMD} -e '/#define UINT_MAX/d' \
|
|
${WRKSRC}/src/oscl_platform_def.h
|
|
|
|
.include <bsd.port.mk>
|