summaryrefslogtreecommitdiff
path: root/modules/ACE/debianbuild/patches/92-default-ACE_ROOT.dpatch
blob: c9be527c910a5ec8f58f3f57fa674247fa21eb69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#! /bin/sh /usr/share/dpatch/dpatch-run
## 92-default-ACE_ROOT.dpatch by Thomas Girard <thomas.g.girard@free.fr>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Automatically set ACE_ROOT to /usr/share/ace in MPC generated
## DP: GNUmakefile if no ACE_ROOT is set.

@DPATCH@
--- ACE_wrappers.orig/bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm
+++ ACE_wrappers/bin/MakeProjectCreator/modules/GNUACEWorkspaceCreator.pm
@@ -89,6 +89,9 @@
             "ifeq (\$(findstring k,\$(MAKEFLAGS)),k)$crlf",
             "  KEEP_GOING = -$crlf",
             "endif$crlf$crlf",
+            "ifndef ACE_ROOT$crlf",
+            "  export ACE_ROOT = /usr/share/ace$crlf",
+            "endif$crlf",
             "include \$(ACE_ROOT)/include/makeinclude/macros.GNU$crlf";
 
   if ($named) {