Import libretro-nestopia, split from the existing libretro port.

From Ryan Freeman; thanks!
This commit is contained in:
bentley 2022-10-04 11:13:48 +00:00
parent 6c1df0eca5
commit 83225b09bc
5 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,46 @@
COMMENT = Nintendo Entertainment System core for retroarch
V = 1.51.1
DISTNAME = libretro-nestopia-$V
GH_ACCOUNT = libretro
GH_PROJECT = nestopia
GH_COMMIT = a9e197f2583ef4f36e9e77d930a677e63a2c2f62
.include <bsd.port.arch.mk>
CATEGORIES = emulators
HOMEPAGE = https://github.com/libretro/nestopia
MAINTAINER = Ryan Freeman <ryan@slipgate.org>
# GPLv2+
PERMIT_PACKAGE = Yes
WANTLIB = ${COMPILER_LIBCXX} m pthread
COMPILER = base-clang ports-gcc base-gcc
BUILD_DEPENDS = devel/autoconf-archive
LIB_DEPENDS = ${MODGCC4_CPPLIBDEP}
MAKE_FLAGS = CC="${CC}" \
CXX="${CXX}" \
CFLAGS="${CFLAGS}" \
CXXFLAGS="${CFLAGS} \
-Ilibretro-common/include -Wno-narrowing"
FAKE_FLAGS = PREFIX="${WRKINST}/${TRUEPREFIX}"
USE_GMAKE = Yes
NO_TEST = Yes
WRKSRC = ${WRKDIST}/libretro
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/libretro
${INSTALL_DATA} ${WRKSRC}/nestopia_libretro.so \
${PREFIX}/lib/libretro
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (libretro-nestopia-1.51.1-a9e197f2.tar.gz) = E3K7KaAsQ2YDlHnREVyJDYTN3Qf6RDhDBQaSQ1w4dss=
SIZE (libretro-nestopia-1.51.1-a9e197f2.tar.gz) = 1121493

View File

@ -0,0 +1,12 @@
Index: libretro/Makefile
--- libretro/Makefile.orig
+++ libretro/Makefile
@@ -63,7 +63,7 @@ unixcygpath = /$(subst :,,$(call unixpath,$1))
ifeq ($(platform), unix)
TARGET := $(TARGET_NAME)_libretro.so
fpic := -fPIC
- SHARED := -shared -Wl,-version-script=link.T -Wl,-no-undefined
+ SHARED := -shared -Wl,-version-script=link.T
ifeq ($(shell uname -s), Haiku)
LDFLAGS += -lroot
endif

View File

@ -0,0 +1,2 @@
libretro-nestopia provides a Nintendo Entertainment System emulation core to
the RetroArch emulator frontend, based on Nestopia.

View File

@ -0,0 +1,2 @@
lib/libretro/
lib/libretro/nestopia_libretro.so