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

(-)gdc/Makefile (-10 / +44 lines)
Lines 6-12 Link Here
6
#
6
#
7
7
8
PORTNAME=	gdc
8
PORTNAME=	gdc
9
PORTVERSION=	0.16
9
PORTVERSION=	0.17
10
CATEGORIES=	lang
10
CATEGORIES=	lang
11
MASTER_SITES=	${MASTER_SITE_GCC} \
11
MASTER_SITES=	${MASTER_SITE_GCC} \
12
		http://home.earthlink.net/~dvdfrdmn/d/:gdc
12
		http://home.earthlink.net/~dvdfrdmn/d/:gdc
Lines 22-32 Link Here
22
22
23
USE_BISON=	yes
23
USE_BISON=	yes
24
USE_BZIP2=	yes
24
USE_BZIP2=	yes
25
USE_GCC=	3.4
26
USE_GMAKE=	yes
25
USE_GMAKE=	yes
26
USE_PERL5_BUILD=yes
27
USE_REINPLACE=	yes
27
USE_REINPLACE=	yes
28
28
29
WRKSRC=		${WRKDIR}/gcc-${GCC_VERSIONSTRING}
29
SRCDIR=		${WRKDIR}/gcc-${GCC_VERSIONSTRING}
30
WRKSRC=		${WRKDIR}/build
31
PATCH_WRKSRC=	${SRCDIR}
30
32
31
GNU_CONFIGURE=	yes
33
GNU_CONFIGURE=	yes
32
CONFIGURE_ARGS+=--disable-nls \
34
CONFIGURE_ARGS+=--disable-nls \
Lines 34-65 Link Here
34
		--with-libiconv-prefix=${LOCALBASE} \
36
		--with-libiconv-prefix=${LOCALBASE} \
35
		--disable-shared \
37
		--disable-shared \
36
		--enable-languages=c,c++,d
38
		--enable-languages=c,c++,d
