Ticket #14761: proctools-leopard.patch

File proctools-leopard.patch, 2.1 KB (added by simmel@…, 16 years ago)
  • Portfile

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/proctools/Portfile ./Portfile
     
    2323build.type          bsd
    2424
    2525destroot.destdir    PREFIX=${destroot}${prefix} MANDIR=${destroot}${prefix}/share/man/man
     26
     27platform darwin 9 {
     28        pre-fetch {
     29                if {[file exists "/Developer/SDKs/MacOSX10.4u.sdk/usr/include/kvm.h"] != 1} {
     30                        return -code error "${name} requires Mac OS X 10.4 SDK on Leopard. You can choose to install this when you install Developer Tools."
     31                }
     32        }
     33        patchfiles                              lkvm.patch
     34        build.post_args         CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/usr/include"
     35}
  • new file files/patch-lkvm.patch

    diff -Naur /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/proctools/files/patch-lkvm.patch ./files/patch-lkvm.patch
    - +  
     1diff -Naur ../proctools-0.4pre1/pfind/Makefile ./pfind/Makefile
     2--- ./pfind/Makefile    2003-12-06 10:18:37.000000000 +0100
     3+++ ./pfind/Makefile    2008-05-31 10:44:03.000000000 +0200
     4@@ -1,6 +1,6 @@
     5 PROG= pfind
     6 DPADD+= ../proctools/libproctools.a
     7-LDADD= -L${MAKEOBJDIR} -lproctools -lkvm
     8+LDADD= -L${MAKEOBJDIR} -lproctools
     9 CLEANFILES+= pfind.cat1
     10 
     11 .if defined(OLDKVM)
     12diff -Naur ../proctools-0.4pre1/pgrep/Makefile ./pgrep/Makefile
     13--- ./pgrep/Makefile    2003-12-06 10:18:38.000000000 +0100
     14+++ ./pgrep/Makefile    2008-05-31 10:44:09.000000000 +0200
     15@@ -1,6 +1,6 @@
     16 PROG= pgrep
     17 DPADD+= ../proctools/libproctools.a
     18-LDADD= -L${MAKEOBJDIR} -lproctools -lkvm
     19+LDADD= -L${MAKEOBJDIR} -lproctools
     20 CLEANFILES+= pgrep.cat1
     21 
     22 .if defined(OLDKVM)
     23diff -Naur ../proctools-0.4pre1/pkill/Makefile ./pkill/Makefile
     24--- ./pkill/Makefile    2003-12-06 10:18:39.000000000 +0100
     25+++ ./pkill/Makefile    2008-05-31 10:44:15.000000000 +0200
     26@@ -1,6 +1,6 @@
     27 PROG=   pkill
     28 DPADD+= ../proctools/libproctools.a
     29-LDADD= -L${MAKEOBJDIR} -lproctools -lkvm
     30+LDADD= -L${MAKEOBJDIR} -lproctools
     31 CLEANFILES+= pkill.cat1
     32 
     33 .if defined(OLDKVM)