Allow to build on sparc64 and powerpc.

This commit is contained in:
Alexey Dokuchaev 2018-01-19 06:36:37 +00:00
parent 88ada844d2
commit 73f128faa2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=459398
2 changed files with 4 additions and 1 deletions

View file

@ -29,7 +29,6 @@ LIB_DEPENDS= libFLAC.so:audio/flac \
libpng.so:graphics/png
BROKEN_aarch64= fails to compile: polymost.cpp:2403:18: non-constant-expression cannot be narrowed from type 'long' to 'int32_t' (aka 'int') in initializer list
BROKEN_sparc64= fails to compile
USES= gmake pkgconfig tar:xz
USE_GL= gl glu
@ -48,6 +47,8 @@ PORTEXAMPLES= *
OPTIONS_DEFINE= EXAMPLES GCC HRP OFFENSIVE SHAREWARE VOXEL
OPTIONS_DEFINE_i386= ASM
OPTIONS_DEFAULT_i386= ASM
OPTIONS_DEFAULT_powerpc= GCC
OPTIONS_DEFAULT_sparc64= GCC
ASM_BUILD_DEPENDS= nasm:devel/nasm
ASM_MAKE_ARGS_OFF= NOASM=1

View file

@ -82,6 +82,8 @@ THREADS_CONFIGURE_OFF= --disable-multithread
post-patch:
@${REINPLACE_CMD} 's|\(link_with_cc\)=gcc|\1=$${CC}|' \
${WRKSRC}/build/make/configure.sh
@${REINPLACE_CMD} 's|sparc-solaris-gcc|sparc-linux-gcc|' \
${WRKSRC}/configure
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/vpx*