Lines 1-10
Link Here
|
1 |
PORTNAME= gnat12 |
1 |
PORTNAME= gnat12 |
2 |
PORTVERSION= 12.2.0 |
2 |
PORTVERSION= 12.2.0 |
3 |
PORTREVISION= 5 |
3 |
PORTREVISION= 6 |
4 |
CATEGORIES= lang |
4 |
CATEGORIES= lang |
5 |
MASTER_SITES= ${MASTER_SITE_GCC}:gcc \ |
5 |
MASTER_SITES= ${MASTER_SITE_GCC}:gcc \ |
6 |
LOCAL/thierry:gnat |
6 |
LOCAL/thierry:gnat |
7 |
MASTER_SITE_SUBDIR=releases/gcc-${PORTVERSION} |
7 |
MASTER_SITE_SUBDIR= releases/gcc-${PORTVERSION} |
8 |
DISTFILES= gcc-${PORTVERSION}.tar.xz:gcc |
8 |
DISTFILES= gcc-${PORTVERSION}.tar.xz:gcc |
9 |
|
9 |
|
10 |
MAINTAINER= thierry@FreeBSD.org |
10 |
MAINTAINER= thierry@FreeBSD.org |
Lines 14-39
WWW= https://www.adacore.com/community
Link Here
|
14 |
LICENSE= GPLv2 GPLv3 GPLv3RLE |
14 |
LICENSE= GPLv2 GPLv3 GPLv3RLE |
15 |
LICENSE_COMB= multi |
15 |
LICENSE_COMB= multi |
16 |
|
16 |
|
17 |
LIB_DEPENDS= libgmp.so:math/gmp \ |
17 |
LIB_DEPENDS= libgmp.so:math/gmp \ |
18 |
libmpc.so:math/mpc \ |
18 |
libisl.so:devel/isl \ |
19 |
libisl.so:devel/isl \ |
19 |
libmpc.so:math/mpc \ |
20 |
libmpfr.so:math/mpfr |
20 |
libmpfr.so:math/mpfr |
21 |
|
21 |
|
|
|
22 |
RUN_DEPENDS= ${LOCALBASE}/bin/as:devel/binutils |
23 |
|
22 |
USES= bison gettext-runtime gmake iconv libtool localbase tar:xz |
24 |
USES= bison gettext-runtime gmake iconv libtool localbase tar:xz |
23 |
USE_BINUTILS= yes |
25 |
USE_BINUTILS= yes |
24 |
BINARY_ALIAS= make=${GMAKE} |
26 |
BINARY_ALIAS= make=${GMAKE} |
25 |
|
27 |
|
26 |
OPTIONS_DEFINE= ASSETS |
28 |
OPTIONS_DEFINE= ASSETS |
27 |
OPTIONS_RADIO= BOOTSTRAP |
29 |
OPTIONS_RADIO= BOOTSTRAP |
28 |
OPTIONS_RADIO_BOOTSTRAP= GCC6AUX PREVASSET |
30 |
OPTIONS_RADIO_BOOTSTRAP= GCC6AUX PREVASSET |
29 |
OPTIONS_DEFAULT=GCC6AUX |
31 |
OPTIONS_DEFAULT= GCC6AUX |
30 |
.if defined(PACKAGE_BUILDING) |
32 |
.if defined(PACKAGE_BUILDING) |
31 |
OPTIONS_DEFAULT+= ASSETS |
33 |
OPTIONS_DEFAULT+= ASSETS |
32 |
.endif |
34 |
.endif |
33 |
OPTIONS_SUB= yes |
35 |
OPTIONS_SUB= yes |
34 |
ASSETS_DESC= Build an asset for future bootstrap on the target platform |
36 |
ASSETS_DESC= Build an asset for future bootstrap on the target platform |
35 |
GCC6AUX_DESC= Bootstrap from lang/gcc6-aux |
37 |
GCC6AUX_DESC= Bootstrap from lang/gcc6-aux |
36 |
PREVASSET_DESC= Bootstrap from the previous asset (if available) |
38 |
PREVASSET_DESC= Bootstrap from the previous asset (if available) |
37 |
|
39 |
|
38 |
GCC6AUX_BUILD_DEPENDS= gcc6-aux>0:lang/gcc6-aux |
40 |
GCC6AUX_BUILD_DEPENDS= gcc6-aux>0:lang/gcc6-aux |
39 |
PREVASSET_DISTFILES+= ${PREV_ASSET_FILE}.tar.xz:gnat |
41 |
PREVASSET_DISTFILES+= ${PREV_ASSET_FILE}.tar.xz:gnat |
Lines 42-111
GCC6AUX_VARS= PATHAUX=${LOCALBASE}/gcc6-aux/bin
Link Here
|
42 |
PREVASSET_VARS= PATHAUX=${WRKDIR}/${PREV_ASSET_FILE}/bin |
44 |
PREVASSET_VARS= PATHAUX=${WRKDIR}/${PREV_ASSET_FILE}/bin |
43 |
ASSETS_VARS= PKGMESSAGE=${WRKDIR}/pkg-message |
45 |
ASSETS_VARS= PKGMESSAGE=${WRKDIR}/pkg-message |
44 |
|
46 |
|
45 |
GNU_CONFIGURE= yes |
47 |
GNU_CONFIGURE= yes |
46 |
CONFIGURE_OUTSOURCE= yes |
48 |
CONFIGURE_OUTSOURCE= yes |
47 |
WRKSRC= ${WRKDIR}/gcc-${PORTVERSION} |
49 |
WRKSRC= ${WRKDIR}/gcc-${PORTVERSION} |
48 |
PKG_PREFIX= ${PREFIX}/${PORTNAME} |
50 |
PKG_PREFIX= ${PREFIX}/${PORTNAME} |
49 |
FULLPATH= /sbin:/bin:/usr/sbin:/usr/bin:${PATHAUX}:${PREFIX}/bin:${LOCALBASE}/bin |
51 |
FULLPATH= /sbin:/bin:/usr/sbin:/usr/bin:${PATHAUX}:${PREFIX}/bin:${LOCALBASE}/bin |
50 |
TARGLIB= ${PKG_PREFIX}/lib/gcc${GCCVER} |
52 |
TARGLIB= ${PKG_PREFIX}/lib \ |
|
|
53 |
${PKG_PREFIX}/lib/gcc${GCCVER} |
51 |
GNU_CONFIGURE_PREFIX= ${PKG_PREFIX} |
54 |
GNU_CONFIGURE_PREFIX= ${PKG_PREFIX} |
52 |
GNU_CONFIGURE_MANPREFIX=${PKG_PREFIX} |
55 |
GNU_CONFIGURE_MANPREFIX= ${PKG_PREFIX} |
53 |
MANPREFIX= ${PKG_PREFIX} |
56 |
MANPREFIX= ${PKG_PREFIX} |
54 |
CONFIGURE_ENV+= PATH=${FULLPATH} \ |
57 |
CONFIGURE_ENV+= CC=${PATHAUX}/gcc \ |
55 |
CC=${PATHAUX}/gcc \ |
58 |
CXX=${PATHAUX}/g++ \ |
56 |
CXX=${PATHAUX}/g++ |
59 |
PATH=${FULLPATH} |
57 |
CONFIGURE_ARGS= --enable-languages="c,ada" \ |
60 |
CONFIGURE_ARGS= --disable-libgomp \ |
58 |
--with-pkgversion="${OPSYS} Ports Collection" \ |
61 |
--disable-libmudflap \ |
59 |
--enable-gnu-indirect-function \ |
62 |
--disable-libquadmath \ |
60 |
--with-as=${LOCALBASE}/bin/as \ |
63 |
--disable-libssp \ |
61 |
--with-ld=${LOCALBASE}/bin/ld \ |
64 |
--disable-bootstrap \ |
62 |
--enable-threads=posix \ |
65 |
--enable-gnu-indirect-function \ |
63 |
--disable-libquadmath \ |
66 |
--enable-host-shared \ |
64 |
--enable-host-shared \ |
67 |
--enable-languages="c,ada" \ |
65 |
--disable-libmudflap \ |
68 |
--enable-libada \ |
66 |
--with-system-zlib \ |
69 |
--enable-threads=posix \ |
67 |
--disable-libgomp \ |
70 |
--with-as=${LOCALBASE}/bin/as \ |
68 |
--disable-libssp \ |
71 |
--with-ld=${LOCALBASE}/bin/ld \ |
69 |
--enable-libada \ |
72 |
--with-pkgversion="${OPSYS} Ports Collection" \ |
70 |
--without-zstd |
73 |
--with-system-zlib \ |
71 |
CONFIGURE_TARGET= ${GARCH}-portbld-${PLATFORM} |
74 |
--without-zstd |
|
|
75 |
CONFIGURE_TARGET= ${GARCH}-portbld-${PLATFORM} |
72 |
|
76 |
|
73 |
MAKE_ENV+= PATH=${FULLPATH} |
77 |
MAKE_ENV+= PATH=${FULLPATH} |
74 |
INSTALL_TARGET= install-strip |
78 |
INSTALL_TARGET= install-strip |
75 |
USE_LDCONFIG= ${TARGLIB} |
79 |
USE_LDCONFIG= ${TARGLIB} |
76 |
|
80 |
|
77 |
GNATMAKE= ${PATHAUX}/gnatmake |
81 |
GNATMAKE= ${PATHAUX}/gnatmake |
78 |
GNATBING= ${PATHAUX}/gnatbind |
82 |
GNATBIND= ${PATHAUX}/gnatbind |
79 |
|
83 |
|
80 |
GCCVER= ${PORTVERSION:R:R} |
84 |
GCCVER= ${PORTVERSION:R:R} |
81 |
|
85 |
|
82 |
PLATFORM= ${OPSYS:tl}${OSREL} |
86 |
PLATFORM= ${OPSYS:tl}${OSREL} |
83 |
GARCH= ${ARCH:S/amd64/x86_64/} |
87 |
GARCH= ${ARCH:S/amd64/x86_64/} |
84 |
OS_LABEL4VERS= [${OPSYS}${GARCH:S/amd//:S/x86_//:S/aarch/\/ARM/:S/i386/32/}] |
88 |
OS_LABEL4VERS= [${OPSYS}${GARCH:S/amd//:S/x86_//:S/aarch/\/ARM/:S/i386/32/}] |
85 |
REVFILE= ${WRKSRC}/gcc/REVISION |
89 |
REVFILE= ${WRKSRC}/gcc/REVISION |
86 |
PHASEFILE= ${WRKSRC}/gcc/DEV-PHASE |
90 |
PHASEFILE= ${WRKSRC}/gcc/DEV-PHASE |
87 |
ASSET_FILE= gnat-${GARCH}-${OPSYS:tl}.${OSREL:R}-${PKGVERSION} |
91 |
ASSET_FILE= gnat-${GARCH}-${OPSYS:tl}.${OSREL:R}-${PKGVERSION} |
88 |
PREV_ASSET_VER?= ${PORTVERSION} |
92 |
PREV_ASSET_VER?= ${PORTVERSION} |
89 |
PREV_ASSET_REV?= _2 |
93 |
PREV_ASSET_REV?= _2 |
90 |
PREV_ASSET_GCC= ${PREV_ASSET_VER:R:R} |
94 |
PREV_ASSET_GCC= ${PREV_ASSET_VER:R:R} |
91 |
PREV_ASSET_OSREL?= ${OSREL:R} |
95 |
PREV_ASSET_OSREL?= ${OSREL:R} |
92 |
PREV_ASSET_FILE=gnat-${GARCH}-${OPSYS:tl}.${PREV_ASSET_OSREL}-${PREV_ASSET_VER}${PREV_ASSET_REV} |
96 |
PREV_ASSET_FILE= gnat-${GARCH}-${OPSYS:tl}.${PREV_ASSET_OSREL}-${PREV_ASSET_VER}${PREV_ASSET_REV} |
93 |
|
97 |
|
94 |
PLIST_SUB= CONFTRGT=${CONFIGURE_TARGET} VER=${PORTVERSION} \ |
98 |
PLIST_SUB= ASSET_FILE=${ASSET_FILE} \ |
95 |
ASSET_FILE=${ASSET_FILE} |
99 |
CONFTRGT=${CONFIGURE_TARGET} \ |
|
|
100 |
VER=${PORTVERSION} |
96 |
# add-plist-info does not honor GNU_CONFIGURE_PREFIX => remove INFO files |
101 |
# add-plist-info does not honor GNU_CONFIGURE_PREFIX => remove INFO files |
97 |
INFOS= cpp cppinternals gcc gccinstall gccint gnat_rm gnat_ugn \ |
102 |
INFOS= cpp cppinternals gcc gccinstall gccint gnat_rm gnat_ugn \ |
98 |
gnat-style libitm |
103 |
gnat-style libitm |
99 |
|
104 |
|
100 |
.if exists(/usr/lib32/libc.so) |
105 |
.if exists(/usr/lib32/libc.so) |
101 |
OPTIONS_DEFINE_amd64+= MULTILIB |
106 |
OPTIONS_DEFINE_amd64+= MULTILIB |
102 |
OPTIONS_DEFAULT_amd64+= MULTILIB |
107 |
OPTIONS_DEFAULT_amd64+= MULTILIB |
103 |
OPTIONS_DEFINE_powerpc64+= MULTILIB |
108 |
OPTIONS_DEFINE_powerpc64+= MULTILIB |
104 |
#OPTIONS_DEFAULT_powerpc64+= MULTILIB # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 |
109 |
#OPTIONS_DEFAULT_powerpc64+= MULTILIB # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105010 |
105 |
MULTILIB_DESC= Build support for 32-bit and 64-bit targets |
110 |
MULTILIB_DESC= Build support for 32-bit and 64-bit targets |
106 |
MULTILIB_CONFIGURE_ENABLE= multilib |
111 |
MULTILIB_CONFIGURE_ENABLE= multilib |
107 |
.else |
112 |
.else |
108 |
CONFIGURE_ARGS+= --disable-multilib |
113 |
CONFIGURE_ARGS+= --disable-multilib |
109 |
.endif |
114 |
.endif |
110 |
|
115 |
|
111 |
.include <bsd.port.pre.mk> |
116 |
.include <bsd.port.pre.mk> |
Lines 124-132
PLIST_SUB+= 32BITS=""
Link Here
|
124 |
. endif |
129 |
. endif |
125 |
.endif |
130 |
.endif |
126 |
.if ${ARCH} == aarch64 |
131 |
.if ${ARCH} == aarch64 |
127 |
PLIST_SUB+= ARM="" NOARM="@comment " |
132 |
PLIST_SUB+= ARM="" \ |
|
|
133 |
NOARM="@comment " |
128 |
.else |
134 |
.else |
129 |
PLIST_SUB+= ARM="@comment " NOARM="" |
135 |
PLIST_SUB+= ARM="@comment " \ |
|
|
136 |
NOARM="" |
130 |
.endif |
137 |
.endif |
131 |
|
138 |
|
132 |
pre-configure: |
139 |
pre-configure: |
133 |
- |
|
|