[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] [patch] install packages conditionally, as well as buil

From: Stephen Compall
Subject: [Help-smalltalk] [patch] install packages conditionally, as well as building
Date: Fri, 13 Jul 2007 19:26:54 -0500
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv: Gecko/20070509 SeaMonkey/1.1.2

    install packages conditionally, as well as building

I moved each install-data-hook:: to be added iff the package in question should be enabled. This means you can `make install' without having Tcl/Tk, for example.

;;; Stephen Compall ** **
But you know how reluctant paranormal phenomena are to reveal
themselves when skeptics are present. --Robert Sheaffer, SkI 9/2003
2007-07-13  Stephen Compall  <address@hidden>

        * build-aux/package.m4: Write install-data-hook rule for star
        packages only if the package should be enabled.

        * Use same variable in derived Blox conditional as
        in BloxTK.

--- orig/build-aux/package.m4
+++ mod/build-aux/package.m4
@@ -23,6 +23,11 @@
 m4_define([_GST_PKG_ENABLE], [
   cat >> pkgrules.tmp << \EOF
+dnl If this is unconditionally included, the rule for $ will be
+dnl invoked on install
+install-data-hook:: $
+       $(GST_[]PACKAGE) --srcdir=$(srcdir) --target-directory=$(pkgdatadir) 
--destdir=$(DESTDIR) $
 -include $(srcdir)/_GST_PKG_STAMP
 all-local: $
@@ -65,9 +70,6 @@
        $(GST_[]PACKAGE) --srcdir=$(srcdir) --target-directory=$(pkgdatadir) 
--destdir=$(DESTDIR) --uninstall $(DESTDIR)$(pkgdatadir)/$
-install-data-hook:: $
-       $(GST_[]PACKAGE) --srcdir=$(srcdir) --target-directory=$(pkgdatadir) 
--destdir=$(DESTDIR) $
 dist-hook:: _GST_PKG_XML
        $(GST_[]PACKAGE) --srcdir=$(srcdir) --target-directory=_GST_PKG_DISTDIR 
--dist $<

--- orig/
+++ mod/
@@ -277,7 +277,7 @@
             case x"$enable_gtk" in
                 xno|xnot\ found) ;; *) enable_blox=yes ;; esac
-            case x"$gst_cv_tcltk_includes" in
+            case x"$gst_cv_tcltk_libs" in
                 xno|xnot\ found) ;; *) enable_blox=yes ;; esac], 
            [enable_blox], [package.xml])
 GST_PACKAGE([WebServer], [httpd])

reply via email to

[Prev in Thread] Current Thread [Next in Thread]