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

Collapse All | Expand All

(-)emulators/generator-cbiere/Makefile (-31 / +17 lines)
Lines 15-68 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
20
OPTIONS_DEFINE=	OPTIMIZED_CFLAGS SDL
21
OPTIONS_DEFINE_i386=	RAZE
22
RAZE_DESC=	Use RAZE z80 emulation (only for i386)
23
SDL_DESC=	Use SDL for audio
24
19
25
USE_BZIP2=	yes
20
USE_BZIP2=	yes
21
USES=		gmake
26
USE_GNOME=	gtk12
22
USE_GNOME=	gtk12
27
USE_SDL=	sdl
23
USE_SDL=	sdl
28
USE_GMAKE=	yes
29
GNU_CONFIGURE=	yes
24
GNU_CONFIGURE=	yes
30
CONFIGURE_ARGS=	--program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/
25
CONFIGURE_ARGS=	--program-transform-name=s/${PORTNAME}/${UNIQUENAME}/ \
31
CONFIGURE_ARGS+=--with-gtk
26
		--with-gtk
32
MAKE_JOBS_UNSAFE=	yes
27
MAKE_JOBS_UNSAFE=	yes
33
28
34
CPPFLAGS+=	-I${LOCALBASE}/include
29
CPPFLAGS+=	-I${LOCALBASE}/include
35
LDFLAGS+=	-L${LOCALBASE}/lib
30
LDFLAGS+=	-L${LOCALBASE}/lib
36
31
37
PLIST_FILES=	bin/${PORTNAME}${PKGNAMESUFFIX}-gtk
32
PLIST_FILES=	bin/${UNIQUENAME}-gtk
38
33
39
LATEST_LINK=	${PORTNAME}${PKGNAMESUFFIX}
34
OPTIONS_DEFINE=		OPTIMIZED_CFLAGS SDL
35
OPTIONS_DEFINE_i386=	RAZE
40
36
41
NO_STAGE=	yes
37
OPTIMIZED_CFLAGS_CONFIGURE_OFF=	--without-gcc
42
.include <bsd.port.options.mk>
38
RAZE_DESC=		Use RAZE z80 emulation
39
RAZE_BUILD_DEPENDS=	nasm:${PORTSDIR}/devel/nasm
40
RAZE_CONFIGURE_ON=	--with-raze
41
SDL_DESC=		Use SDL for audio
42
SDL_CONFIGURE_ON=	--with-sdl-audio
43
43
44
.if empty(PORT_OPTIONS:MOPTIMIZED_CFLAGS)
44
.include <bsd.port.options.mk>
45
CONFIGURE_ARGS+=	--without-gcc
46
.endif
47
45
48
.if ${PORT_OPTIONS:MRAZE}
46
.if empty(PORT_OPTIONS:MRAZE)
49
BUILD_DEPENDS+=	nasm:${PORTSDIR}/devel/nasm
50
CONFIGURE_ARGS+=--with-raze
51
.else
52
CONFIGURE_ARGS+=--with-cmz80
47
CONFIGURE_ARGS+=--with-cmz80
53
.endif
48
.endif
54
49
55
.if ${PORT_OPTIONS:MSDL}
56
CONFIGURE_ARGS+=--with-sdl-audio
57
.endif
58
59
post-patch:
50
post-patch:
60
	@${REINPLACE_CMD} -e '/%define %1 @UNDERSCORE@%1 /d' \
51
	@${REINPLACE_CMD} -e \
61
		${WRKSRC}/raze/raze.asm.in
52
		'/%define %1 @UNDERSCORE@%1 /d' ${WRKSRC}/raze/raze.asm.in
62
63
post-install:
64
	@${ECHO_CMD}
65
	@${CAT} ${PKGMESSAGE}
66
	@${ECHO_CMD}
67
53
68
.include <bsd.port.mk>
54
.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 */
(-)emulators/generator-cbiere/files/patch-main__reg68k.c (+13 lines)
Line 0 Link Here
1
--- main/reg68k.c.orig
2
+++ main/reg68k.c
3
@@ -18,8 +18,8 @@
4
 
5
 /*** global variables ***/
6
 
7
-#if (!(defined(PROCESSOR_ARM) || defined(PROCESSOR_SPARC) \
8
-       || defined(PROCESSOR_INTEL)))
9
+#if ((!(defined(PROCESSOR_ARM) || defined(PROCESSOR_SPARC) \
10
+       || defined(PROCESSOR_INTEL))) || defined(__clang__))
11
 uint32 reg68k_pc;
12
 uint32 *reg68k_regs;
13
 t_sr reg68k_sr;

Return to bug 185518