5a118a14bf
This port has probably be broken (at least by default) for many years. It was trying to call sdlmame (I think) but the name was "mame" and now for amd64, the name is "mame64". Attempt to fix this (not testing was done, however). While here, clean up post-patch which was doing a lot of nothing, leverage shebangfix, and regenerate patch accordingly. Note that RUN_DEPENDS had to be changed to deal with the morphing executable name.
50 lines
1.3 KiB
Makefile
50 lines
1.3 KiB
Makefile
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= loemu
|
|
PORTVERSION= 0.3.1
|
|
PORTREVISION= 11
|
|
CATEGORIES= emulators python
|
|
MASTER_SITES= http://loemu.pegueroles.com/dists/
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Simple frontend for various game emulators
|
|
|
|
LICENSE= GPLv2 # or later
|
|
|
|
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 \
|
|
${PYTHON_SITELIBDIR}/libxml2.py:${PORTSDIR}/textproc/py-libxml2 \
|
|
${PYTHON_SITELIBDIR}/libxslt.py:${PORTSDIR}/textproc/py-libxslt
|
|
|
|
USES= gettext python shebangfix
|
|
USE_PYTHON= distutils
|
|
NO_BUILD= yes
|
|
SHEBANG_FILES= setup.py
|
|
|
|
OPTIONS_DEFINE= MAME SNES9X ZSNES
|
|
OPTIONS_DEFAULT= MAME SNES9X
|
|
|
|
MAME_DESC= Install mame emulator
|
|
SNES9X_DESC= Install snes9x emulator
|
|
ZSNES_DESC= Install zsnes emulator
|
|
MAME_RUN_DEPENDS= mame>=0.154:${PORTSDIR}/emulators/mame
|
|
SNES9X_RUN_DEPENDS= snes9x:${PORTSDIR}/emulators/snes9x
|
|
ZSNES_RUN_DEPENDS= zsnes:${PORTSDIR}/emulators/zsnes
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${ARCH:Mamd64}
|
|
MAMENAME= mame64
|
|
.else
|
|
MAMENAME= mame
|
|
.endif
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -i '' -e 's|/usr/bin/env python|${PYTHON_CMD}|' \
|
|
${WRKSRC}/scripts/loemu \
|
|
${WRKSRC}/scripts/loemu-builder
|
|
@${REINPLACE_CMD} -i '' -e 's|sdlmame|${MAMENAME}|' \
|
|
${WRKSRC}/config/sdlmame.conf
|
|
|
|
.include <bsd.port.mk>
|