View | Details | Raw Unified | Return to bug 185518 | Differences between
and this patch

Collapse All | Expand All

(-)emulators/generator-cbiere/Makefile (-13 / +7 lines)
Lines 15-34 Link Here
15
15
16
LICENSE=	GPLv2
16
LICENSE=	GPLv2
17
17
18
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg
18
LIB_DEPENDS=	libjpeg.so:${PORTSDIR}/graphics/jpeg
19
19
20
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS SDL
20
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS SDL
21
OPTIONS_DEFINE_i386=	RAZE
21
OPTIONS_DEFINE_i386=	RAZE
22
RAZE_DESC=	Use RAZE z80 emulation (only for i386)
22
RAZE_DESC=	Use RAZE z80 emulation
23
SDL_DESC=	Use SDL for audio
23
SDL_DESC=	Use SDL for audio
24
24
25
USE_BZIP2=	yes
25
USE_BZIP2=	yes
26
USES=		gmake
26
USE_GNOME=	gtk12
27
USE_GNOME=	gtk12
27
USE_SDL=	sdl
28
USE_SDL=	sdl
28
USE_GMAKE=	yes
29
GNU_CONFIGURE=	yes
29
GNU_CONFIGURE=	yes
30
CONFIGURE_ARGS=	--program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/
30
CONFIGURE_ARGS=	--program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/ \
31
CONFIGURE_ARGS+=--with-gtk
31
		--with-gtk
32
MAKE_JOBS_UNSAFE=	yes
32
MAKE_JOBS_UNSAFE=	yes
33
33
34
CPPFLAGS+=	-I${LOCALBASE}/include
34
CPPFLAGS+=	-I${LOCALBASE}/include
Lines 38-44 Link Here
38
38
39
LATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
39
LATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
40
40
41
NO_STAGE=	yes
42
.include <bsd.port.options.mk>
41
.include <bsd.port.options.mk>
43
42
44
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
43
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
Lines 57-68 Link Here
57
.endif
56
.endif
58
57
59
post-patch:
58
post-patch:
60
	@${REINPLACE_CMD} -e '/%define %1 @UNDERSCORE@%1 /d' \
59
	@${REINPLACE_CMD} -e \
61
		${WRKSRC}/raze/raze.asm.in
60
		'/%define %1 @UNDERSCORE@%1 /d' ${WRKSRC}/raze/raze.asm.in
62
63
post-install:
64
	@${ECHO_CMD}
65
	@${CAT} ${PKGMESSAGE}
66
	@${ECHO_CMD}
67
61
68
.include <bsd.port.mk>
62
.include <bsd.port.mk>
(-)emulators/generator-cbiere/files/patch-hdr__registers.h (+26 lines)
Line 0 Link Here
1
--- hdr/registers.h.orig
2
+++ hdr/registers.h
3
@@ -6,6 +6,7 @@
4
    call a C function, then when that C function returns these registers are
5
    still what they were before we made the call. */
6
 
7
+#if defined(__GNUC__) && !defined(__clang__)
8
 #ifdef PROCESSOR_ARM
9
      register uint32 reg68k_pc asm ("r7");
10
      register uint32 *reg68k_regs asm ("r8");
11
@@ -20,12 +21,13 @@
12
          register uint32 reg68k_pc asm ("%ebx");
13
          register uint32 *reg68k_regs asm ("%edi");
14
          register t_sr reg68k_sr asm ("%esi");
15
+#    endif
16
+#  endif
17
+#endif
18
 #    else
19
          extern uint32 reg68k_pc;
20
          extern uint32 *reg68k_regs;
21
          extern t_sr reg68k_sr;
22
-#    endif
23
-#  endif
24
 #endif
25
 
26
 #endif /* REGISTERS_HEADER_FILE */

Return to bug 185518