Index: multimedia/x264/Makefile =================================================================== --- multimedia/x264/Makefile +++ multimedia/x264/Makefile @@ -44,7 +44,7 @@ X264_SNAPSHOT= 20190719 USES?= pkgconfig -USES+= gmake localbase shebangfix tar:bzip2 +USES+= compiler gmake localbase shebangfix tar:bzip2 USE_LDCONFIG= yes HAS_CONFIGURE= yes SHEBANG_FILES= configure @@ -54,9 +54,6 @@ OPTIONS_RADIO+= MP4 OPTIONS_RADIO_MP4+= GPAC LSMASH OPTIONS_DEFAULT+= FFMS LAVF LSMASH SWSCALE -OPTIONS_DEFAULT_powerpc= GCC -OPTIONS_DEFAULT_powerpc64= GCC -OPTIONS_DEFAULT_powerpcspe= GCC FFMS_DESC= FFmpeg Source input support GPAC_DESC= GPAC library support @@ -105,6 +102,8 @@ --extra-cflags="${CPPFLAGS} ${CFLAGS}" \ --extra-ldflags="${LDFLAGS}" +.include + post-extract-PGO-on: @${BZIP2_CMD} -dc ${DISTDIR}/${DIST_SUBDIR}/${Y4M_VIDEO_DISTFILE} \ >${WRKDIR}/${Y4M_VIDEO} @@ -124,4 +123,11 @@ @(${RM} ${WRKSRC}/x264_config.h) .endif -.include +.if ${CHOSEN_COMPILER_TYPE} == clang && ${COMPILER_VERSION} < 90 +OPTIONS_DEFAULT_powerpc= GCC +OPTIONS_DEFAULT_powerpc64= GCC +OPTIONS_DEFAULT_powerpcspe= GCC +.endif + + +.include