Lines 2-9
Link Here
|
2 |
# $FreeBSD: head/emulators/pearpc/Makefile 360256 2014-07-02 20:22:55Z antoine $ |
2 |
# $FreeBSD: head/emulators/pearpc/Makefile 360256 2014-07-02 20:22:55Z antoine $ |
3 |
|
3 |
|
4 |
PORTNAME= pearpc |
4 |
PORTNAME= pearpc |
5 |
PORTVERSION= 0.4 |
5 |
PORTVERSION= 0.5 |
6 |
PORTREVISION= 5 |
|
|
7 |
CATEGORIES= emulators |
6 |
CATEGORIES= emulators |
8 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}.0 |
7 |
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}.0 |
9 |
|
8 |
|
Lines 12-72
Link Here
|
12 |
|
11 |
|
13 |
LICENSE= GPLv2 |
12 |
LICENSE= GPLv2 |
14 |
|
13 |
|
15 |
GNU_CONFIGURE= yes |
14 |
USES= tar:bzip2 |
16 |
USE_XORG= x11 |
15 |
USE_XORG= x11 |
17 |
MAN1= ppc.1 |
16 |
GNU_CONFIGURE= yes |
18 |
SUB_FILES= pkg-message |
|
|
19 |
|
20 |
PLIST_FILES= bin/ppc etc/ppccfg.example %%DATADIR%%/video.x |
21 |
PLIST_DIRS= %%DATADIR%% |
22 |
|
23 |
OPTIONS_DEFINE= SDL OPTIMIZED_CFLAGS DEBUG |
24 |
SDL_DESC= Use SDL for user interface |
25 |
|
17 |
|
26 |
NO_STAGE= yes |
18 |
BROKEN_ia64= Internal compiler error on ia64 |
27 |
.include <bsd.port.pre.mk> |
|
|
28 |
|
19 |
|
29 |
.if ${ARCH} == "ia64" |
20 |
PORTEXAMPLES= ppccfg.example |
30 |
BROKEN= Internal compiler error on ia64 |
21 |
PLIST_FILES= bin/ppc man/man1/ppc.1.gz %%DATADIR%%/video.x |
31 |
.endif |
22 |
PLIST_DIRS= %%DATADIR%% |
32 |
|
23 |
|
33 |
.if ${PORT_OPTIONS:MSDL} |
24 |
OPTIONS_DEFINE= DEBUG EXAMPLES OPTIMIZED_CFLAGS SDL |
34 |
CONFIGURE_ARGS+= --enable-ui=sdl |
|
|
35 |
USE_SDL= sdl |
36 |
.else |
37 |
CONFIGURE_ARGS+= --enable-ui=x11 |
38 |
.endif |
39 |
|
25 |
|
40 |
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} |
26 |
DEBUG_CONFIGURE_ENABLE= debug |
41 |
CFLAGS+= -O3 -ffast-math |
27 |
OPTIMIZED_CFLAGS_CFLAGS= -O3 -ffast-math |
42 |
.else |
28 |
OPTIMIZED_CFLAGS_CONFIGURE_ENABLE= fpo |
43 |
CONFIGURE_ARGS+= --disable-fpo |
29 |
SDL_USE= sdl=sdl |
44 |
.endif |
30 |
SDL_CONFIGURE_ON= --enable-ui=sdl |
|
|
31 |
SDL_CONFIGURE_OFF= --enable-ui=x11 |
45 |
|
32 |
|
46 |
.if ${PORT_OPTIONS:MDEBUG} |
33 |
.include <bsd.port.options.mk> |
47 |
CONFIGURE_ARGS+= --enable-profiling # implies --enable-debug |
|
|
48 |
.endif |
49 |
|
34 |
|
50 |
.if ${ARCH} == "i386" |
35 |
.if ${ARCH} == "amd64" || ${ARCH} == "i386" |
51 |
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm |
36 |
USE_GCC= yes |
52 |
CONFIGURE_ARGS+= --enable-cpu=jitc_x86 |
|
|
53 |
.else |
37 |
.else |
54 |
CONFIGURE_ARGS+= --enable-cpu=generic |
38 |
CONFIGURE_ARGS+= --enable-cpu=generic |
55 |
.endif |
39 |
.endif |
56 |
|
40 |
|
57 |
post-extract: |
41 |
post-patch: |
58 |
@${REINPLACE_CMD} -e 's|-g -O2||;s|-O2||' ${WRKSRC}/configure |
42 |
@${REINPLACE_CMD} -e \ |
59 |
@${REINPLACE_CMD} -e 's|PROCESS_CPUTIME|THREAD_CPUTIME|' \ |
43 |
's|-O3|| ; \ |
|
|
44 |
s|^\(x86_64\)|amd64\* \| \1| ; \ |
45 |
s|-g -O2||' ${WRKSRC}/configure |
46 |
@${REINPLACE_CMD} -e \ |
47 |
's|video\.x"|${DATADIR}/&|' ${WRKSRC}/ppccfg.example |
48 |
@${REINPLACE_CMD} -e \ |
49 |
's|PROCESS_CPUTIME|THREAD_CPUTIME|' \ |
60 |
${WRKSRC}/src/system/osapi/posix/systimer.cc |
50 |
${WRKSRC}/src/system/osapi/posix/systimer.cc |
61 |
@${REINPLACE_CMD} -e 's|video\.x"|${DATADIR}/&|' \ |
|
|
62 |
${WRKSRC}/ppccfg.example |
63 |
|
51 |
|
64 |
post-install: |
52 |
post-install: |
65 |
@${MKDIR} ${DATADIR} |
53 |
@${MKDIR} ${STAGEDIR}${DATADIR} |
66 |
${INSTALL_DATA} ${WRKSRC}/video.x ${DATADIR} |
54 |
(cd ${WRKSRC} && ${INSTALL_DATA} video.x \ |
67 |
${INSTALL_DATA} ${WRKSRC}/ppccfg.example ${PREFIX}/etc |
55 |
${STAGEDIR}${DATADIR}) |
68 |
@${ECHO_CMD} |
56 |
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR} |
69 |
@${CAT} ${PKGMESSAGE} |
57 |
(cd ${WRKSRC} && ${INSTALL_DATA} ppccfg.example \ |
70 |
@${ECHO_CMD} |
58 |
${STAGEDIR}${EXAMPLESDIR}) |
71 |
|
59 |
|
72 |
.include <bsd.port.post.mk> |
60 |
.include <bsd.port.mk> |