1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00
freebsd-ports/emulators/hatari/Makefile
Muhammad Moinur Rahman 3e3ec4e657 emulators/hatari: Sanitize MANPREFIX
Approved by:	tz (private mail)
2024-01-21 20:25:26 +01:00

69 lines
2.2 KiB
Makefile

PORTNAME= hatari
PORTVERSION= 2.3.1
PORTREVISION= 3
CATEGORIES= emulators
MASTER_SITES= http://download.tuxfamily.org/hatari/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Atari ST emulator
WWW= https://hatari.tuxfamily.org/
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/gpl.txt
BROKEN_armv6= fails to configure: CMake Error: Generator: execution of make failed
LIB_DEPENDS= libportaudio.so:audio/portaudio \
libpng.so:graphics/png
USES= cmake desktop-file-utils gnome python readline \
sdl shared-mime-info shebangfix tar:bzip2 xorg
USE_GNOME= gtk30
USE_XORG= sm ice x11 xext
SHEBANG_FILES= python-ui/*.py tools/*.py \
tools/debugger/*.py tools/hconsole/*.py
CMAKE_ARGS= -DETCDIR:PATH="${PREFIX}/etc" \
-DREADLINE_FOUND:BOOL=ON
# -DMANDIR:PATH="share/man/man1"
OPTIONS_DEFINE= DEBUG DOCS SDL2 WINUAE
DEBUG_CFLAGS_OFF= -DNDEBUG
SDL2_DESC= Use SDL2 libraries instead of SDL 1.2
SDL2_USES= iconv
SDL2_USE= sdl=sdl2
SDL2_USE_OFF= sdl=sdl
SDL2_CMAKE_BOOL= ENABLE_SDL2
SDL2_CFLAGS= -I${ICONV_INCLUDE_PATH}
WINUAE_DESC= Build with WinUAE CPU core
WINUAE_CMAKE_BOOL= ENABLE_WINUAE_CPU
post-patch:
.for i in doc/*.1 python-ui/*.1 tools/*.1 tools/debugger/*.1 tools/hconsole/*.1 tools/hmsa/*.1
@${REINPLACE_CMD} -e \
's|^/etc/hatari.cfg .*|${PREFIX}/etc/hatari.cfg| ; \
s|/usr/share|${PREFIX}/share|' ${WRKSRC}/${i}
.endfor
@${REINPLACE_CMD} -e \
's|-Wno-maybe-uninitialized||' ${WRKSRC}/src/cpu/CMakeLists.txt
@${REINPLACE_CMD} -e \
's|%%PYTHON_CMD%%|${PYTHON_CMD}| ; \
s|%%PYTHON_VERSION%%|${PYTHON_VERSION}|' ${WRKSRC}/tools/atari-hd-image.sh
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKSRC}/doc/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKSRC}/python-ui/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKSRC}/tools/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKSRC}/tools/debugger/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKSRC}/tools/hconsole/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
${INSTALL_MAN} ${WRKSRC}/tools/hmsa/*.1 ${STAGEDIR}${PREFIX}/share/man/man1
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>