Commit e479fae1 authored by Rene Ladan's avatar Rene Ladan
Browse files

emulators/libretro-mame: Remove expired port

2025-03-31 emulators/libretro-mame: Uses expired Python 3.8
parent 94f63829
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4259,3 +4259,4 @@ devel/ocaml-type_conv|devel/ocaml-ppxlib|2025-03-31|Has expired: Deprecated, ups
multimedia/dirac||2025-03-31|Has expired: Legacy video codec superseded by multiple formats. Files can be decoded using FFmpeg
ports-mgmt/py-pytoport||2025-03-31|Has expired: Depends on expired misc/py-spdx-lookup
net/py-ec2-cli-tools||2025-03-31|Has expired: Depends on expired devel/py-boto
emulators/libretro-mame||2025-03-31|Has expired: Uses expired Python 3.8
+0 −1
Original line number Diff line number Diff line
@@ -63,7 +63,6 @@
    SUBDIR += libretro-bsnes
    SUBDIR += libretro-flycast
    SUBDIR += libretro-kronos
    SUBDIR += libretro-mame
    SUBDIR += libretro-pcsx2
    SUBDIR += libretro-ppsspp
    SUBDIR += libretro-reicast

emulators/libretro-mame/Makefile

deleted100644 → 0
+0 −78
Original line number Diff line number Diff line
PORTNAME=	libretro-mame
PORTVERSION=	20220124
PORTREVISION=	1
CATEGORIES=	emulators games

MAINTAINER=	beyert@cs.ucr.edu
COMMENT=	MAME-current for libretro
WWW=		https://github.com/libretro/mame

LICENSE=	BSD2CLAUSE GPLv2
LICENSE_COMB=	multi

DEPRECATED=	Uses expired Python 3.8
EXPIRATION_DATE=2025-03-31

USES=	compiler:c++11-lib gl gmake pkgconfig python:3.8,build
USE_LDCONFIG=	yes

USE_GL=	gl

USE_GITHUB=	yes
GH_ACCOUNT=	libretro
GH_PROJECT=	mame
GH_TAGNAME=	ec47e94

MAKEFILE=	${WRKSRC}/Makefile.libretro

MAKE_ENV=	ARCH=${ARCH} \
		CXX="${CXX}" \
		LD="${CXX}" \
		OPT_FLAGS="${CXXFLAGS}" \
		PYTHON="${PYTHON_CMD}" \
		PYTHON_EXECUTABLE="${PYTHON_CMD}"

GENIE=	${WRKSRC}/3rdparty/genie

MAKE_JOBS_UNSAFE=	yes

PLIST_FILES=	lib/libretro/mame_libretro.so

post-patch:
	@${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/dirent.h
	@${RM} ${WRKSRC}/3rdparty/bx/include/compat/freebsd/signal.h
	@${ECHO_CMD} ${MV} ${GENIE}/build/gmake.freebsd ${GENIE}/build/gmake.bsd
	@${REINPLACE_CMD} -e \
		's|^\(CC \)|#\1| ; \
		s|^\(CXX \)|#\1| ; \
		s|^\(CXX:\)|#\1| ; \
		s|^\(LD \)|#\1| ; \
		s|^\(PYTHON \)|#\1| ; \
		s| .(ARCH)|| ; \
		s|FreeBSD|${OPSYS}|g' \
		${WRKSRC}/makefile \
		${GENIE}/build/gmake.freebsd/genie.make
	@${REINPLACE_CMD} -e 's|gcc|${CC}|; s|g++|${CXX}|' \
		${GENIE}/src/tools/gcc.lua \
		${GENIE}/src/tools/snc.lua \
		${GENIE}/tests/test_gmake_cpp.lua
	@${REINPLACE_CMD} -e 's|= \"gcc|= \"${CC}|; s|= \"${CXX}|= \"c++|' \
		-e "s|'CXX =|'#CXX =|; s|'CC  =|'#CC  =|; s| .(ARCH)| |g" \
		${GENIE}/src/host/scripts.c
# we can't fix two types of python shebangs, so do these manually
	@${REINPLACE_CMD} -i "" -e "s|/usr/bin/env python|${PYTHON_CMD}|" \
		${WRKSRC}/scripts/build/png*.py
	@${REINPLACE_CMD} -e 's|"python"|"${PYTHON_CMD}"|' \
		${WRKSRC}/scripts/genie.lua
	@${GREP} -rl '"png.h"' ${WRKSRC}/src | ${XARGS} ${REINPLACE_CMD} \
		-e 's|"png.h"|"localpng.h"|'
	@${REINPLACE_CMD} -e 's|"util/png.h"|"util/localpng.h"|' \
		${WRKSRC}/src/frontend/mame/ui/icorender.cpp
	@${MV} ${WRKSRC}/src/lib/util/png.h ${WRKSRC}/src/lib/util/localpng.h

do-install:
	@${MKDIR} ${STAGEDIR}/${PREFIX}/lib/libretro;
	${INSTALL_LIB} ${WRKSRC}/mame_libretro.so \
		${STAGEDIR}/${PREFIX}/lib/libretro;

.include <bsd.port.mk>

emulators/libretro-mame/distinfo

deleted100644 → 0
+0 −3
Original line number Diff line number Diff line
TIMESTAMP = 1653366767
SHA256 (libretro-mame-20220124-ec47e94_GH0.tar.gz) = 776e7159d35bcef0bd0ae9b71956c85b5e8f5dee1ad207ec09b3d37db9f9a915
SIZE (libretro-mame-20220124-ec47e94_GH0.tar.gz) = 183781090
+0 −11
Original line number Diff line number Diff line
--- Makefile.libretro.orig	2022-01-24 21:33:37 UTC
+++ Makefile.libretro
@@ -61,6 +61,8 @@ endif
 
 ifeq ($(ARCH),x86)
 	PTR64 := 0
+else ifeq ($(ARCH),i386)
+	PTR64 := 0
 endif
 
 ###########################################################################
Loading