39
CONFIGURE_SCRIPT=	../${SRCDIR:C/${WRKDIR}\///}/configure
37
40
38
PLIST_SUB=	GCC_VER=${GCC_VERSION} CONF_TARGET=${CONFIGURE_TARGET}
41
PLIST_SUB=	GCC_VER=${GCC_VERSION} CONF_TARGET=${CONFIGURE_TARGET}
39
42
40
MAN1=		gdc.1
43
MAN1=		gdc.1
41
44
42
GCCDIR=		${WRKSRC}/gcc
45
.ifndef TARGET_GCC
46
TARGET_GCC=	3.4	# default
47
.elif ${TARGET_GCC} != 3.4 && ${TARGET_GCC} != 4.0
48
.error it cannot be specified as TARGET_GCC other than 3.4 or 4.0
49
.endif
50
51
.if ${TARGET_GCC} == 4.0
52
GCC_VERSION=	4.0.3
53
GCC_REVISION=	20051201
54
GCC_VERSIONSTRING=	4.0-${GCC_REVISION}
55
.else
43
GCC_VERSION=	3.4.5
56
GCC_VERSION=	3.4.5
44
GCC_REVISION=	20050920
57
GCC_REVISION=	20051122
45
GCC_VERSIONSTRING=	3.4-${GCC_REVISION}
58
GCC_VERSIONSTRING=	3.4-${GCC_REVISION}
59
.endif
60
61
GCCDIR=		${SRCDIR}/gcc
46
GDC_INC=	${PREFIX}/include/d/${GCC_VERSION}
62
GDC_INC=	${PREFIX}/include/d/${GCC_VERSION}
47
63
48
.include <bsd.port.pre.mk>
64
.include <bsd.port.pre.mk>
49
65
50
.if ${OSVERSION} < 500000
66
.if ${OSVERSION} < 500039
51
IGNORE=		It is supported on FreeBSD 5.x and later.
67
# GDC required g++ version on the system of 3.x 4.0.1 and later.
68
IGNORE=		it is supported on FreeBSD 5.x and later
52
.endif
69
.endif
53
70
54
.if ${ARCH} == "amd64"
71
.if ${ARCH} == "amd64"
72
# I hope the GDC will support amd64.
55
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
73
CONFIGURE_TARGET=	x86_64-portbld-freebsd${OSREL}
56
.endif
74
.endif
57
75
76
pre-fetch:
77
	@${ECHO_CMD}
78
	@${ECHO_CMD} "======================================================="
79
	@${ECHO_CMD}
80
	@${ECHO_CMD} "GDC is built with GCC version '${TARGET_GCC}'."
81
	@${ECHO_CMD}
82
	@${ECHO_CMD} "You can set 'TARGET_GCC' variable to '3.4' or '4.0'."
83
	@${ECHO_CMD}
84
	@${ECHO_CMD} "======================================================="
85
	@${ECHO_CMD}
86
58
post-extract:
87
post-extract:
59
	@${MV} ${WRKDIR}/d ${GCCDIR}
88
	@${MV} ${WRKDIR}/d ${GCCDIR}
60
89
61
post-patch:
90
post-patch:
62
	@(cd ${WRKSRC} && ${SH} ./gcc/d/setup-gcc.sh)
91
	@(cd ${SRCDIR} && ${SH} ./gcc/d/setup-gcc.sh)
63
	@${REINPLACE_CMD} -e \
92
	@${REINPLACE_CMD} -e \
64
		's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
93
		's|\(const char version_string.*\)";|\1 [FreeBSD]";|' \
65
		${GCCDIR}/version.c
94
		${GCCDIR}/version.c
Lines 67-72 Link Here
67
		's|^\(gcc_d_include_dir\).*|\1 = ${GDC_INC}|' \
96
		's|^\(gcc_d_include_dir\).*|\1 = ${GDC_INC}|' \
68
		${GCCDIR}/d/Make-lang.in
97
		${GCCDIR}/d/Make-lang.in
69
98
99
pre-configure:
100
	@(cd ${SRCDIR} ; contrib/gcc_update --touch)
101
	@${RM} -f ${SRCDIR}/gcc/*/*.info*
102
	@${MKDIR} ${CONFIGURE_WRKSRC}
103
70
post-build:
104
post-build:
71
	@${ECHO_CMD}
105
	@${ECHO_CMD}
72
	@${ECHO_CMD} "======================================================="
106
	@${ECHO_CMD} "======================================================="
Lines 79-86 Link Here
79
	@${ECHO_CMD}
113
	@${ECHO_CMD}
80
114
81
do-install:
115
do-install:
82
	${INSTALL_PROGRAM} ${GCCDIR}/gdc ${PREFIX}/bin
116
	${INSTALL_PROGRAM} ${WRKSRC}/gcc/gdc ${PREFIX}/bin
83
	${INSTALL_PROGRAM} ${GCCDIR}/cc1d ${PREFIX}/bin
117
	${INSTALL_PROGRAM} ${WRKSRC}/gcc/cc1d ${PREFIX}/bin
84
	${INSTALL_MAN} ${GCCDIR}/d/gdc.1 ${PREFIX}/man/man1
118
	${INSTALL_MAN} ${GCCDIR}/d/gdc.1 ${PREFIX}/man/man1
85
	@(cd ${WRKSRC} && ${GMAKE} install-target-libphobos)
119
	@(cd ${WRKSRC} && ${GMAKE} install-target-libphobos)
86
120
(-)gdc/distinfo (-6 / +15 lines)
Lines 1-6 Link Here
1
MD5 (gdc-0.16.tar.bz2) = 8591f5244088825573bbcff9aea1e1f3
1
MD5 (gdc-0.17.tar.bz2) = 4e8cccc0d416cb6d7e5bd043901dcedb
2
SIZE (gdc-0.16.tar.bz2) = 924218
2
SHA256 (gdc-0.17.tar.bz2) = 85e426fde257767c82bdade6d63480b8a0b5b15afceee410db178fbbf6157833
3
MD5 (gcc-core-3.4-20050920.tar.bz2) = d1323b6dc41d28f67b724823fc7244ca
3
SIZE (gdc-0.17.tar.bz2) = 931385
4
SIZE (gcc-core-3.4-20050920.tar.bz2) = 11115747
4
MD5 (gcc-core-3.4-20051122.tar.bz2) = c4f761455ed52bd3155d27a31a769a43
5
MD5 (gcc-g++-3.4-20050920.tar.bz2) = 6640e827ec158e2df44d4ae58b771765
5
SHA256 (gcc-core-3.4-20051122.tar.bz2) = 56af77864024197f9e76373bb2401bde850fd3138d98a5942cbbf6fc5231375b
6
SIZE (gcc-g++-3.4-20050920.tar.bz2) = 2480879
6
SIZE (gcc-core-3.4-20051122.tar.bz2) = 11378875
7
MD5 (gcc-g++-3.4-20051122.tar.bz2) = f9e8bad717ed5c3645c01830ca9cf448
8
SHA256 (gcc-g++-3.4-20051122.tar.bz2) = 1f28c15207cf95d47d633b25e8bac3bc46c77d4c07dd94bce5505ec591b1c594
9
SIZE (gcc-g++-3.4-20051122.tar.bz2) = 2557604
10
MD5 (gcc-core-4.0-20051201.tar.bz2) = ce8d5872396d1aefd2b471208ad70d32
11
SHA256 (gcc-core-4.0-20051201.tar.bz2) = d22fae731f303c8c001cc740d0d582e6fef1991b326de167b372fdcbb1e53a47
12
SIZE (gcc-core-4.0-20051201.tar.bz2) = 13774989
13
MD5 (gcc-g++-4.0-20051201.tar.bz2) = 93978791ac7e7b300182f0eac40d426c
14
SHA256 (gcc-g++-4.0-20051201.tar.bz2) = f88e5f34e1ba502c0b9f2998c0f76e6626df838a51417f9fe14a8a974123b08c
15
SIZE (gcc-g++-4.0-20051201.tar.bz2) = 2705481
(-)gdc/files/patch-gcc_d_phobos_config_gen_unix.c (+14 lines)
Line 0 Link Here
1
--- gcc/d/phobos/config/gen_unix.c.orig	Sun Dec  4 17:51:01 2005
2
+++ gcc/d/phobos/config/gen_unix.c	Sun Dec  4 17:51:42 2005
3
@@ -115,7 +115,11 @@
4
 	finish_struct(fi, 2, sizeof(rec), "timezone");
5
     }
6
     {
7
+#ifdef HAVE_TM_GMTOFF_AND_ZONE
8
+	FieldInfo fi[11];
9
+#else
10
 	FieldInfo fi[9];
11
+#endif
12
 	unsigned n;
13
 	struct tm rec;
14
 	INT_FIELD(fi[0], tm_sec);
(-)gdc/pkg-plist (+2 lines)
Lines 79-84 Link Here
79
include/d/%%GCC_VER%%/std/ctype.d
79
include/d/%%GCC_VER%%/std/ctype.d
80
include/d/%%GCC_VER%%/std/date.d
80
include/d/%%GCC_VER%%/std/date.d
81
include/d/%%GCC_VER%%/std/dateparse.d
81
include/d/%%GCC_VER%%/std/dateparse.d
82
include/d/%%GCC_VER%%/std/demangle.d
82
include/d/%%GCC_VER%%/std/file.d
83
include/d/%%GCC_VER%%/std/file.d
83
include/d/%%GCC_VER%%/std/format.d
84
include/d/%%GCC_VER%%/std/format.d
84
include/d/%%GCC_VER%%/std/gc.d
85
include/d/%%GCC_VER%%/std/gc.d
Lines 177-182 Link Here
177
include/d/%%GCC_VER%%/std/typeinfo/ti_ushort.d
178
include/d/%%GCC_VER%%/std/typeinfo/ti_ushort.d
178
include/d/%%GCC_VER%%/std/typeinfo/ti_void.d
179
include/d/%%GCC_VER%%/std/typeinfo/ti_void.d
179
include/d/%%GCC_VER%%/std/typeinfo/ti_wchar.d
180
include/d/%%GCC_VER%%/std/typeinfo/ti_wchar.d
181
include/d/%%GCC_VER%%/std/windows/charset.d
180
include/d/%%GCC_VER%%/std/windows/iunknown.d
182
include/d/%%GCC_VER%%/std/windows/iunknown.d
181
include/d/%%GCC_VER%%/std/windows/registry.d
183
include/d/%%GCC_VER%%/std/windows/registry.d
182
include/d/%%GCC_VER%%/std/windows/syserror.d
184
include/d/%%GCC_VER%%/std/windows/syserror.d

Return to bug 89928