svn commit: r316916 - head/Mk/Uses

Baptiste Daroussin bapt at FreeBSD.org
Tue Apr 30 11:41:45 UTC 2013


Author: bapt
Date: Tue Apr 30 11:41:44 2013
New Revision: 316916
URL: http://svnweb.freebsd.org/changeset/ports/316916

Log:
  Add a new USES ada.mk to establish Ada-capable compiler as a build dependency
  and set the build environement properly
  
  Submitted by:	John Marino <draco at marino.st>

Added:
  head/Mk/Uses/ada.mk   (contents, props changed)

Added: head/Mk/Uses/ada.mk
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/Mk/Uses/ada.mk	Tue Apr 30 11:41:44 2013	(r316916)
@@ -0,0 +1,27 @@
+# $FreeBSD$
+#
+# Establish Ada-capable compiler as a build dependency
+#
+# MAINTAINER: draco at marino.st
+#
+# Feature:      ada
+# Usage:        USES=ada
+# Valid ARGS:   does not require args
+
+.if !defined(_INCLUDE_USES_ADA_MK)
+_INCLUDE_USES_ADA_MK=    yes
+
+.if defined(ada_ARGS)
+IGNORE= USES=ada does not require args
+.endif
+
+CC=		ada
+BUILD_DEPENDS+=	${LOCALBASE}/gcc-aux/bin/ada:${PORTSDIR}/lang/gcc-aux
+
+MAKE_ENV+=	PATH=${LOCALBASE}/gcc-aux/bin:${PATH}
+MAKE_ENV+=	ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
+
+CONFIGURE_ENV+=	PATH=${LOCALBASE}/gcc-aux/bin:${PATH}
+CONFIGURE_ENV+=	ADA_PROJECT_PATH=${LOCALBASE}/lib/gnat
+
+.endif


More information about the svn-ports-all mailing list