mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-21 00:25:50 +00:00
lang/gnatdroid-arm5(7): Fix ARMv7, disable ARMv5
ARMv5 gnatdroid can't currently be built because sigtramp-armdroid.c uses thumb instructions that ARMv5 doesn't know. Until this is fixed, set the port to ignore. Both gnatdroid ports now using gcc-aux's Makefile.version for it's portrevision versions. Both now stop using CONFIGURE_ARGS because it processes the values in an unexpected way. Both get a revbump due to gcc-aux's binutils-caused revbump.
This commit is contained in:
parent
1c98c28942
commit
dfb479fcc5
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=350794
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= armv5
|
||||
PORTVERSION= ${SNAPSHOT}
|
||||
PORTREVISION= ${ARMV5_PR}
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ${MASTER_SITE_GCC}
|
||||
MASTER_SITE_SUBDIR= releases/gcc-${GCC_VERSION}
|
||||
@ -19,6 +20,8 @@ BUILD_DEPENDS= gnatdroid-sysroot>=19:${PORTSDIR}/lang/gnatdroid-sysroot \
|
||||
gnatdroid-binutils>=2.21:${PORTSDIR}/lang/gnatdroid-binutils
|
||||
RUN_DEPENDS:= ${BUILD_DEPENDS}
|
||||
|
||||
IGNORE= due to sigtramp-armdroid.c, ARMv7 is the minimum required CPU
|
||||
|
||||
NO_LICENSES_INSTALL= yes
|
||||
|
||||
.include "${.CURDIR}/../gcc-aux/Makefile.common"
|
||||
@ -38,6 +41,10 @@ DROID_TARGET= arm-aux-linux-androideabi
|
||||
DROID_ARCH= armv5te
|
||||
ARMVERSION= ARMv5
|
||||
FPU= vfp
|
||||
ALL_TARGET= all
|
||||
GARCH= ${ARCH:S/amd64/x86_64/}
|
||||
BITS= ${GARCH:S/x86_64/64/:S/i386/32/}
|
||||
OS_LABEL4VERS= [${OPSYS}${BITS} x Android ${ARMVERSION}]
|
||||
WRKSRC= ${WRKDIR}/${IDENTIFICATION}
|
||||
BUILD_WRKSRC= ${WRKDIR}/build
|
||||
PATCHDIR= ${.CURDIR}/../gcc-aux/files
|
||||
@ -53,16 +60,8 @@ EXTRA_PATCHES= ${FILESDIR}/acats.diff
|
||||
CROSS= gnat gnatbind gnatchop gnatclean gnatfind gnatkr \
|
||||
gnatlink gnatls gnatmake gnatprep gnatxref
|
||||
|
||||
ALL_TARGET= all
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH:S/amd64/x86_64/} == x86_64
|
||||
OS_LABEL4VERS= "[${OPSYS}64 x Android ${ARMVERSION}]"
|
||||
.else
|
||||
OS_LABEL4VERS= "[${OPSYS}32 x Android ${ARMVERSION}]"
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MFORT}
|
||||
LANGS+= fortran
|
||||
APPLY_DIFFS+= fortran
|
||||
@ -74,33 +73,33 @@ LANGS+= objc
|
||||
|
||||
INSTALL_ENV= ${MAKE_ENV:C/^PATH=/&${SRPREFIX}\/${ARMVERSION}\/bin:/}
|
||||
|
||||
CONFIGURE_ARGS= --enable-languages=${LANGS:Q}
|
||||
CONFIGURE_ARGS+= --target=${DROID_TARGET}
|
||||
CONFIGURE_ARGS+= --program-prefix=${DROID_TARGET}-
|
||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||
CONFIGURE_ARGS+= --with-arch=${DROID_ARCH}
|
||||
CONFIGURE_ARGS+= --with-system-zlib
|
||||
CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
|
||||
CONFIGURE_ARGS+= --with-mpfr=${LOCALBASE}
|
||||
CONFIGURE_ARGS+= --with-mpc=${LOCALBASE}
|
||||
CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG}
|
||||
CONFIGURE_ARGS+= --with-sysroot=${SRPREFIX}
|
||||
CONFIGURE_ARGS+= --with-float=soft
|
||||
CONFIGURE_ARGS+= --with-fpu=${FPU}
|
||||
CONFIGURE_ARGS+= --enable-target-optspace
|
||||
CONFIGURE_ARGS+= --enable-threads=posix
|
||||
CONFIGURE_ARGS+= --enable-cxx-flags=-frtti
|
||||
CONFIGURE_ARGS+= --disable-bootstrap
|
||||
CONFIGURE_ARGS+= --disable-shared
|
||||
CONFIGURE_ARGS+= --disable-libssp
|
||||
CONFIGURE_ARGS+= --disable-libgomp
|
||||
CONFIGURE_ARGS+= --disable-libmudflap
|
||||
CONFIGURE_ARGS+= --disable-libquadmath
|
||||
CONFIGURE_ARGS+= --disable-libsanitizer
|
||||
CONFIGURE_ARGS+= --disable-libitm
|
||||
CONFIGURE_ARGS+= --disable-sjlj-exceptions
|
||||
CONFIGURE_ARGS+= --disable-tls
|
||||
CONFIGURE_ARGS+= --disable-nls
|
||||
ADA_CONFIG_ARGS= --enable-languages=${LANGS:Q}
|
||||
ADA_CONFIG_ARGS+= --target=${DROID_TARGET}
|
||||
ADA_CONFIG_ARGS+= --program-prefix=${DROID_TARGET}-
|
||||
ADA_CONFIG_ARGS+= --prefix=${PREFIX}
|
||||
ADA_CONFIG_ARGS+= --with-arch=${DROID_ARCH}
|
||||
ADA_CONFIG_ARGS+= --with-system-zlib
|
||||
ADA_CONFIG_ARGS+= --with-gmp=${LOCALBASE}
|
||||
ADA_CONFIG_ARGS+= --with-mpfr=${LOCALBASE}
|
||||
ADA_CONFIG_ARGS+= --with-mpc=${LOCALBASE}
|
||||
ADA_CONFIG_ARGS+= ${ICONV_CONFIGURE_ARG}
|
||||
ADA_CONFIG_ARGS+= --with-sysroot=${SRPREFIX}
|
||||
ADA_CONFIG_ARGS+= --with-float=soft
|
||||
ADA_CONFIG_ARGS+= --with-fpu=${FPU}
|
||||
ADA_CONFIG_ARGS+= --enable-target-optspace
|
||||
ADA_CONFIG_ARGS+= --enable-threads=posix
|
||||
ADA_CONFIG_ARGS+= --enable-cxx-flags=-frtti
|
||||
ADA_CONFIG_ARGS+= --disable-bootstrap
|
||||
ADA_CONFIG_ARGS+= --disable-shared
|
||||
ADA_CONFIG_ARGS+= --disable-libssp
|
||||
ADA_CONFIG_ARGS+= --disable-libgomp
|
||||
ADA_CONFIG_ARGS+= --disable-libmudflap
|
||||
ADA_CONFIG_ARGS+= --disable-libquadmath
|
||||
ADA_CONFIG_ARGS+= --disable-libsanitizer
|
||||
ADA_CONFIG_ARGS+= --disable-libitm
|
||||
ADA_CONFIG_ARGS+= --disable-sjlj-exceptions
|
||||
ADA_CONFIG_ARGS+= --disable-tls
|
||||
ADA_CONFIG_ARGS+= --disable-nls
|
||||
|
||||
post-extract:
|
||||
# Personalize GNAT for each different machine
|
||||
@ -116,7 +115,7 @@ post-extract:
|
||||
do-configure:
|
||||
${MKDIR} ${BUILD_WRKSRC}
|
||||
cd ${BUILD_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
||||
${CFG_SCRIPT} ${CONFIGURE_ARGS}
|
||||
${CFG_SCRIPT} ${ADA_CONFIG_ARGS}
|
||||
|
||||
do-install:
|
||||
# Buggy makefile; seems to have forgotten this is a cross compiler
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
PORTNAME= armv7
|
||||
PORTVERSION= ${SNAPSHOT}
|
||||
PORTREVISION= ${ARMV7_PR}
|
||||
CATEGORIES= lang
|
||||
MASTER_SITES= ${MASTER_SITE_GCC}
|
||||
MASTER_SITE_SUBDIR= releases/gcc-${GCC_VERSION}
|
||||
@ -38,6 +39,10 @@ DROID_TARGET= arm-aux-linux-androideabi
|
||||
DROID_ARCH= armv7-a
|
||||
ARMVERSION= ARMv7
|
||||
FPU= neon
|
||||
ALL_TARGET= all
|
||||
GARCH= ${ARCH:S/amd64/x86_64/}
|
||||
BITS= ${GARCH:S/x86_64/64/:S/i386/32/}
|
||||
OS_LABEL4VERS= [${OPSYS}${BITS} x Android ${ARMVERSION}]
|
||||
WRKSRC= ${WRKDIR}/${IDENTIFICATION}
|
||||
BUILD_WRKSRC= ${WRKDIR}/build
|
||||
PATCHDIR= ${.CURDIR}/../gcc-aux/files
|
||||
@ -53,16 +58,8 @@ EXTRA_PATCHES= ${FILESDIR}/acats.diff
|
||||
CROSS= gnat gnatbind gnatchop gnatclean gnatfind gnatkr \
|
||||
gnatlink gnatls gnatmake gnatprep gnatxref
|
||||
|
||||
ALL_TARGET= all
|
||||
|
||||
.include <bsd.port.options.mk>
|
||||
|
||||
.if ${ARCH:S/amd64/x86_64/} == x86_64
|
||||
OS_LABEL4VERS= "[${OPSYS}64 x Android ${ARMVERSION}]"
|
||||
.else
|
||||
OS_LABEL4VERS= "[${OPSYS}32 x Android ${ARMVERSION}]"
|
||||
.endif
|
||||
|
||||
.if ${PORT_OPTIONS:MFORT}
|
||||
LANGS+= fortran
|
||||
APPLY_DIFFS+= fortran
|
||||
@ -74,33 +71,33 @@ LANGS+= objc
|
||||
|
||||
INSTALL_ENV= ${MAKE_ENV:C/^PATH=/&${SRPREFIX}\/${ARMVERSION}\/bin:/}
|
||||
|
||||
CONFIGURE_ARGS= --enable-languages=${LANGS:Q}
|
||||
CONFIGURE_ARGS+= --target=${DROID_TARGET}
|
||||
CONFIGURE_ARGS+= --program-prefix=${DROID_TARGET}-
|
||||
CONFIGURE_ARGS+= --prefix=${PREFIX}
|
||||
CONFIGURE_ARGS+= --with-arch=${DROID_ARCH}
|
||||
CONFIGURE_ARGS+= --with-system-zlib
|
||||
CONFIGURE_ARGS+= --with-gmp=${LOCALBASE}
|
||||
CONFIGURE_ARGS+= --with-mpfr=${LOCALBASE}
|
||||
CONFIGURE_ARGS+= --with-mpc=${LOCALBASE}
|
||||
CONFIGURE_ARGS+= ${ICONV_CONFIGURE_ARG}
|
||||
CONFIGURE_ARGS+= --with-sysroot=${SRPREFIX}
|
||||
CONFIGURE_ARGS+= --with-float=soft
|
||||
CONFIGURE_ARGS+= --with-fpu=${FPU}
|
||||
CONFIGURE_ARGS+= --enable-target-optspace
|
||||
CONFIGURE_ARGS+= --enable-threads=posix
|
||||
CONFIGURE_ARGS+= --enable-cxx-flags=-frtti
|
||||
CONFIGURE_ARGS+= --disable-bootstrap
|
||||
CONFIGURE_ARGS+= --disable-shared
|
||||
CONFIGURE_ARGS+= --disable-libssp
|
||||
CONFIGURE_ARGS+= --disable-libgomp
|
||||
CONFIGURE_ARGS+= --disable-libmudflap
|
||||
CONFIGURE_ARGS+= --disable-libquadmath
|
||||
CONFIGURE_ARGS+= --disable-libsanitizer
|
||||
CONFIGURE_ARGS+= --disable-libitm
|
||||
CONFIGURE_ARGS+= --disable-sjlj-exceptions
|
||||
CONFIGURE_ARGS+= --disable-tls
|
||||
CONFIGURE_ARGS+= --disable-nls
|
||||
ADA_CONFIG_ARGS= --enable-languages=${LANGS:Q}
|
||||
ADA_CONFIG_ARGS+= --target=${DROID_TARGET}
|
||||
ADA_CONFIG_ARGS+= --program-prefix=${DROID_TARGET}-
|
||||
ADA_CONFIG_ARGS+= --prefix=${PREFIX}
|
||||
ADA_CONFIG_ARGS+= --with-arch=${DROID_ARCH}
|
||||
ADA_CONFIG_ARGS+= --with-system-zlib
|
||||
ADA_CONFIG_ARGS+= --with-gmp=${LOCALBASE}
|
||||
ADA_CONFIG_ARGS+= --with-mpfr=${LOCALBASE}
|
||||
ADA_CONFIG_ARGS+= --with-mpc=${LOCALBASE}
|
||||
ADA_CONFIG_ARGS+= ${ICONV_CONFIGURE_ARG}
|
||||
ADA_CONFIG_ARGS+= --with-sysroot=${SRPREFIX}
|
||||
ADA_CONFIG_ARGS+= --with-float=soft
|
||||
ADA_CONFIG_ARGS+= --with-fpu=${FPU}
|
||||
ADA_CONFIG_ARGS+= --enable-target-optspace
|
||||
ADA_CONFIG_ARGS+= --enable-threads=posix
|
||||
ADA_CONFIG_ARGS+= --enable-cxx-flags=-frtti
|
||||
ADA_CONFIG_ARGS+= --disable-bootstrap
|
||||
ADA_CONFIG_ARGS+= --disable-shared
|
||||
ADA_CONFIG_ARGS+= --disable-libssp
|
||||
ADA_CONFIG_ARGS+= --disable-libgomp
|
||||
ADA_CONFIG_ARGS+= --disable-libmudflap
|
||||
ADA_CONFIG_ARGS+= --disable-libquadmath
|
||||
ADA_CONFIG_ARGS+= --disable-libsanitizer
|
||||
ADA_CONFIG_ARGS+= --disable-libitm
|
||||
ADA_CONFIG_ARGS+= --disable-sjlj-exceptions
|
||||
ADA_CONFIG_ARGS+= --disable-tls
|
||||
ADA_CONFIG_ARGS+= --disable-nls
|
||||
|
||||
post-extract:
|
||||
# Personalize GNAT for each different machine
|
||||
@ -116,7 +113,7 @@ post-extract:
|
||||
do-configure:
|
||||
${MKDIR} ${BUILD_WRKSRC}
|
||||
cd ${BUILD_WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
|
||||
${CFG_SCRIPT} ${CONFIGURE_ARGS}
|
||||
${CFG_SCRIPT} ${ADA_CONFIG_ARGS}
|
||||
|
||||
do-install:
|
||||
# Buggy makefile; seems to have forgotten this is a cross compiler
|
||||
|
Loading…
Reference in New Issue
Block a user