emulators/hatari: upgrade version 1.7.0 => 1.8.0

PR:		192476
Submitted by:	Ports Fury
This commit is contained in:
John Marino 2014-08-10 09:34:54 +00:00
parent 44a211402e
commit 676ee8c042
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=364522
4 changed files with 48 additions and 29 deletions

View file

@ -2,20 +2,19 @@
# $FreeBSD$
PORTNAME= hatari
PORTVERSION= 1.7.0
PORTVERSION= 1.8.0
CATEGORIES= emulators
MASTER_SITES= http://download.tuxfamily.org/hatari/${PORTVERSION}/
MASTER_SITES= http://download.tuxfamily.org/hatari/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Atari ST emulator
LICENSE= GPLv2
LICENSE= GPLv2 # (or later)
BUILD_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2
BUILD_DEPENDS= portaudio2>0:${PORTSDIR}/audio/portaudio2
LIB_DEPENDS= libpng15.so:${PORTSDIR}/graphics/png
RUN_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2
OPTIONS_DEFINE= DOCS
RUN_DEPENDS= portaudio2>0:${PORTSDIR}/audio/portaudio2
USES= cmake readline tar:bzip2
USE_GNOME= pygtk2
@ -26,40 +25,29 @@ CMAKE_ARGS= -DPORTAUDIO_INCLUDE_DIR:STRING="${PA2_INCLUDE_DIR}" \
-DETCDIR:STRING="${PREFIX}/etc" \
-DMANDIR:STRING="man/man1"
CFLAGS+= -I${LOCALBASE}/include/portaudio2
PA2_INCLUDE_DIR=-I${LOCALBASE}/include/portaudio2
OPTIONS_DEFINE= DOCS
PA2_INCLUDE_DIR=${LOCALBASE}/include/portaudio2
PA2_LIBRARY= ${LOCALBASE}/lib/portaudio2/libportaudio.so
PORTDOCS= *
post-patch:
.for file in doc/hatari.1 doc/fr/hatari.1 tools/hconsole/hconsole.1
.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}/${file}
s|/usr/share|${PREFIX}/share|' ${WRKSRC}/${i}
.endfor
@${REINPLACE_CMD} -e '/doc/s|^add_|#add_|' \
${WRKSRC}/CMakeLists.txt
@${REINPLACE_CMD} -e '/DESTINATION/s|/icons/.*)|/pixmaps)|' \
${WRKSRC}/python-ui/CMakeLists.txt
post-build:
@cd ${WRKSRC}/doc && ${GZIP_CMD} -c ${PORTNAME}.1 > ${PORTNAME}.1.gz
@cd ${WRKSRC}/doc/fr && ${GZIP_CMD} -c ${PORTNAME}.1 > ${PORTNAME}.1.gz
post-install:
(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${PORTNAME}.1.gz \
${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${MANPREFIX}/man/fr/man1
(cd ${WRKSRC}/doc/fr && ${INSTALL_MAN} ${PORTNAME}.1.gz \
${STAGEDIR}${MANPREFIX}/man/fr/man1)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} readme.txt ${STAGEDIR}${DOCSDIR})
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html [a-z]*.txt ${STAGEDIR}${DOCSDIR})
@${MKDIR} ${STAGEDIR}${DOCSDIR}/fr
(cd ${WRKSRC}/doc/fr && ${INSTALL_DATA} *.txt ${STAGEDIR}${DOCSDIR}/fr)
@${MKDIR} ${STAGEDIR}${DOCSDIR}/images
(cd ${WRKSRC}/doc/images && ${INSTALL_DATA} *.png ${STAGEDIR}${DOCSDIR}/images)
(cd ${WRKSRC}/doc/fr && ${INSTALL_DATA} *.txt \
${STAGEDIR}${DOCSDIR}/fr)
.include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (hatari-1.7.0.tar.bz2) = 2056d12807cb827585f337912238492f8b66b7ff3d9d0628090e58209a519e4d
SIZE (hatari-1.7.0.tar.bz2) = 2254241
SHA256 (hatari-1.8.0.tar.bz2) = 7ecf486ba578e3b4d7a3d3e86ef3e879d5e5611b39c2504e38ccafdaacb5ffeb
SIZE (hatari-1.8.0.tar.bz2) = 1985358

View file

@ -1,4 +1,5 @@
Hatari is an Atari ST emulator. It tries to emulate the hardware of a ST as
close as possible so that it is able to run most of the old ST games and demos.
Hatari is an Atari ST emulator. It tries to emulate the hardware of a ST
as close as possible so that it is able to run most of the old ST games
and demos.
WWW: http://hatari.tuxfamily.org/

View file

@ -15,6 +15,33 @@ man/man1/hconsole.1.gz
man/man1/hmsa.1.gz
man/man1/zip2st.1.gz
share/applications/hatariui.desktop
%%PORTDOCS%%%%DOCSDIR%%/authors.txt
%%PORTDOCS%%%%DOCSDIR%%/compatibility.html
%%PORTDOCS%%%%DOCSDIR%%/emutos.txt
%%PORTDOCS%%%%DOCSDIR%%/fr/clavier-exemple.txt
%%PORTDOCS%%%%DOCSDIR%%/images/callgraph.png
%%PORTDOCS%%%%DOCSDIR%%/images/callgraph.svg
%%PORTDOCS%%%%DOCSDIR%%/images/devices.png
%%PORTDOCS%%%%DOCSDIR%%/images/fileselector.png
%%PORTDOCS%%%%DOCSDIR%%/images/floppydisks.png
%%PORTDOCS%%%%DOCSDIR%%/images/harddisks.png
%%PORTDOCS%%%%DOCSDIR%%/images/joystick.png
%%PORTDOCS%%%%DOCSDIR%%/images/kcachegrind.png
%%PORTDOCS%%%%DOCSDIR%%/images/keyboard.png
%%PORTDOCS%%%%DOCSDIR%%/images/main.png
%%PORTDOCS%%%%DOCSDIR%%/images/memory.png
%%PORTDOCS%%%%DOCSDIR%%/images/monitor.png
%%PORTDOCS%%%%DOCSDIR%%/images/newfloppy.png
%%PORTDOCS%%%%DOCSDIR%%/images/screen.png
%%PORTDOCS%%%%DOCSDIR%%/images/sound.png
%%PORTDOCS%%%%DOCSDIR%%/images/system.png
%%PORTDOCS%%%%DOCSDIR%%/images/tos.png
%%PORTDOCS%%%%DOCSDIR%%/keymap-sample.txt
%%PORTDOCS%%%%DOCSDIR%%/manual.html
%%PORTDOCS%%%%DOCSDIR%%/memory-usage.txt
%%PORTDOCS%%%%DOCSDIR%%/midi-linux.txt
%%PORTDOCS%%%%DOCSDIR%%/release-notes.txt
%%PORTDOCS%%%%DOCSDIR%%/todo.txt
%%DATADIR%%/hatari-icon.bmp
%%DATADIR%%/hatariui/README
%%DATADIR%%/hatariui/TODO
@ -38,5 +65,8 @@ share/pixmaps/hatari-icon.png
@dirrm %%DATADIR%%/hconsole
@dirrm %%DATADIR%%/hatariui
@dirrm %%DATADIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%/images
%%PORTDOCS%%@dirrm %%DOCSDIR%%/fr
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry man/fr/man1
@dirrmtry man/fr