aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimothy Beyer <beyert@cs.ucr.edu>2022-07-21 19:31:21 +0000
committerLi-Wen Hsu <lwhsu@FreeBSD.org>2022-07-21 19:31:21 +0000
commit519bbdf872890996d158a7a4e82e7682ae60bc32 (patch)
tree7602bf36968634dc711618e8c67bc5e55c5f7ee2
parentbe86553c4986f1de32eb862bdc2efee87cfed236 (diff)
downloadports-519bbdf872890996d158a7a4e82e7682ae60bc32.tar.gz
ports-519bbdf872890996d158a7a4e82e7682ae60bc32.zip
emulators/libretro-pcsx2: Fix i386 build on 13.1-RELEASE
PR: 265185
-rw-r--r--emulators/libretro-pcsx2/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/emulators/libretro-pcsx2/Makefile b/emulators/libretro-pcsx2/Makefile
index aad056700c85..4eed8335cfa2 100644
--- a/emulators/libretro-pcsx2/Makefile
+++ b/emulators/libretro-pcsx2/Makefile
@@ -1,6 +1,6 @@
PORTNAME= libretro-pcsx2
PORTVERSION= 0.20201030
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= emulators games
MAINTAINER= beyert@cs.ucr.edu
@@ -22,12 +22,11 @@ USES= cmake compiler:c++11-lib
.include <bsd.port.pre.mk>
CPPFLAGS+= -I${LOCALBASE}/include/wx-3.0
-USE_CXXSTD= c++11
USE_LDCONFIG= yes
CMAKE_CPP_FLAGS= ${CPPFLAGS}
CMAKE_PREFIX_PATH= ${LOCALBASE}/include/wx-3.0
CMAKE_C_FLAGS= ${CFLAGS}
-CMAKE_CXX_FLAGS= ${CFLAGS}
+CMAKE_CXX_FLAGS= ${CXXFLAGS}
CMAKE_ARGS+= -DLIBRETRO=yes
CMAKE_ARGS+= -Dgtk_INCLUDE_DIR="${LOCALBASE}/include/gtk-3.0" \
-DwxWidgets_INCLUDE_DIRS="${LOCALBASE}/include/wx-3.0"
@@ -51,6 +50,7 @@ PLIST_FILES= lib/libretro/pcsx2_libretro.so
.if ${ARCH} == i386
LDFLAGS+= -Wl,-z,notext
+CXXFLAGS+= -fPIC
.endif
post-patch:
@@ -60,7 +60,6 @@ post-patch:
@${REINPLACE_CMD} 's|-D_FILE_OFFSET_BITS=64|-D_FILE_OFFSET_BITS=32|' \
${WRKSRC}/3rdparty/wxwidgets3.0/UsewxWidgets.cmake
.endif
-# filename.cpp first to have 2u
@${REINPLACE_CMD} -e 's|\[0u\]|[0]|' -e 's|\[1u\]|[1]|' \
-e 's|\[2u\]|[2]|' \
${WRKSRC}/3rdparty/wxwidgets3.0/include/wx/filename.h \