aboutsummaryrefslogtreecommitdiffstats
path: root/lang/gnatdroid-armv7/Makefile
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2013-04-30 20:38:52 +0800
committerbapt <bapt@FreeBSD.org>2013-04-30 20:38:52 +0800
commitdf18afd9511a560161e9131e93072f7e3b0a676c (patch)
tree5584adacbe99a7fa939a98ab22680b07a52dbd9e /lang/gnatdroid-armv7/Makefile
parent8a4eb1f28e9c9009d9afd28b8a247c46b351c32d (diff)
downloadfreebsd-ports-gnome-df18afd9511a560161e9131e93072f7e3b0a676c.tar.gz
freebsd-ports-gnome-df18afd9511a560161e9131e93072f7e3b0a676c.tar.zst
freebsd-ports-gnome-df18afd9511a560161e9131e93072f7e3b0a676c.zip
Base gnat on new 4.6.4 version of gcc
Sync gnat-aux with changes from gcc-aux Convert to new options framework Switch to dynamic plist No more install libiberty.a for gnatdroid* PR: ports/173412 Reported by: Jinsong Zhao <jszhao@yeah.net> Submitted by: John Marino <draco@marino.st> (maintainer)
Diffstat (limited to 'lang/gnatdroid-armv7/Makefile')
-rw-r--r--lang/gnatdroid-armv7/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/lang/gnatdroid-armv7/Makefile b/lang/gnatdroid-armv7/Makefile
index 2aad32cbd366..add56839fdae 100644
--- a/lang/gnatdroid-armv7/Makefile
+++ b/lang/gnatdroid-armv7/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: gnatdroid-armv7
-# Date created: 2011-07-20
-# Whom: John Marino <draco@marino>
-#
+# Created by: John Marino <draco@marino>
# $FreeBSD$
-#
PORTNAME= armv7
PORTVERSION= ${SNAPSHOT}
@@ -32,10 +28,12 @@ APPLY_DIFFS= core ada ada-testsuite gcc-testsuite
NO_MTREE= YES
# Disable C++ until arm.cc/no-rtti issue resolved for libsupc++
-#OPTIONS+= CXX "Also build C++ language" off
-OPTIONS+= FORT "Also build Fortran language" off
-OPTIONS+= OBJC "Also build Objective-C language" off
+OPTIONS_DEFINE= FORT OBJC #CXX
+OPTIONS_DEFAULT=
+CXX_DESC= Also build c++ language
+FORT_DESC= Also build Fortran language
+OBJC_DESC= Also build Objective-C language
DROID_TARGET= arm-android-eabi
DROID_ARCH= armv7-a
@@ -60,17 +58,17 @@ ADA_CONFIGURE_ENV= CC=${FULL_GNATGCC}
.include <bsd.port.pre.mk>
.include <bsd.port.options.mk>
-.if ${ARCH} == "amd64"
-OS_LABEL4VERS= "[FreeBSD64 x Android ${ARMVERSION}]"
+.if ${ARCH:S/amd64/x86_64/} == x86_64
+OS_LABEL4VERS= "[${OPSYS}64 x Android ${ARMVERSION}]"
.else
-OS_LABEL4VERS= "[FreeBSD32 x Android ${ARMVERSION}]"
+OS_LABEL4VERS= "[${OPSYS}32 x Android ${ARMVERSION}]"
.endif
###########
## C++ ##
###########
-.if defined(WITH_CXX)
+.if ${PORT_OPTIONS:MCXX}
LANGS+= c++
APPLY_DIFFS+= cxx cxx-testsuite
DISTFILES+= gcc-g++-${GCC_VERSION}.tar.bz2
@@ -84,7 +82,7 @@ PLIST_SUB+= CXX="@comment "
## Fortran ##
###############
-.if defined(WITH_FORT)
+.if ${PORT_OPTIONS:MFORT}
LANGS+= fortran
APPLY_DIFFS+= fortran
DISTFILES+= gcc-fortran-${GCC_VERSION}.tar.bz2
@@ -97,7 +95,7 @@ PLIST_SUB+= FRT="@comment "
## Objective-C ##
###################
-.if defined(WITH_OBJC)
+.if ${PORT_OPTIONS:MWITH_OBJC}
LANGS+= objc
DISTFILES+= gcc-objc-${GCC_VERSION}.tar.bz2
.endif