From 9594f3f8939f5178057c6a588135f0bab6d52511 Mon Sep 17 00:00:00 2001 From: Ade Lovett Date: Fri, 4 Aug 2000 01:34:38 +0000 Subject: Extensive patchfile cleanups using sobomax's wonderful post-extract rule --- graphics/eog/Makefile | 7 +++++++ graphics/eog2/Makefile | 7 +++++++ graphics/gnomeiconedit/Makefile | 7 +++++++ 3 files changed, 21 insertions(+) (limited to 'graphics') diff --git a/graphics/eog/Makefile b/graphics/eog/Makefile index b2c38a7e34b6..299c00ec8355 100644 --- a/graphics/eog/Makefile +++ b/graphics/eog/Makefile @@ -26,4 +26,11 @@ CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" +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/graphics/eog2/Makefile b/graphics/eog2/Makefile index b2c38a7e34b6..299c00ec8355 100644 --- a/graphics/eog2/Makefile +++ b/graphics/eog2/Makefile @@ -26,4 +26,11 @@ CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" +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/graphics/gnomeiconedit/Makefile b/graphics/gnomeiconedit/Makefile index 9b3795744c6f..28f05f06f966 100644 --- a/graphics/gnomeiconedit/Makefile +++ b/graphics/gnomeiconedit/Makefile @@ -28,4 +28,11 @@ CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LIBS="-L${LOCALBASE}/lib" +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 -- cgit