aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authormarino <marino@FreeBSD.org>2014-04-10 18:33:23 +0800
committermarino <marino@FreeBSD.org>2014-04-10 18:33:23 +0800
commite249cd8ff384b937cad4475eb594b8de73cefd12 (patch)
tree972a4c0a10dfaefa4a3b420952d62f261c56148b /lang
parenteaeea120b01ccae325108c6a8e7a414d2f1b15fc (diff)
downloadfreebsd-ports-gnome-e249cd8ff384b937cad4475eb594b8de73cefd12.tar.gz
freebsd-ports-gnome-e249cd8ff384b937cad4475eb594b8de73cefd12.tar.zst
freebsd-ports-gnome-e249cd8ff384b937cad4475eb594b8de73cefd12.zip
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.
Diffstat (limited to 'lang')
-rw-r--r--lang/gnatdroid-armv5/Makefile71
-rw-r--r--lang/gnatdroid-armv7/Makefile69
2 files changed, 68 insertions, 72 deletions
diff --git a/lang/gnatdroid-armv5/Makefile b/lang/gnatdroid-armv5/Makefile
index 5086559de94a..20040102b383 100644
--- a/lang/gnatdroid-armv5/Makefile
+++ b/lang/gnatdroid-armv5/Makefile
@@ -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
diff --git a/lang/gnatdroid-armv7/Makefile b/lang/gnatdroid-armv7/Makefile
index c3f02c4ad58d..0868aed0851e 100644
--- a/lang/gnatdroid-armv7/Makefile
+++ b/lang/gnatdroid-armv7/Makefile
@@ -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