add missing patch
authorDaniel Drake <dsd@gentoo.org>
Thu, 8 Feb 2007 17:15:40 +0000 (17:15 +0000)
committerDaniel Drake <dsd@gentoo.org>
Thu, 8 Feb 2007 17:15:40 +0000 (17:15 +0000)
Package-Manager: portage-2.1.2-r9

dev-util/acgmake/Manifest
dev-util/acgmake/files/acgmake-1.2-cflags.patch [new file with mode: 0644]

index d19c49c8406d2cc7cba689ce67ccae7b97ba84d0..d4c327d034aa0b012345260800b7291919bc91d3 100644 (file)
@@ -1,3 +1,7 @@
+AUX acgmake-1.2-cflags.patch 1882 RMD160 88a6241b92313bf3c6f50266969ccea8c93e12ff SHA1 49e67410d8ee1df700e36453cdaa32e9cab9fe6b SHA256 333406f809cfe375360734765e13cd16ea21c882048bc511fc955e8455e6c583
+MD5 47a3905e0be5c5863286a3244cde1860 files/acgmake-1.2-cflags.patch 1882
+RMD160 88a6241b92313bf3c6f50266969ccea8c93e12ff files/acgmake-1.2-cflags.patch 1882
+SHA256 333406f809cfe375360734765e13cd16ea21c882048bc511fc955e8455e6c583 files/acgmake-1.2-cflags.patch 1882
 DIST acgmake-1.2.tgz 60894 RMD160 3803fe5694451b6da5111e20e71fad6e377eeeb7 SHA1 df36d2a7a63c950b893fc89f3adf165524ed0284 SHA256 6da22b8cc63c24ada430ca3120357cff774f1348f11d892956dba49cc9d680e8
 EBUILD acgmake-1.2-r1.ebuild 918 RMD160 e94626d6eac2f4e9d5c1e78dea0b2530fec7cd70 SHA1 2b55f768e7430cfd01f2ee3e2ebe1535bedf4332 SHA256 6d70e8dbb573c2e72a5e33786e553138e4488cac49f14f9ae2be80578b950d61
 MD5 2c433a543c018b949bcc870778876caf acgmake-1.2-r1.ebuild 918
diff --git a/dev-util/acgmake/files/acgmake-1.2-cflags.patch b/dev-util/acgmake/files/acgmake-1.2-cflags.patch
new file mode 100644 (file)
index 0000000..383b85d
--- /dev/null
@@ -0,0 +1,66 @@
+
+From: Daniel Drake <d.drake@mmm.com>
+
+Allow build flags to be pulled from the environment, and make this the default
+behaviour (but fall back on old defaults if environment is empty).
+
+Index: acgmake/bin/acgmake
+===================================================================
+--- acgmake.orig/bin/acgmake
++++ acgmake/bin/acgmake
+@@ -68,7 +68,7 @@ done
+ 
+ 
+ # parse options
+-CODE_LEVEL=dbg
++CODE_LEVEL=default
+ LIB_TYPE=shared
+ HIDE="@"
+ JOBS=""
+@@ -79,6 +79,7 @@ for i in $OPTIONS ; do
+ 
+ 
+     # compilation options
++    -env )  CODE_LEVEL=env ;;
+     -dbg )  CODE_LEVEL=dbg ;;
+     -prf )  CODE_LEVEL=prf ;;
+     -opt )  CODE_LEVEL=opt ;;
+@@ -174,6 +175,13 @@ if [ $? != 0 ] ; then 
+ fi
+ ARCH=`$ACGMAKE/bin/arch.sh`
+ 
++# if no compiler options were specified, attempt to pull cflags out of
++# environment, and fallback on dbg if none were specified
++if [ "$CODE_LEVEL" == "default" -a -z "$CXXFLAGS" -a -z "$CXXDEFS" -a -z "$LDFLAGS" ]; then
++    CODE_LEVEL="dbg"
++else
++    CODE_LEVEL="env"
++fi
+ 
+ 
+ # collect options
+Index: acgmake/modules/cxx_include
+===================================================================
+--- acgmake.orig/modules/cxx_include
++++ acgmake/modules/cxx_include
+@@ -153,9 +153,17 @@ ifneq ($(PACKAGES),)
+ endif
+ 
+ 
+-CXX_DEFS    += $(CXX_DEFS_$(call uppercase,$(CODE_LEVEL)))
+-CXX_CFLAGS  += $(CXX_CFLAGS_$(call uppercase,$(CODE_LEVEL)))
+-CXX_LDFLAGS += $(CXX_LDFLAGS_$(call uppercase,$(CODE_LEVEL)))
++ifeq ($(CODE_LEVEL),env)
++  # these come from the environment
++  CXX_DEFS    += $(CXXDEFS)
++  CXX_CFLAGS  += $(CXXFLAGS)
++  CXX_LDFLAGS += $(LDFLAGS)
++else
++  CXX_DEFS    += $(CXX_DEFS_$(call uppercase,$(CODE_LEVEL)))
++  CXX_CFLAGS  += $(CXX_CFLAGS_$(call uppercase,$(CODE_LEVEL)))
++  CXX_LDFLAGS += $(CXX_LDFLAGS_$(call uppercase,$(CODE_LEVEL)))
++endif
++
+ CXX_CFLAGS  += $(CXX_DEFS)
+ CXX_CFLAGS  += $(cxx-cflags)
+ CXX_CFLAGS  += $(cxx-incpath)