Index: head/multimedia/Makefile =================================================================== --- head/multimedia/Makefile (revision 483898) +++ head/multimedia/Makefile (revision 483899) @@ -1,484 +1,486 @@ # $FreeBSD$ # COMMENT = Multimedia software SUBDIR += 2mandvd SUBDIR += Bento4 SUBDIR += QtAV SUBDIR += ab25 SUBDIR += abby SUBDIR += acidrip SUBDIR += aegisub SUBDIR += aom SUBDIR += aravis SUBDIR += asdcplib SUBDIR += assimp SUBDIR += atomicparsley SUBDIR += audacious SUBDIR += audacious-gtk3 SUBDIR += audacious-plugins SUBDIR += audacious-plugins-gtk3 SUBDIR += audiopreview SUBDIR += avidemux SUBDIR += avidemux-cli SUBDIR += avidemux-plugins SUBDIR += avidemux-qt4 SUBDIR += avinfo SUBDIR += baka-mplayer SUBDIR += bcmatroska2 SUBDIR += bino SUBDIR += bitstream SUBDIR += blind SUBDIR += bsdbktr_tvtune SUBDIR += camserv SUBDIR += ccextractor SUBDIR += cclive SUBDIR += cheese SUBDIR += chilitags SUBDIR += cinelerra-gg SUBDIR += clipgrab SUBDIR += clive SUBDIR += clutter-gst SUBDIR += clutter-gst3 + SUBDIR += cmrt SUBDIR += cuse4bsd-kmod SUBDIR += cx88 SUBDIR += deforaos-player SUBDIR += devede SUBDIR += din SUBDIR += dirac SUBDIR += dragon SUBDIR += dragon-kde4 SUBDIR += dtv-scan-tables SUBDIR += dumpmpeg SUBDIR += dv2jpg SUBDIR += dv2sub SUBDIR += dvb-apps SUBDIR += dvbcut SUBDIR += dvbsnoop SUBDIR += dvd-slideshow SUBDIR += dvdauthor SUBDIR += dvdid SUBDIR += dvdrip SUBDIR += dvdstyler SUBDIR += dvts SUBDIR += emby-server SUBDIR += emovix SUBDIR += ffdec SUBDIR += ffmpeg SUBDIR += ffmpeg0 SUBDIR += ffmpeg2theora SUBDIR += ffmpegthumbnailer SUBDIR += ffms2 SUBDIR += flvmeta SUBDIR += flvstreamer SUBDIR += flvtool++ SUBDIR += fpc-dts SUBDIR += fpc-libvlc SUBDIR += freevo SUBDIR += fxtv SUBDIR += gaupol SUBDIR += gavl SUBDIR += gcfilms SUBDIR += gdialog SUBDIR += gdvrecv SUBDIR += gmerlin SUBDIR += gmerlin-avdecoder SUBDIR += gmimms SUBDIR += gmp-api SUBDIR += gmtk SUBDIR += gnome-mplayer SUBDIR += gnome-mpv SUBDIR += gnome-subtitles SUBDIR += gpac-libgpac SUBDIR += gpac-mp4box SUBDIR += gpodder SUBDIR += grake SUBDIR += gst123 SUBDIR += gstreamer SUBDIR += gstreamer-ffmpeg SUBDIR += gstreamer-plugins SUBDIR += gstreamer-plugins-all SUBDIR += gstreamer-plugins-annodex SUBDIR += gstreamer-plugins-bad SUBDIR += gstreamer-plugins-buzztard SUBDIR += gstreamer-plugins-bz2 SUBDIR += gstreamer-plugins-core SUBDIR += gstreamer-plugins-dts SUBDIR += gstreamer-plugins-dv SUBDIR += gstreamer-plugins-dvd SUBDIR += gstreamer-plugins-fluendo-mpegdemux SUBDIR += gstreamer-plugins-gnonlin SUBDIR += gstreamer-plugins-good SUBDIR += gstreamer-plugins-mpeg2dec SUBDIR += gstreamer-plugins-mpeg2enc SUBDIR += gstreamer-plugins-resindvd SUBDIR += gstreamer-plugins-schroedinger SUBDIR += gstreamer-plugins-theora SUBDIR += gstreamer-plugins-ugly SUBDIR += gstreamer-plugins-v4l2 SUBDIR += gstreamer-plugins-vdpau SUBDIR += gstreamer-plugins-vp8 SUBDIR += gstreamer-plugins-x264 SUBDIR += gstreamer-plugins-xvid SUBDIR += gstreamer-qt4 SUBDIR += gstreamer1 SUBDIR += gstreamer1-editing-services SUBDIR += gstreamer1-libav SUBDIR += gstreamer1-plugins SUBDIR += gstreamer1-plugins-all SUBDIR += gstreamer1-plugins-aom SUBDIR += gstreamer1-plugins-assrender SUBDIR += gstreamer1-plugins-bad SUBDIR += gstreamer1-plugins-core SUBDIR += gstreamer1-plugins-dash SUBDIR += gstreamer1-plugins-dts SUBDIR += gstreamer1-plugins-dv SUBDIR += gstreamer1-plugins-dvdread SUBDIR += gstreamer1-plugins-gnonlin SUBDIR += gstreamer1-plugins-good SUBDIR += gstreamer1-plugins-hls SUBDIR += gstreamer1-plugins-kate SUBDIR += gstreamer1-plugins-libde265 SUBDIR += gstreamer1-plugins-mpeg2dec SUBDIR += gstreamer1-plugins-mpeg2enc SUBDIR += gstreamer1-plugins-mplex SUBDIR += gstreamer1-plugins-openh264 SUBDIR += gstreamer1-plugins-resindvd SUBDIR += gstreamer1-plugins-rtmp SUBDIR += gstreamer1-plugins-smoothstreaming SUBDIR += gstreamer1-plugins-theora SUBDIR += gstreamer1-plugins-ttml SUBDIR += gstreamer1-plugins-ugly SUBDIR += gstreamer1-plugins-v4l2 SUBDIR += gstreamer1-plugins-vpx SUBDIR += gstreamer1-plugins-x264 SUBDIR += gstreamer1-plugins-x265 SUBDIR += gstreamer1-qt SUBDIR += gstreamer1-rtsp-server SUBDIR += gstreamer1-vaapi SUBDIR += gstreamer1-validate SUBDIR += gstreamermm SUBDIR += gtk-recordmydesktop SUBDIR += gtk-youtube-viewer SUBDIR += gxine SUBDIR += handbrake SUBDIR += harvid SUBDIR += imagination SUBDIR += iriverter SUBDIR += iso2mkv SUBDIR += jmref SUBDIR += k9copy-kde4 SUBDIR += kaffeine SUBDIR += kamoso SUBDIR += kdemultimedia SUBDIR += kdemultimedia-ffmpegthumbs SUBDIR += kdemultimedia-ffmpegthumbs-kde4 SUBDIR += kdemultimedia-kde4 SUBDIR += kdemultimedia-mplayerthumbs-kde4 SUBDIR += kdenlive SUBDIR += kdenlive-kde4 SUBDIR += kf5-kmediaplayer SUBDIR += kissdx SUBDIR += kmplayer-kde4 SUBDIR += kodi SUBDIR += kodi-addon-pvr-hts SUBDIR += kodi-addon-pvr-iptvsimple SUBDIR += kodi-devel SUBDIR += kplayer-kde4 SUBDIR += kvazaar SUBDIR += l-smash SUBDIR += libaacs SUBDIR += libass SUBDIR += libav SUBDIR += libbdplus SUBDIR += libbluray SUBDIR += libcec SUBDIR += libdc1394 SUBDIR += libdca SUBDIR += libdcadec SUBDIR += libde265 SUBDIR += libdv SUBDIR += libdvbcsa SUBDIR += libdvbpsi SUBDIR += libdvdcss SUBDIR += libdvdnav SUBDIR += libdvdread SUBDIR += libfame SUBDIR += libhdhomerun SUBDIR += libkate SUBDIR += libmatroska SUBDIR += libmediaart SUBDIR += libmediainfo SUBDIR += libmpeg2 SUBDIR += libmpeg3 SUBDIR += libmtp SUBDIR += libquicktime SUBDIR += libquicktime-lame SUBDIR += libquvi SUBDIR += libquvi-scripts SUBDIR += libquvi-scripts09 SUBDIR += libquvi09 SUBDIR += librtmp SUBDIR += libsmacker SUBDIR += libtheora SUBDIR += libtuner SUBDIR += libuvc SUBDIR += libv4l SUBDIR += libva SUBDIR += libva-intel-driver + SUBDIR += libva-intel-hybrid-driver SUBDIR += libva-utils SUBDIR += libva-vdpau-driver SUBDIR += libvdpau SUBDIR += libvdpau-va-gl SUBDIR += libvpx SUBDIR += libx264 SUBDIR += libxine SUBDIR += libxspf SUBDIR += libzen SUBDIR += linux-c6-libtheora SUBDIR += linux-c6-libv4l SUBDIR += linux-c7-libtheora SUBDIR += linux-c7-libv4l SUBDIR += linux-tsmuxer SUBDIR += linux_dvbwrapper-kmod SUBDIR += lives SUBDIR += livestreamer SUBDIR += lsdvd SUBDIR += lxdvdrip SUBDIR += m2tstoavi SUBDIR += m2vrequantiser SUBDIR += mediadownloader SUBDIR += mediainfo SUBDIR += mencoder SUBDIR += mimms SUBDIR += minitube SUBDIR += miro SUBDIR += mjpegtools SUBDIR += mjpg-streamer SUBDIR += mkclean SUBDIR += mkvalidator SUBDIR += mkvtoolnix SUBDIR += mkxvcd SUBDIR += mlt SUBDIR += mlt-qt4 SUBDIR += mlt-qt5 SUBDIR += mmpython SUBDIR += mmsclient SUBDIR += mmsrip SUBDIR += motion SUBDIR += mp3cd SUBDIR += mp4v2 SUBDIR += mpc-qt SUBDIR += mpeg2codec SUBDIR += mpeg2play SUBDIR += mpeg4ip SUBDIR += mpeg_encode SUBDIR += mpeg_play SUBDIR += mpeg_stat SUBDIR += mpgtx SUBDIR += mplayer SUBDIR += mplayer-skins SUBDIR += mplex SUBDIR += mps-youtube SUBDIR += mpv SUBDIR += msdl SUBDIR += msopenh264 SUBDIR += mswebrtc SUBDIR += mxflib SUBDIR += mythtv SUBDIR += mythtv-frontend SUBDIR += naludump SUBDIR += nordlicht SUBDIR += nostt SUBDIR += obs-qtwebkit SUBDIR += obs-studio SUBDIR += oggvideotools SUBDIR += ogmrip SUBDIR += ogmtools SUBDIR += omxplayer SUBDIR += openh264 SUBDIR += openquicktime SUBDIR += openshot SUBDIR += oqtencoder SUBDIR += oqtplayer SUBDIR += oscam SUBDIR += p5-Audio-M4P SUBDIR += p5-FFmpeg-Command SUBDIR += p5-FLV-Info SUBDIR += p5-File-Format-RIFF SUBDIR += p5-GStreamer SUBDIR += p5-MP4-Info SUBDIR += p5-Net-UPnP SUBDIR += p5-Subtitles SUBDIR += p5-Umph-Prompt SUBDIR += p5-Video-OpenQuicktime SUBDIR += pHash SUBDIR += phonon SUBDIR += phonon-designerplugin SUBDIR += phonon-gstreamer SUBDIR += phonon-vlc SUBDIR += phonon-xine SUBDIR += photofilmstrip SUBDIR += php-pHash SUBDIR += pitivi SUBDIR += playd SUBDIR += plexmediaserver SUBDIR += plexmediaserver-plexpass SUBDIR += plexwatch SUBDIR += podcastdl SUBDIR += poe SUBDIR += ppm2fli SUBDIR += projectx SUBDIR += ptx-kmod SUBDIR += pwcbsd SUBDIR += pwcview SUBDIR += py-PySceneDetect SUBDIR += py-av SUBDIR += py-cec SUBDIR += py-enzyme SUBDIR += py-flvlib SUBDIR += py-gstreamer SUBDIR += py-gstreamer1 SUBDIR += py-guessit SUBDIR += py-kaa-base SUBDIR += py-kaa-imlib2 SUBDIR += py-kaa-metadata SUBDIR += py-librtmp SUBDIR += py-mido SUBDIR += py-mlt SUBDIR += py-moviepy SUBDIR += py-openlp SUBDIR += py-periscope SUBDIR += py-pretty_midi SUBDIR += py-qt4-multimedia SUBDIR += py-qt4-phonon SUBDIR += py-qt5-multimedia SUBDIR += py-qt5-multimediawidgets SUBDIR += py-soco SUBDIR += py-subliminal SUBDIR += py-tvnamer SUBDIR += pyjama SUBDIR += pymp SUBDIR += qmmp SUBDIR += qmmp-plugin-pack SUBDIR += qmmp-plugin-pack-qt5 SUBDIR += qmmp-qt5 SUBDIR += qt-faststart SUBDIR += qt4-mobility SUBDIR += qt4-multimedia SUBDIR += qt5-multimedia SUBDIR += quark SUBDIR += quodlibet SUBDIR += quvi SUBDIR += quvi09 SUBDIR += rage SUBDIR += recmpeg SUBDIR += recordmydesktop SUBDIR += replex SUBDIR += rox-videothumbnail SUBDIR += rtmpdump SUBDIR += rubygem-av SUBDIR += rubygem-clutter-gstreamer SUBDIR += rubygem-flvtool2 SUBDIR += rubygem-gstreamer SUBDIR += rubygem-paperclip-av-transcoder SUBDIR += rubygem-paperclip-av-transcoder-rails50 SUBDIR += rubygem-streamio-ffmpeg SUBDIR += sabbu SUBDIR += schroedinger SUBDIR += shotcut SUBDIR += simplescreenrecorder SUBDIR += smpeg SUBDIR += smpeg2 SUBDIR += smplayer SUBDIR += smplayer-skins SUBDIR += smplayer-themes SUBDIR += sms1xxx-kmod SUBDIR += smtube SUBDIR += snappy SUBDIR += spigot SUBDIR += spook SUBDIR += subtitlecomposer SUBDIR += subtitlecomposer-kde4 SUBDIR += subtitleeditor SUBDIR += subtitleoffsetmodifier SUBDIR += subtitleripper SUBDIR += subtools SUBDIR += swfdec-gnome SUBDIR += syncplay SUBDIR += szap-s2 SUBDIR += tautulli SUBDIR += tcmplex-panteltje SUBDIR += tivodecode SUBDIR += totem SUBDIR += totem-pl-parser SUBDIR += tovid SUBDIR += transcode SUBDIR += tstools SUBDIR += tvheadend SUBDIR += umph SUBDIR += umplayer SUBDIR += umr SUBDIR += v4l-utils SUBDIR += v4l_compat SUBDIR += vamps SUBDIR += vapoursynth SUBDIR += vapoursynth-l-smash-works SUBDIR += vcdgear SUBDIR += vcdimager SUBDIR += vcdpad SUBDIR += vdpauinfo SUBDIR += vdr SUBDIR += vdr-plugin-control SUBDIR += vdr-plugin-eepg SUBDIR += vdr-plugin-epgsearch SUBDIR += vdr-plugin-extrecmenu SUBDIR += vdr-plugin-femon SUBDIR += vdr-plugin-infosatepg SUBDIR += vdr-plugin-iptv SUBDIR += vdr-plugin-markad SUBDIR += vdr-plugin-osdpip SUBDIR += vdr-plugin-osdteletext SUBDIR += vdr-plugin-reelchannelscan SUBDIR += vdr-plugin-remote SUBDIR += vdr-plugin-skinenigmang SUBDIR += vdr-plugin-sleeptimer SUBDIR += vdr-plugin-softhddevice SUBDIR += vdr-plugin-streamdev SUBDIR += vdr-plugin-ttxtsubs SUBDIR += vdr-plugin-upnp SUBDIR += vdr-plugin-vdrmanager SUBDIR += vdr-plugin-vnsiserver SUBDIR += vdr-plugin-wirbelscan SUBDIR += vdr-plugin-xineliboutput SUBDIR += vdr-plugin-xvdr SUBDIR += vdr-plugins SUBDIR += vid.stab SUBDIR += vlc SUBDIR += vlc-qt4 SUBDIR += vlc3 SUBDIR += vtkmpeg2encode SUBDIR += w_scan SUBDIR += webcamd SUBDIR += webcamoid SUBDIR += webvfx-qt5 SUBDIR += win32-codecs SUBDIR += winff SUBDIR += x264 SUBDIR += x265 SUBDIR += xanim SUBDIR += xawtv SUBDIR += xfce4-parole SUBDIR += xine SUBDIR += xmms SUBDIR += xmms-skins SUBDIR += xmms-skins-huge SUBDIR += xporthdmv SUBDIR += xtheater SUBDIR += xvid SUBDIR += yamdi SUBDIR += zoneminder SUBDIR += zoneminder-h264 .include Index: head/multimedia/cmrt/Makefile =================================================================== --- head/multimedia/cmrt/Makefile (nonexistent) +++ head/multimedia/cmrt/Makefile (revision 483899) @@ -0,0 +1,30 @@ +# $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 + +.include Property changes on: head/multimedia/cmrt/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/cmrt/distinfo =================================================================== --- head/multimedia/cmrt/distinfo (nonexistent) +++ head/multimedia/cmrt/distinfo (revision 483899) @@ -0,0 +1,3 @@ +TIMESTAMP = 1473292298 +SHA256 (intel-cmrt-1.0.6_GH0.tar.gz) = ca22e905a2717fc740e703e65a0061a0e11f4ea513ba970bbc10b3bd6d28e6e0 +SIZE (intel-cmrt-1.0.6_GH0.tar.gz) = 3717552 Property changes on: head/multimedia/cmrt/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/cmrt/files/patch-i386 =================================================================== --- head/multimedia/cmrt/files/patch-i386 (nonexistent) +++ head/multimedia/cmrt/files/patch-i386 (revision 483899) @@ -0,0 +1,28 @@ +In file included from cm_device.cpp:31: +In file included from ./cm_device.h:37: +In file included from ./cm_array.h:31: +./cm_mem.h:200:17: error: invalid output size for constraint '=a' + :"=a"(local_rax), "=r"(local_rbx), + ^ + +--- src/cm_mem.h.orig 2016-09-07 23:51:38 UTC ++++ src/cm_mem.h +@@ -194,7 +194,9 @@ inline void GetCPUID(int CPUInfo[4], int InfoType) + CPUInfo[1] = local_ebx; + CPUInfo[2] = local_ecx; + CPUInfo[3] = local_edx; +- } else { ++ } ++#ifdef __LP64__ ++ else { + uint64_t local_rax, local_rbx, local_rcx, local_rdx; + __asm__ __volatile__("push %%rbx \n\t" "cpuid \n\t" "mov %%rbx, %1 \n\t" "pop %%rbx \n\t" /* restore the old %ebx */ + :"=a"(local_rax), "=r"(local_rbx), +@@ -206,6 +208,7 @@ inline void GetCPUID(int CPUInfo[4], int InfoType) + CPUInfo[2] = local_rcx; + CPUInfo[3] = local_rdx; + } ++#endif + + #ifndef NO_EXCEPTION_HANDLING + } Property changes on: head/multimedia/cmrt/files/patch-i386 ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/cmrt/files/patch-memalign =================================================================== --- head/multimedia/cmrt/files/patch-memalign (nonexistent) +++ head/multimedia/cmrt/files/patch-memalign (revision 483899) @@ -0,0 +1,40 @@ +memalign is Linux-specific, so use C11 aligned_alloc instead + +--- src/cm_rt_linux.h.orig 2016-09-07 23:51:38 UTC ++++ src/cm_rt_linux.h +@@ -48,7 +48,6 @@ extern "C" { + #include + #include + #include +-#include + #include + #include + #include +@@ -334,7 +333,7 @@ template <> inline const char *CM_TYPE_NAME_UNMANGLED + + inline void *CM_ALIGNED_MALLOC(size_t size, size_t alignment) + { +- return memalign(alignment, size); ++ return aligned_alloc(alignment, size); + } + + inline void CM_ALIGNED_FREE(void *memory) +--- src/os_utilities.c.orig 2016-09-07 23:51:38 UTC ++++ src/os_utilities.c +@@ -40,7 +40,6 @@ + #include + #include + #include +-#include + #include "string.h" + #include + +@@ -56,7 +55,7 @@ INT32 GenOsMemAllocCounter; + GENOS_OS_VERBOSEMESSAGE("GenOsMemAllocCounter = %d, Addr = 0x%x.", GenOsMemAllocCounter, ptr); \ + GENOS_OS_VERBOSEMESSAGE(".", ptr); + +-#define _aligned_malloc(size, alignment) memalign(alignment, size) ++#define _aligned_malloc(size, alignment) aligned_alloc(alignment, size) + #define _aligned_free(ptr) free(ptr) + + PVOID GENOS_AlignedAllocMemory(SIZE_T size, SIZE_T alignment) Property changes on: head/multimedia/cmrt/files/patch-memalign ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/cmrt/pkg-descr =================================================================== --- head/multimedia/cmrt/pkg-descr (nonexistent) +++ head/multimedia/cmrt/pkg-descr (revision 483899) @@ -0,0 +1,5 @@ +Media GPU kernel manager for Intel G45 & HD Graphics family. Allows to +interface between Intel GPU's driver and a host program through a +high-level language. + +WWW: https://01.org/linuxmedia Property changes on: head/multimedia/cmrt/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/cmrt/pkg-plist =================================================================== --- head/multimedia/cmrt/pkg-plist (nonexistent) +++ head/multimedia/cmrt/pkg-plist (revision 483899) @@ -0,0 +1,7 @@ +etc/cmrt.conf +include/cm_rt.h +include/cm_rt_linux.h +lib/libcmrt.so +lib/libcmrt.so.1 +lib/libcmrt.so.1.1001.0 +libdata/pkgconfig/libcmrt.pc Property changes on: head/multimedia/cmrt/pkg-plist ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-driver/Makefile =================================================================== --- head/multimedia/libva-intel-driver/Makefile (revision 483898) +++ head/multimedia/libva-intel-driver/Makefile (revision 483899) @@ -1,43 +1,49 @@ # Created by: Manuel Creach # $FreeBSD$ PORTNAME= libva-intel-driver PORTVERSION= 2.2.0 PORTREVISION= 2 CATEGORIES= multimedia MAINTAINER= madpilot@FreeBSD.org COMMENT= VAAPI intel driver LICENSE= MIT LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libva.so:multimedia/libva \ libdrm.so:graphics/libdrm BUILD_DEPENDS= ${LOCALBASE}/include/linux/videodev2.h:multimedia/v4l_compat GNU_CONFIGURE= yes USES= alias autoreconf compiler:c11 gmake libtool localbase \ pkgconfig tar:bzip2 USE_GL= gl USE_LDCONFIG= yes USE_GITHUB= yes GH_ACCOUNT= 01org GH_PROJECT= intel-vaapi-driver PLIST_FILES= lib/dri/i915_drv_video.so lib/dri/i965_drv_video.so ONLY_FOR_ARCHS= amd64 i386 ONLY_FOR_ARCHS_REASON= Driver for hardware present only on intel i386 and amd64 CPUs +OPTIONS_DEFINE= HYBRID + +HYBRID_DESC= Hybrid codec support (e.g., VP9 decoding on Skylake) +HYBRID_RUN_DEPENDS= ${LOCALBASE}/lib/dri/hybrid_drv_video.so:multimedia/libva-intel-hybrid-driver +HYBRID_CONFIGURE_ENABLE= hybrid-codec + post-patch: .SILENT ${REINPLACE_CMD} -e 's/-ldl//' \ ${WRKSRC}/src/Makefile.am ${REINPLACE_CMD} -e 's|driverdir|& --define-variable prefix=${PREFIX}|' \ ${WRKSRC}/configure.ac post-install: ${LN} -sf i965_drv_video.so ${STAGEDIR}${PREFIX}/lib/dri/i915_drv_video.so .include Index: head/multimedia/libva-intel-hybrid-driver/Makefile =================================================================== --- head/multimedia/libva-intel-hybrid-driver/Makefile (nonexistent) +++ head/multimedia/libva-intel-hybrid-driver/Makefile (revision 483899) @@ -0,0 +1,36 @@ +# $FreeBSD$ + +PORTNAME= intel-hybrid-driver +DISTVERSION= 1.0.2 +CATEGORIES= multimedia +PKGNAMEPREFIX= libva- + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES= dfa9c8eba295.patch:-p1 b3b4d9a3a08d.patch:-p1 + +MAINTAINER= jbeich@FreeBSD.org +COMMENT= Hybrid VP8 encoder and VP9 decoder for Intel GPUs + +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 \ + libcmrt.so:multimedia/cmrt \ + libva.so:multimedia/libva + +USES= autoreconf compiler:c11 gmake libtool pkgconfig +USE_GITHUB= yes +USE_LDCONFIG= yes +GH_ACCOUNT= 01org +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip +PLIST_FILES= lib/dri/hybrid_drv_video.so + +post-patch: + @${REINPLACE_CMD} -e '/__linux__/d; /LINUX/d' \ + ${WRKSRC}/src/vp9hdec/Makefile.am + +.include Property changes on: head/multimedia/libva-intel-hybrid-driver/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-hybrid-driver/distinfo =================================================================== --- head/multimedia/libva-intel-hybrid-driver/distinfo (nonexistent) +++ head/multimedia/libva-intel-hybrid-driver/distinfo (revision 483899) @@ -0,0 +1,7 @@ +TIMESTAMP = 1473291388 +SHA256 (01org-intel-hybrid-driver-1.0.2_GH0.tar.gz) = 16cd66872e8043ce6c0e9a016a043c460e8a180fdc520f31c1f97ffef7828d7b +SIZE (01org-intel-hybrid-driver-1.0.2_GH0.tar.gz) = 1331968 +SHA256 (dfa9c8eba295.patch) = 0c5a2501f6a467cc88c04367f5de89c944fbdb013f87f19ba684c6e2e6560f33 +SIZE (dfa9c8eba295.patch) = 1679 +SHA256 (b3b4d9a3a08d.patch) = acb0acf2a83632358ccb3b02a4b74184149312863fa15bab4686df41abb1fd9b +SIZE (b3b4d9a3a08d.patch) = 1917 Property changes on: head/multimedia/libva-intel-hybrid-driver/distinfo ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-hybrid-driver/files/patch-memalign =================================================================== --- head/multimedia/libva-intel-hybrid-driver/files/patch-memalign (nonexistent) +++ head/multimedia/libva-intel-hybrid-driver/files/patch-memalign (revision 483899) @@ -0,0 +1,71 @@ +memalign is Linux-specific, so use C11 aligned_alloc instead + +--- src/vp9hdec/decode_hybrid_vp9.h.orig 2016-09-07 23:36:28 UTC ++++ src/vp9hdec/decode_hybrid_vp9.h +@@ -39,8 +39,6 @@ + #include "intel_hybrid_hostvld_vp9.h" + #include "intel_hybrid_common_vp9.h" + +-#include +- + #define INTEL_HYBRID_VP9_PAGE_SIZE 0x1000 + + #define INTEL_HYBRID_VP9_KEY_FRAME 0 +--- src/vp9hdec/intel_hybrid_debug_dump.cpp.orig 2016-09-07 23:36:28 UTC ++++ src/vp9hdec/intel_hybrid_debug_dump.cpp +@@ -34,8 +34,6 @@ + #include + #include + +-#include +- + static int intel_hybrid_createfile( + int *fd, + const char *lpFileName, +@@ -166,7 +164,7 @@ char *intel_alloc_zero_aligned_memory(uint32_t size, u + size_t tmp_size; + + tmp_size = ALIGN(size, alignment); +- ptr = (char *)memalign(alignment, tmp_size); ++ ptr = (char *)aligned_alloc(alignment, tmp_size); + + if (ptr) { + memset(ptr, 0, tmp_size); +--- src/vp9hdec/intel_hybrid_hostvld_vp9.cpp.orig 2016-09-07 23:36:28 UTC ++++ src/vp9hdec/intel_hybrid_hostvld_vp9.cpp +@@ -88,7 +88,7 @@ do { + #define VP9_REALLOCATE_ABOVE_CTX_BUFFER(pAboveCtxBuffer, size) \ + do { \ + VP9_ALIGNED_FREE_MEMORY(pAboveCtxBuffer); \ +- pAboveCtxBuffer = (PUINT8)memalign(INTEL_HOSTVLD_VP9_PAGE_SIZE, size); \ ++ pAboveCtxBuffer = (PUINT8)aligned_alloc(INTEL_HOSTVLD_VP9_PAGE_SIZE, size); \ + } while(0) + + #define VP9_REALLOCATE_HOSTVLD_1D_BUFFER_UINT8(pHostvldBuffer, dwBufferSize) \ +@@ -96,7 +96,7 @@ do + { \ + VP9_ALIGNED_FREE_MEMORY((pHostvldBuffer)->pu8Buffer); \ + (pHostvldBuffer)->dwSize = dwBufferSize; \ +- (pHostvldBuffer)->pu8Buffer = (PUINT8)memalign(INTEL_HOSTVLD_VP9_PAGE_SIZE, dwBufferSize); \ ++ (pHostvldBuffer)->pu8Buffer = (PUINT8)aligned_alloc(INTEL_HOSTVLD_VP9_PAGE_SIZE, dwBufferSize); \ + } while (0) + + VAStatus Intel_HostvldVp9_Execute_MT ( +@@ -425,7 +425,7 @@ VAStatus Intel_HostvldVp9_PreParser (PVOID pVp9FrameSt + dwSize = dwNumAboveCtx * sizeof(*pFrameInfo->pContextAbove); + VP9_ALIGNED_FREE_MEMORY(pFrameInfo->pContextAbove); + pFrameInfo->pContextAbove = +- (PINTEL_HOSTVLD_VP9_NEIGHBOR)memalign(INTEL_HOSTVLD_VP9_PAGE_SIZE, dwSize); ++ (PINTEL_HOSTVLD_VP9_NEIGHBOR)aligned_alloc(INTEL_HOSTVLD_VP9_PAGE_SIZE, dwSize); + + dwNumAboveCtx <<= 1; + // Entropy context, per 4x4 block. Allocate once for all the planes +@@ -445,7 +445,7 @@ VAStatus Intel_HostvldVp9_PreParser (PVOID pVp9FrameSt + if (dwSize > pFrameInfo->ModeInfo.dwSize) + { + VP9_ALIGNED_FREE_MEMORY(pFrameInfo->ModeInfo.pBuffer); +- pFrameInfo->ModeInfo.pBuffer = memalign(INTEL_HOSTVLD_VP9_PAGE_SIZE, ++ pFrameInfo->ModeInfo.pBuffer = aligned_alloc(INTEL_HOSTVLD_VP9_PAGE_SIZE, + dwSize * sizeof(INTEL_HOSTVLD_VP9_MODE_INFO)); + pFrameInfo->ModeInfo.dwSize = dwSize; + } Property changes on: head/multimedia/libva-intel-hybrid-driver/files/patch-memalign ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/multimedia/libva-intel-hybrid-driver/pkg-descr =================================================================== --- head/multimedia/libva-intel-hybrid-driver/pkg-descr (nonexistent) +++ head/multimedia/libva-intel-hybrid-driver/pkg-descr (revision 483899) @@ -0,0 +1,6 @@ +Intel hybrid driver provides support for WebM project VPx codecs. GPU +acceleration is provided via media kernels executed on Intel GEN GPUs. +The hybrid driver provides the CPU bound entropy (e.g., CPBAC) +decoding and manages the GEN GPU media kernel parameters and buffers. + +WWW: https://01.org/linuxmedia Property changes on: head/multimedia/libva-intel-hybrid-driver/pkg-descr ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property