mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
- Fix build with clang
Reported by: pkg-fallout
This commit is contained in:
parent
8a184b717c
commit
a129c50951
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=348908
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= mupen64plus
|
||||
PORTVERSION?= 2.0
|
||||
PORTREVISION?= 0
|
||||
PORTREVISION?= 1
|
||||
CATEGORIES= emulators
|
||||
MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \
|
||||
${MASTER_SITE_LOCAL:S,$,acm/${PORTNAME}/,} \
|
||||
|
@ -29,11 +29,19 @@ LIB_DEPENDS+= libboost_thread.so:${PORTSDIR}/devel/boost-libs
|
||||
|
||||
.if ${PKGNAMESUFFIX} != "-core"
|
||||
post-patch:
|
||||
@cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e 's|gcc|${CC}|g' -e \
|
||||
's|g++|${CXX}|g' Makefile
|
||||
. if ${PKGNAMESUFFIX} == "-video-glide64mk2"
|
||||
@cd ${WRKSRC}/source/${PORTNAME}${PKGNAMESUFFIX}/src && \
|
||||
${REINPLACE_CMD} -e 's|#include <thread>||g' \
|
||||
GlideHQ/TxQuantize.cpp GlideHQ/TxFilter.cpp
|
||||
. endif
|
||||
. if ${PKGNAMESUFFIX} == "-video-glide64"
|
||||
@cd ${WRKSRC}/${PORTNAME}${PKGNAMESUFFIX}/src && \
|
||||
${REINPLACE_CMD} -e 's|__builtin_ia32_loadups|_mm_loadu_ps|g' -e \
|
||||
's|__builtin_ia32_storeups|_mm_storeu_ps|g' \
|
||||
3dmath.cpp
|
||||
. endif
|
||||
|
||||
pre-install:
|
||||
@${RM} -f ${PLIST}
|
||||
@ -60,6 +68,9 @@ pre-install:
|
||||
. else
|
||||
@${ECHO_CMD} "bin/${PORTNAME}" >> ${PLIST}
|
||||
. endif
|
||||
.else
|
||||
@cd ${BUILD_WRKSRC} && ${REINPLACE_CMD} -e 's|gcc|${CC}|g' -e \
|
||||
's|g++|${CXX}|g' Makefile
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
|
Loading…
Reference in New Issue
Block a user