mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-06 11:41:52 +00:00
Tentatively try to unbreak the build on arm* architectures. There were
two kinds of problems: 1) Sloppy handling of 8-bit data and assuming that `char' is signed by default in AdPlug and Commodore 64 SID plugins code; 2) Incorrect detection of SSE2 support. Contrary to GCC, Clang always accepts `-msse2' command line option, even on !x86; it just tells that it won't be used. As a result, SSE2 code was compiled whilst it could not be, causing the build to fail. While here, remove no longer relevant patching of the configure script.
This commit is contained in:
parent
0691518059
commit
de3edbc371
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=475256
@ -220,9 +220,16 @@ post-patch:
|
||||
${WRKSRC}/plugins/supereq/Makefile.in
|
||||
@${REINPLACE_CMD} -e 's,/etc/timidity++/timidity-freepats.cfg:/etc/timidity/freepats.cfg:/etc/timidity/,${LOCALBASE}/share/,' \
|
||||
${WRKSRC}/plugins/wildmidi/wildmidiplug.c
|
||||
@${REINPLACE_CMD} \
|
||||
-e '/HAVE_OGG" = "yes"/ {n; n; /HAVE_VORBISPLUGIN=yes/d;}' \
|
||||
# Clang accepts `-msse2' command line option even on !x86, need better check
|
||||
@${REINPLACE_CMD} -e '25177s,^,#include <xmmintrin.h>,' \
|
||||
${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e '/chnresolv/s,const char,signed &,' \
|
||||
${WRKSRC}/plugins/adplug/adplug/s3m.cpp \
|
||||
${WRKSRC}/plugins/adplug/adplug/s3m.h
|
||||
@${REINPLACE_CMD} -e "/sampleConvertTable/s,int8_t,u&, ; \
|
||||
86,+1 { s,',,g; s,\\\\x,0x,g; }" \
|
||||
${WRKSRC}/plugins/sid/sidplay-libs/libsidplay/src/xsid/xsid.cpp \
|
||||
${WRKSRC}/plugins/sid/sidplay-libs/libsidplay/src/xsid/xsid.h
|
||||
# Fix build with libzip-1.0
|
||||
@${REINPLACE_CMD} 's,zip_file_t,zip_file_DB,g' \
|
||||
${WRKSRC}/plugins/vfs_zip/vfs_zip.c
|
||||
|
Loading…
x
Reference in New Issue
Block a user