blob: 151284140e682d56dda5bbec0d5d8f2502fcdcf9 (
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
|
# Created by: Roman Bogorodskiy <novel@FreeBSD.org>
# $FreeBSD$
PORTNAME= pearpc
PORTVERSION= 0.5
PORTREVISION= 3
CATEGORIES= emulators
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}.0
MAINTAINER= ports@FreeBSD.org
COMMENT= PowerPC architecture emulator
LICENSE= GPLv2
USES= tar:bzip2
USE_XORG= x11
GNU_CONFIGURE= yes
BROKEN_ia64= internal compiler error on ia64
PORTEXAMPLES= ppccfg.example
PLIST_FILES= bin/ppc man/man1/ppc.1.gz %%DATADIR%%/video.x
OPTIONS_DEFINE= DEBUG EXAMPLES OPTIMIZED_CFLAGS SDL
DEBUG_CONFIGURE_ENABLE= debug
OPTIMIZED_CFLAGS_CFLAGS= -O3 -ffast-math
OPTIMIZED_CFLAGS_CONFIGURE_ENABLE= fpo
SDL_USE= sdl=sdl
SDL_CONFIGURE_ON= --enable-ui=sdl
SDL_CONFIGURE_OFF= --enable-ui=x11
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64" || ${ARCH} == "i386"
USE_GCC= yes
.else
CONFIGURE_ARGS+= --enable-cpu=generic
.endif
post-patch:
@${REINPLACE_CMD} -e \
's|-O3|| ; \
s|^\(x86_64\)|amd64\* \| \1| ; \
s|-g -O2||' ${WRKSRC}/configure
@${REINPLACE_CMD} -e \
's|video\.x"|${DATADIR}/&|' ${WRKSRC}/ppccfg.example
@${REINPLACE_CMD} -e \
's|PROCESS_CPUTIME|THREAD_CPUTIME|' \
${WRKSRC}/src/system/osapi/posix/systimer.cc
post-install:
@${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC} && ${INSTALL_DATA} video.x \
${STAGEDIR}${DATADIR})
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ppccfg.example \
${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|