View | Details | Raw Unified | Return to bug 85456
Collapse All | Expand All

(-)generator-cbiere/Makefile (-35 / +9 lines)
Lines 6-16 Link Here
6
#
6
#
7
7
8
PORTNAME=	generator
8
PORTNAME=	generator
9
PORTVERSION=	0.35
9
PORTVERSION=	0.35.r1
10
PORTEPOCH=	1
10
CATEGORIES=	emulators
11
CATEGORIES=	emulators
11
MASTER_SITES=	http://www.ghostwhitecrab.com/generator/
12
MASTER_SITES=	http://www.ghostwhitecrab.com/generator/ \
13
		http://www.ghostwhitecrab.de/generator/
12
PKGNAMESUFFIX=	-cbiere
14
PKGNAMESUFFIX=	-cbiere
13
DISTNAME=	${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}
15
DISTNAME=	${PORTNAME}-0.35${PKGNAMESUFFIX}-r1
14
16
15
MAINTAINER=	alejandro@varnet.biz
17
MAINTAINER=	alejandro@varnet.biz
16
COMMENT=	SEGA Genesis emulator
18
COMMENT=	SEGA Genesis emulator
Lines 26-37 Link Here
26
		RAZE "Use RAZE z80 emulation (only for i386)" on \
28
		RAZE "Use RAZE z80 emulation (only for i386)" on \
27
		SDL_AUDIO "Use SDL for audio" off
29
		SDL_AUDIO "Use SDL for audio" off
28
30
29
GNU_CONFIGURE=		yes
31
GNU_CONFIGURE=	yes
30
CONFIGURE_ARGS=		--program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/
32
CONFIGURE_ARGS=	--program-transform-name=s/${PORTNAME}/${PORTNAME}${PKGNAMESUFFIX}/
31
CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
32
CONFIGURE_ENV=		CPPFLAGS="-I${LOCALBASE}/include" \
33
			LDFLAGS="-L${LOCALBASE}/lib"
34
CONFIGURE_ARGS+=	--with-gtk
33
CONFIGURE_ARGS+=	--with-gtk
34
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
35
		LDFLAGS="-L${LOCALBASE}/lib"
35
36
36
PLIST_FILES=	bin/${PORTNAME}${PKGNAMESUFFIX}-gtk
37
PLIST_FILES=	bin/${PORTNAME}${PKGNAMESUFFIX}-gtk
37
38
Lines 43-75 Link Here
43
	@${ECHO_CMD}
44
	@${ECHO_CMD}
44
45
45
.include <bsd.port.pre.mk>
46
.include <bsd.port.pre.mk>
46
47
.if ${ARCH} != "amd64" && ${ARCH} != "i386"
48
USE_REINPLACE=	yes
49
50
post-patch:
51
# These architectures do not support "-minline-all-stringops"
52
	@${REINPLACE_CMD} -e 's|-minline-all-stringops||g' \
53
				${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
54
.if ${ARCH} == "alpha"
55
# "-ffast-math" does not work on alpha
56
	@${REINPLACE_CMD} -e 's|-ffast-math||g' \
57
				${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
58
.endif
59
.endif
60
61
# Generator needs GCC 2.95.x or GCC >= 3.4.2 to work properly.
62
# Generator-CBiere automatically determines the GCC version.
63
64
.if ${OSVERSION} < 400012
65
# GCC < 2.95 is in the base system.
66
USE_GCC=		2.95
67
.endif
68
69
.if ${OSVERSION} >= 500035 && ${OSVERSION} < 502126
70
# GCC > 2.95 (3.X) && GCC < 3.4.2 is in the base system.
71
USE_GCC=		3.4
72
.endif
73
47
74
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
48
.if defined(WITHOUT_OPTIMIZED_CFLAGS)
75
CONFIGURE_ARGS+=	--without-gcc
49
CONFIGURE_ARGS+=	--without-gcc
(-)generator-cbiere/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
MD5 (generator-0.35-cbiere.tar.bz2) = bce3326c165d74e8a00e50355b653e08
1
MD5 (generator-0.35-cbiere-r1.tar.bz2) = 94cbc31f778f5ec6cc2979520aae26d6
2
SIZE (generator-0.35-cbiere.tar.bz2) = 454740
2
SIZE (generator-0.35-cbiere-r1.tar.bz2) = 445802
(-)generator-cbiere/files/patch-configure (-10 lines)
Lines 1-10 Link Here
1
--- configure.orig     Sun Apr 17 03:19:27 2005
2
+++ configure  Fri Jun 17 20:12:41 2005
3
@@ -4179,7 +4179,6 @@
4
   fi
5
6
   if [ "x$GCCVER" != "xno" ]; then
7
-    CFLAGS="$CFLAGS -W -Wall -Wformat=2"
8
     if [ "x$WARN" != "xno" ]; then
9
       CFLAGS="$CFLAGS -Wstrict-prototypes -Wunused"
10
     fi
(-)generator-cbiere/files/patch-hdr_generator.h (-15 / +19 lines)
Lines 1-6 Link Here
1
--- hdr/generator.h.orig	Mon Jan  3 19:07:55 2005
1
--- hdr/generator.h.orig	Sun Aug 28 14:44:26 2005
2
+++ hdr/generator.h	Thu Jun 16 22:56:43 2005
2
+++ hdr/generator.h	Sun Aug 28 22:33:12 2005
3
@@ -257,14 +257,22 @@
3
@@ -257,17 +257,26 @@
4
 #include "registers.h"
4
 #include "registers.h"
5
 #endif
5
 #endif
6
 
6
 
Lines 9-26 Link Here
9
+#endif
9
+#endif
10
+
10
+
11
 #if defined(linux)
11
 #if defined(linux)
12
   #include <byteswap.h>
12
 
13
   #define SWAP16(x) bswap_16((x))
13
 #include <byteswap.h>
14
   #define SWAP32(x) bswap_32((x))
14
 #define SWAP16(x) bswap_16((x))
15
 #define SWAP32(x) bswap_32((x))
16
 
15
-#elif defined(__FreeBSD__)
17
-#elif defined(__FreeBSD__)
16
+#elif defined(__FreeBSD__) && __FreeBSD_version >= 500000
18
+#elif defined(__FreeBSD__) && __FreeBSD_version >=500000
17
   #include <sys/endian.h>
19
 
18
   #define SWAP16(x) bswap16((x))
20
 #include <sys/endian.h>
19
   #define SWAP32(x) bswap32((x))
21
 #define SWAP16(x) bswap16((x))
22
 #define SWAP32(x) bswap32((x))
23
+
20
+#elif defined(__FreeBSD__)
24
+#elif defined(__FreeBSD__)
21
+  #include <sys/endian.h>
25
+#include <sys/endian.h>
22
+  #define SWAP16(x) (be16toh(x))
26
+#define SWAP16(x) (be16toh(x))
23
+  #define SWAP32(x) (be32toh(x))
27
+#define SWAP32(x) (be32toh(x))
28
 
24
 #elif defined(__NetBSD__)
29
 #elif defined(__NetBSD__)
25
   #include <sys/bswap.h>
30
 
26
   #define SWAP16(x) bswap16((x))

Return to bug 85456