1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00

- Simplify master sites

- Fix portaudio2 dependency due to recent commit
- Support STAGEDIR
- Change pkg-plist, remove DOCS

Approved by:	pawel / wg (mentors, implicit)
This commit is contained in:
Rusmir Dusko 2013-10-25 20:38:03 +00:00
parent 76d439a63b
commit c154bb5fb8
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=331635
2 changed files with 25 additions and 59 deletions

View File

@ -4,17 +4,16 @@
PORTNAME= hatari
PORTVERSION= 1.7.0
CATEGORIES= emulators
MASTER_SITES= http://download.tuxfamily.org/hatari/%SUBDIR%/
MASTER_SITE_SUBDIR= ${PORTVERSION}
MASTER_SITES= http://download.tuxfamily.org/hatari/${PORTVERSION}/
MAINTAINER= ports@FreeBSD.org
COMMENT= Atari ST emulator
LICENSE= GPLv2 # (or later)
LICENSE= GPLv2
BUILD_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
BUILD_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
RUN_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
RUN_DEPENDS= portaudio2>=0:${PORTSDIR}/audio/portaudio2
OPTIONS_DEFINE= DOCS
@ -28,18 +27,11 @@ CMAKE_ARGS= -DPORTAUDIO_INCLUDE_DIR:STRING="${PA2_INCLUDE_DIR}" \
-DETCDIR:STRING="${PREFIX}/etc" \
-DMANDIR:STRING="man/man1"
MANCOMPRESSED= yes
MANLANG= "" fr
MAN1= ${PORTNAME}.1
MAN1_EN= atari-hd-image.1 gst2ascii.1 hatari_profile.1 hatariui.1 \
hconsole.1 hmsa.1 zip2st.1
CFLAGS+= -I${LOCALBASE}/include/portaudio2
PA2_INCLUDE_DIR=-I${LOCALBASE}/include/portaudio2
PA2_LIBRARY= ${LOCALBASE}/lib/portaudio2/libportaudio.so
NO_STAGE= yes
.include <bsd.port.options.mk>
PORTDOCS= *
post-patch:
.for file in doc/hatari.1 doc/fr/hatari.1 tools/hconsole/hconsole.1
@ -58,18 +50,17 @@ post-build:
post-install:
(cd ${WRKSRC}/doc && ${INSTALL_MAN} ${PORTNAME}.1.gz \
${MANPREFIX}/man/man1)
@${MKDIR} ${MANPREFIX}/man/fr/man1
${STAGEDIR}${MANPREFIX}/man/man1)
@${MKDIR} ${STAGEDIR}${MANPREFIX}/man/fr/man1
(cd ${WRKSRC}/doc/fr && ${INSTALL_MAN} ${PORTNAME}.1.gz \
${MANPREFIX}/man/fr/man1)
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} readme.txt ${DOCSDIR})
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html [a-z]*.txt ${DOCSDIR})
@${MKDIR} ${DOCSDIR}/fr
(cd ${WRKSRC}/doc/fr && ${INSTALL_DATA} *.txt ${DOCSDIR}/fr)
@${MKDIR} ${DOCSDIR}/images
(cd ${WRKSRC}/doc/images && ${INSTALL_DATA} *.png ${DOCSDIR}/images)
.endif
${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)
.include <bsd.port.mk>

View File

@ -5,36 +5,16 @@ bin/hatari_profile.py
bin/hatariui
bin/hmsa
bin/zip2st
man/fr/man1/hatari.1.gz
man/man1/atari-hd-image.1.gz
man/man1/gst2ascii.1.gz
man/man1/hatari.1.gz
man/man1/hatari_profile.1.gz
man/man1/hatariui.1.gz
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%%/changelog.txt
%%PORTDOCS%%%%DOCSDIR%%/coding.txt
%%PORTDOCS%%%%DOCSDIR%%/compatibility.html
%%PORTDOCS%%%%DOCSDIR%%/emutos.txt
%%PORTDOCS%%%%DOCSDIR%%/fr/clavier-exemple.txt
%%PORTDOCS%%%%DOCSDIR%%/images/callgraph.png
%%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%%/readme.txt
%%PORTDOCS%%%%DOCSDIR%%/release-notes.txt
%%PORTDOCS%%%%DOCSDIR%%/todo.txt
%%DATADIR%%/hatari-icon.bmp
%%DATADIR%%/hatariui/README
%%DATADIR%%/hatariui/TODO
@ -58,8 +38,3 @@ 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