diff options
author | ade <ade@FreeBSD.org> | 2000-08-04 09:19:21 +0800 |
---|---|---|
committer | ade <ade@FreeBSD.org> | 2000-08-04 09:19:21 +0800 |
commit | f710791a75a1a897078bc67c9d8d237aa98f6e36 (patch) | |
tree | 9678346bea3d4ebce203fa7ff52257077ed4ac10 /x11/gnomeapplets2 | |
parent | cb57a6c30e8edc7db27081f1e42de38911b80a8c (diff) | |
download | freebsd-ports-gnome-f710791a75a1a897078bc67c9d8d237aa98f6e36.tar.gz freebsd-ports-gnome-f710791a75a1a897078bc67c9d8d237aa98f6e36.tar.zst freebsd-ports-gnome-f710791a75a1a897078bc67c9d8d237aa98f6e36.zip |
Extensive patchfile cleanups using sobomax's wonderful
post-extract rule
Diffstat (limited to 'x11/gnomeapplets2')
-rw-r--r-- | x11/gnomeapplets2/Makefile | 7 | ||||
-rw-r--r-- | x11/gnomeapplets2/files/patch-aa | 9 | ||||
-rw-r--r-- | x11/gnomeapplets2/files/patch-af | 20 |
3 files changed, 27 insertions, 9 deletions
diff --git a/x11/gnomeapplets2/Makefile b/x11/gnomeapplets2/Makefile index c3168966bde0..0e2d730a0852 100644 --- a/x11/gnomeapplets2/Makefile +++ b/x11/gnomeapplets2/Makefile @@ -31,4 +31,11 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ GTK_CONFIG="${GTK_CONFIG}" \ 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 <bsd.port.mk> diff --git a/x11/gnomeapplets2/files/patch-aa b/x11/gnomeapplets2/files/patch-aa index fb232739a509..929f5f5d20f8 100644 --- a/x11/gnomeapplets2/files/patch-aa +++ b/x11/gnomeapplets2/files/patch-aa @@ -8,12 +8,3 @@ esac -@@ -5703,7 +5704,7 @@ - cat conftest.$ac_ext >&5 - rm -rf conftest* - CATOBJEXT=.mo -- DATADIRNAME=lib -+ DATADIRNAME=share - fi - rm -f conftest* - INSTOBJEXT=.mo diff --git a/x11/gnomeapplets2/files/patch-af b/x11/gnomeapplets2/files/patch-af new file mode 100644 index 000000000000..7cfd670a862e --- /dev/null +++ b/x11/gnomeapplets2/files/patch-af @@ -0,0 +1,20 @@ +--- fifteen/fifteen.c.orig Thu May 4 07:23:57 2000 ++++ fifteen/fifteen.c Wed Aug 2 09:18:24 2000 +@@ -225,7 +225,7 @@ + int dir; + int x, y; + +- srand (time (NULL)); ++ srandom (time (NULL)); + + canvas = gtk_object_get_user_data (data); + board = gtk_object_get_user_data (GTK_OBJECT (canvas)); +@@ -241,7 +241,7 @@ + for (i = 0; i < SCRAMBLE_MOVES; i++) { + /* retry_scramble: */ + /* Yuck ;) --Tom. */ +- dir = rand () % 4; ++ dir = random () % 4; + + x = y = 0; + |