Ticket #24904: patch.diff

File patch.diff, 3.1 KB (added by ryandesign (Ryan Carsten Schmidt), 15 years ago)

patch phase

  • devel/ice-cpp/files/patch-ice.cpp.config.Make.rules.diff

     
    1 diff -ru ../Ice-3.3.0.orig/cpp/config/Make.rules ./cpp/config/Make.rules
    2 --- ../Ice-3.3.0.orig/cpp/config/Make.rules     2008-05-16 10:24:06.000000000 -0700
    3 +++ ./cpp/config/Make.rules     2008-05-23 12:40:52.000000000 -0700
    4 @@ -163,9 +163,9 @@
    5  BZIP2_RPATH_LINK        = $(if $(BZIP2_HOME),$(call rpathlink,$(BZIP2_HOME)/$(libsubdir)))
     1--- cpp/config/Make.rules.orig  2010-02-25 09:55:46.000000000 -0600
     2+++ cpp/config/Make.rules       2010-05-16 00:37:22.000000000 -0500
     3@@ -188,9 +188,9 @@
     4 ICONV_LIBS              = $(if $(ICONV_HOME),-L$(ICONV_HOME)/$(libsubdir)) $(ICONV_LIB)
    65 
    76 ifneq ($(DB_HOME),)
    87-   DB_FLAGS             = -I$(DB_HOME)/include
     
    1211+   DB_LIBS              = -L$(DB_HOME)/$(libsubdir)/db46 -ldb_cxx
    1312+   DB_RPATH_LINK        = $(call rpathlink,$(DB_HOME)/$(libsubdir)/db46)
    1413 else
    15     ifeq ($(shell if [ -d /usr/include/db46 -a -d /usr/$(libsubdir)/db46 ] ; then echo yes; fi), yes)
    16        DB_FLAGS          = -I/usr/include/db46
     14    ifeq ($(shell if [ -d /usr/include/db48 -a -d /usr/$(libsubdir)/db48 ] ; then echo yes; fi), yes)
     15       DB_FLAGS          = -I/usr/include/db48
  • devel/ice-cpp/Portfile

     
    4747                port:readline \
    4848                port:mcpp
    4949
    50 patch {
    51         set cmd "cd ${workpath}/Ice-${version} && patch -p0 < ${filespath}/patch-ice.cpp.config.Make.rules.diff"
    52         ui_debug ${cmd}
    53         system ${cmd}
    54 
    55         set cmd "cd ${workpath}/Ice-${version} && patch -p0 < ${filespath}/patch-ice.cpp.config.Make.rules.Darwin.diff"
    56         ui_debug ${cmd}
    57         system ${cmd}
    58 
     50post-patch {
    5951        reinplace "s/-O2/-g -O2/" \
    6052                ${workpath}/Ice-${version}/cpp/config/Make.rules.Darwin
    6153
  • devel/ice-java/Portfile

     
    3434dist_subdir     ice-cpp
    3535distname        Ice-${version}
    3636patchfiles      patch-java.src.ant.Slice2JavaTask.java.diff
     37patch.pre_args  -p1
    3738checksums       md5 998b10627ade020cb00f5beb73efc0e0 \
    3839                sha1 1c8fe296af8d65d16cddac39a8bc24b71e069f75 \
    3940                rmd160 e874749f8d7d1916c1e3b19c006a7f2216e10f53
     
    4647                port:jgoodies-looks \
    4748                port:proguard
    4849
    49 patch {
    50         set cmd "cd ${workpath}/Ice-${version} && patch -p1 < ${filespath}/patch-java.src.ant.Slice2JavaTask.java.diff"
    51         ui_debug ${cmd}
    52         system ${cmd}
    53 }
    54 
    5550use_configure        no
    5651
    5752set classpath ${prefix}/lib/db46/db.jar:${prefix}/share/java/forms.jar:${prefix}/share/java/looks.jar:${prefix}/share/java/proguard.jar