aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2002-08-28 06:12:37 +0800
committermarcus <marcus@FreeBSD.org>2002-08-28 06:12:37 +0800
commita76d039c15a904776f1a5587693ab1703caa3f72 (patch)
tree70abd8cb4c2a8a0b0408fa52c364ecc5d64f33a2
parent3362753e4e39a4d362cd0dd9a5a909ca4e79f015 (diff)
downloadfreebsd-ports-gnome-a76d039c15a904776f1a5587693ab1703caa3f72.tar.gz
freebsd-ports-gnome-a76d039c15a904776f1a5587693ab1703caa3f72.tar.zst
freebsd-ports-gnome-a76d039c15a904776f1a5587693ab1703caa3f72.zip
Update to 0.7.1. With this update, metacity-setup now works with
metacity-2.4.0.
-rw-r--r--x11-wm/metacity-setup/Makefile21
-rw-r--r--x11-wm/metacity-setup/distinfo2
-rw-r--r--x11-wm/metacity-setup/files/patch-src_callbacks.c30
3 files changed, 38 insertions, 15 deletions
diff --git a/x11-wm/metacity-setup/Makefile b/x11-wm/metacity-setup/Makefile
index 2163c12d8325..0e8186f39685 100644
--- a/x11-wm/metacity-setup/Makefile
+++ b/x11-wm/metacity-setup/Makefile
@@ -6,12 +6,10 @@
#
PORTNAME= metacity-setup
-PORTVERSION= 0.6
+PORTVERSION= 0.7.1
CATEGORIES= x11-wm
-MASTER_SITES= http://plastercast.tzo.com/~plastercast/Projects/ \
- http://www.marcuscom.com/downloads/ \
- ${MASTER_SITE_LOCAL}
-MASTER_SITE_SUBDIR= marcus
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= metacity-setup
MAINTAINER= marcus@FreeBSD.org
@@ -20,22 +18,17 @@ LIB_DEPENDS= gnomeui-2.0:${PORTSDIR}/x11-toolkits/libgnomeui
USE_X_PREFIX= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
+USE_GNOMENG= yes
+USE_GNOME= gnomeprefix gnomehack
USE_REINPLACE= yes
-CONFIGURE_ARGS= --localstatedir=${PREFIX}/share/gnome \
- --datadir=${PREFIX}/share/gnome
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LIBS="-L${LOCALBASE}/lib"
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL}
-pre-patch:
+post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
- @find ${WRKSRC} -name "Makefile.in*" | xargs ${REINPLACE_CMD} -e \
- 's|[(]datadir[)]/gnome/|(datadir)/|g ; \
- s|[(]datadir[)]/locale|(prefix)/share/locale|g'
-
-post-patch:
- @${REINPLACE_CMD} -e 's|[%][%]X11BASE[%][%]|${X11BASE}|g' \
+ @${REINPLACE_CMD} -e 's|%%X11BASE%%|${X11BASE}|g' \
${WRKSRC}/src/callbacks.c
.include <bsd.port.mk>
diff --git a/x11-wm/metacity-setup/distinfo b/x11-wm/metacity-setup/distinfo
index ca36d5065f0a..1d9aa16644d0 100644
--- a/x11-wm/metacity-setup/distinfo
+++ b/x11-wm/metacity-setup/distinfo
@@ -1 +1 @@
-MD5 (metacity-setup-0.6.tar.gz) = 0dd8bfec3dd513f584218b5cbb022bfc
+MD5 (metacity-setup-0.7.1.tar.gz) = e898a13ea95d38dcc1f9dba5dd03581f
diff --git a/x11-wm/metacity-setup/files/patch-src_callbacks.c b/x11-wm/metacity-setup/files/patch-src_callbacks.c
new file mode 100644
index 000000000000..544e63e4611f
--- /dev/null
+++ b/x11-wm/metacity-setup/files/patch-src_callbacks.c
@@ -0,0 +1,30 @@
+--- src/callbacks.c.orig Tue Aug 27 15:30:54 2002
++++ src/callbacks.c Tue Aug 27 15:30:36 2002
+@@ -228,14 +228,25 @@
+
+ while ((filename =
+ g_dir_read_name (themeDirectory)) != NULL)
+- if (g_file_test
++ if ((g_file_test
+ (g_build_filename
+ (possibleThemeDirs[i], filename, NULL),
+ G_FILE_TEST_IS_DIR) &&
+ (g_file_test
+ (g_build_filename
+ (possibleThemeDirs[i], filename, "metacity-theme-1.xml", NULL),
+- G_FILE_TEST_IS_REGULAR)))
++ G_FILE_TEST_IS_REGULAR))) ||
++ ((g_file_test
++ (g_build_filename
++ (possibleThemeDirs[i], filename, NULL),
++ G_FILE_TEST_IS_DIR) &&
++ (g_file_test
++ (g_build_filename
++ (possibleThemeDirs[i], filename, "metacity-1", NULL), G_FILE_TEST_IS_DIR) &&
++ (g_file_test
++ (g_build_filename
++ (possibleThemeDirs[i], filename, "metacity-1", "metacity-theme-1.xml", NULL), G_FILE_TEST_IS_REGULAR))))))
++
+ {
+ g_ptr_array_add (themeNameHolder,
+ g_strdup (filename));