Skip to content

Commit

Permalink
emulators/libretro-pcsx2: New port: Standalone port of pcsx2 to libre…
Browse files Browse the repository at this point in the history
…tro emulator

PR:	252191
  • Loading branch information
beyert authored and neelchauhan committed May 19, 2022
1 parent 316d2de commit b8b7894
Show file tree
Hide file tree
Showing 11 changed files with 612 additions and 0 deletions.
1 change: 1 addition & 0 deletions emulators/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
SUBDIR += libdsk
SUBDIR += libretro-flycast
SUBDIR += libretro-mame
SUBDIR += libretro-pcsx2
SUBDIR += libretro-ppsspp
SUBDIR += libretro-reicast
SUBDIR += libretro-vice
Expand Down
65 changes: 65 additions & 0 deletions emulators/libretro-pcsx2/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# $FreeBSD$

PORTNAME= libretro-pcsx2
PORTVERSION= 0.20201030
CATEGORIES= emulators games

MAINTAINER= beyert@cs.ucr.edu
COMMENT= Standalone port of pcsx2 to libretro

LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING.GPLv3

ONLY_FOR_ARCHS= >i386 amd64

LIB_DEPENDS= libcdio.so:sysutils/libcdio \
libharfbuzz.so:print/harfbuzz \
libpng16.so:graphics/png \
libportaudio.so:audio/portaudio \
libSoundTouch.so:audio/soundtouch

USES= cmake compiler:c++11-lib

CPPFLAGS+= -I${LOCALBASE}/include/wx-3.0
USE_CXXSTD= c++11
#LDFLAGS+= -L${LOCALBASE}/lib -I/usr/lib
USE_LDCONFIG= yes
CMAKE_CPP_FLAGS= ${CPPFLAGS}
CMAKE_PREFIX_PATH= ${LOCALBASE}/include/wx-3.0
CMAKE_C_FLAGS= ${CFLAGS}
CMAKE_CXX_FLAGS= ${CFLAGS}
CMAKE_ARGS+= -DLIBRETRO=yes
CMAKE_ARGS+= -Dgtk_INCLUDE_DIR="${LOCALBASE}/include/gtk-3.0" \
-DwxWidgets_INCLUDE_DIRS="${LOCALBASE}/include/wx-3.0"

# lib depends on devel/ccache
WITH_CCACHE_BUILD= yes

HAVE_GTK3= true
#USES= gnome xorg gl sdl dos2unix cmake:insource iconv gettext linux:c7 pkgconfig
#USE_LINUX= libaio
USE_WX= 3.0+
#USE_XORG= ice x11 xv xext xxf86vm xtst xrandr xi
USE_GL= gl glew glu
USE_GNOME= glib20
#USE_SDL= sdl2

MAKE_JOBS_UNSAFE= yes

USE_GITHUB= yes
GH_ACCOUNT= libretro
GH_PROJECT= pcsx2
GH_TAGNAME= 1251fa4

PLIST_FILES= lib/libretro/pcsx2_libretro.so

post-patch:
${CP} files/3rdparty_wxwidgets3.0_src_unix_fswatcher__kqueue.cpp \
${WRKSRC}/3rdparty/wxwidgets3.0/src/unix/fswatcher_kqueue.cpp

do-install:
${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
${INSTALL_LIB} ${WRKDIR}/.build/pcsx2/pcsx2_libretro.so \
${STAGEDIR}/${PREFIX}/lib/libretro;

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions emulators/libretro-pcsx2/distinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TIMESTAMP = 1604098409
SHA256 (libretro-pcsx2-0.20201030-1251fa4_GH0.tar.gz) = 01b329b4bba210022f0f0f889b2e4722ef530b766eaf7036194a53668b47a245
SIZE (libretro-pcsx2-0.20201030-1251fa4_GH0.tar.gz) = 15636747
Loading

0 comments on commit b8b7894

Please sign in to comment.