summaryrefslogtreecommitdiffstats
path: root/x11/gnomeapplets2
diff options
context:
space:
mode:
authorade <ade@FreeBSD.org>2000-08-04 01:19:21 +0000
committerade <ade@FreeBSD.org>2000-08-04 01:19:21 +0000
commitf710791a75a1a897078bc67c9d8d237aa98f6e36 (patch)
tree9678346bea3d4ebce203fa7ff52257077ed4ac10 /x11/gnomeapplets2
parentcb57a6c30e8edc7db27081f1e42de38911b80a8c (diff)
downloadFreeBSD-ports-f710791a75a1a897078bc67c9d8d237aa98f6e36.zip
FreeBSD-ports-f710791a75a1a897078bc67c9d8d237aa98f6e36.tar.gz
Extensive patchfile cleanups using sobomax's wonderful
post-extract rule
Diffstat (limited to 'x11/gnomeapplets2')
-rw-r--r--x11/gnomeapplets2/Makefile7
-rw-r--r--x11/gnomeapplets2/files/patch-aa9
-rw-r--r--x11/gnomeapplets2/files/patch-af20
3 files changed, 27 insertions, 9 deletions
diff --git a/x11/gnomeapplets2/Makefile b/x11/gnomeapplets2/Makefile
index c316896..0e2d730 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 fb23273..929f5f5 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 0000000..7cfd670
--- /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;
+
OpenPOWER on IntegriCloud