blob: ddcab29c51f0a4ca08f3e4cc5463cd7b11cffd3a (
plain) (
blame)
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
66
67
68
69
70
71
72
73
|
# New ports collection makefile for: hatari
# Date created: 15 March 2004
# Whom: Michael Neumann <mneumann@ntecs.de>
#
# $FreeBSD$
#
PORTNAME= hatari
PORTVERSION= 1.5.0
PORTREVISION= 1
CATEGORIES= emulators
MASTER_SITES= BERLIOS
MAINTAINER= ports@FreeBSD.org
COMMENT= An Atari ST emulator
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
BUILD_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
LIB_DEPENDS= png.6:${PORTSDIR}/graphics/png
RUN_DEPENDS= portaudio>=19:${PORTSDIR}/audio/portaudio2
USE_BZIP2= yes
USE_GNOME= pygtk2
USE_SDL= sdl
USE_CMAKE= yes
CMAKE_ARGS= -DPORTAUDIO_INCLUDE_DIR:STRING="${PA2_INCLUDE_DIR}" \
-DPORTAUDIO_LIBRARY:STRING="${PA2_LIBRARY}" \
-DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
-DETCDIR:STRING="${PREFIX}/etc" \
-DMANDIR:STRING="man/man1"
MAKE_JOBS_SAFE= yes
MANCOMPRESSED= yes
MANLANG= "" fr
MAN1= ${PORTNAME}.1
MAN1_EN= atari-hd-image.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
post-patch:
@${FIND} ${WRKSRC} -name "*.1" | ${XARGS} ${REINPLACE_CMD} -e \
's|^/etc|${PREFIX}/etc| ; \
s| (or /usr.*|| ; \
s|/usr/share|${PREFIX}/share|'
@${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:
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1.gz ${MANPREFIX}/man/man1
@${MKDIR} ${MANPREFIX}/man/fr/man1
${INSTALL_MAN} ${WRKSRC}/doc/fr/${PORTNAME}.1.gz ${MANPREFIX}/man/fr/man1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/readme.txt ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/[a-z]*.txt ${DOCSDIR}
@${MKDIR} ${DOCSDIR}/fr
${INSTALL_DATA} ${WRKSRC}/doc/fr/*.txt ${DOCSDIR}/fr
@${MKDIR} ${DOCSDIR}/images
${INSTALL_DATA} ${WRKSRC}/doc/images/*.png ${DOCSDIR}/images
.endif
.include <bsd.port.mk>
|