From 38ae599271006aa4aa581f0b03a8a5014fcf143d Mon Sep 17 00:00:00 2001 From: Ade Lovett Date: Fri, 4 Aug 2000 01:19:21 +0000 Subject: Extensive patchfile cleanups using sobomax's wonderful post-extract rule --- x11/gnomelibs/Makefile | 7 +++++++ x11/gnomelibs/files/patch-aa | 38 ++++++++++++++------------------------ x11/gnomelibs/files/patch-ac | 12 ++++++------ x11/gnomelibs/files/patch-ag | 2 +- 4 files changed, 28 insertions(+), 31 deletions(-) (limited to 'x11/gnomelibs') diff --git a/x11/gnomelibs/Makefile b/x11/gnomelibs/Makefile index 5eca7664198c..90b311d64e31 100644 --- a/x11/gnomelibs/Makefile +++ b/x11/gnomelibs/Makefile @@ -39,4 +39,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ MAN1= gnome.1 gnome-config.1 MAN5= gnome-mime.5 +post-extract: + @${PERL} -pi -e 's|-lpthread|-pthread|g ; \ + s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure + @find ${WRKSRC} -name "Makefile.in" | xargs ${PERL} -pi -e \ + 's|\$\(datadir\)/gnome/|\$\(datadir\)/|g ; \ + s|\$\(datadir\)/locale|\$\(prefix\)/share/locale|g' + .include diff --git a/x11/gnomelibs/files/patch-aa b/x11/gnomelibs/files/patch-aa index 4b1108a7aa4a..604dc409f06d 100644 --- a/x11/gnomelibs/files/patch-aa +++ b/x11/gnomelibs/files/patch-aa @@ -1,33 +1,15 @@ ---- configure.orig Tue Apr 27 14:24:19 1999 -+++ configure Mon Jun 7 20:27:21 1999 -@@ -2521,7 +2521,7 @@ - fi - if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then - echo "$ac_t""yes" 1>&6 -- PTHREAD_LIB="-lc_r" -+ PTHREAD_LIB="" - else - echo "$ac_t""no" 1>&6 - echo $ac_n "checking for pthread_create""... $ac_c" 1>&6 -@@ -5215,7 +5215,7 @@ - cat conftest.$ac_ext >&5 - rm -rf conftest* - CATOBJEXT=.mo -- DATADIRNAME=lib -+ DATADIRNAME=share - fi - rm -f conftest* - INSTOBJEXT=.mo -@@ -7372,7 +7372,7 @@ +--- configure.orig Tue Aug 1 21:58:10 2000 ++++ configure Tue Aug 1 21:59:03 2000 +@@ -7214,7 +7214,7 @@ echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" -LIBS="-ltiff -lm $LIBS" +LIBS="-ltiff -ljpeg -lz -lm $LIBS" cat > conftest.$ac_ext <