blob: a463c6732971cc3260eec250393c6f75c6e00b1b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# Created by: Michael Neumann <mneumann@ntecs.de>
# $FreeBSD$
PORTNAME= hatari
PORTVERSION= 2.0.0
PORTREVISION= 2
CATEGORIES= emulators
MASTER_SITES= http://download.tuxfamily.org/hatari/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Atari ST emulator
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/gpl.txt
LIB_DEPENDS= libportaudio.so:audio/portaudio \
libpng.so:graphics/png
BUILD_DEPENDS= python:lang/python
RUN_DEPENDS= python:lang/python
USES= cmake desktop-file-utils python readline shared-mime-info \
shebangfix tar:bzip2
SHEBANG_FILES= python-ui/*.py tools/atari-convert-dir.py \
tools/debugger/hatari_profile.py tools/hconsole/*.py
python_OLD_CMD= /usr/bin/python2
USE_GNOME= pygtk2
CMAKE_ARGS= -DETCDIR:PATH="${PREFIX}/etc" \
-DMANDIR:PATH="man/man1" \
-DREADLINE_FOUND:BOOL=ON
INSTALLS_ICONS= yes
BROKEN_aarch64= fails to configure: error: unrecognized CPU type
BROKEN_armv6= fails to configure: CMake Error: Generator: execution of make failed
BROKEN_powerpc64= fails to compile: sysdeps.h: redefinition of typedef 'uae_u8'
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_ON= -DENABLE_SDL2:BOOL=ON
SDL2_CFLAGS= -I${ICONV_INCLUDE_PATH}
WINUAE_DESC= Build with WinUAE CPU core (experimental)
WINUAE_CMAKE_ON= -DENABLE_WINUAE_CPU:BOOL=ON
post-patch:
.for i in doc/hatari.1 doc/fr/hatari.1 tools/hconsole/hconsole.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
post-install:
@${MKDIR} ${STAGEDIR}${MANPREFIX}/man/fr/man1
${INSTALL_MAN} ${WRKSRC}/doc/fr/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/fr/man1
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}/fr
${INSTALL_DATA} ${WRKSRC}/doc/fr/*.txt ${STAGEDIR}${DOCSDIR}/fr
.include <bsd.port.mk>
|