Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 9 Feb 2001 11:18:40 -0800 (PST)
From:      tkato@prontomail.ne.jp
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/24975: Update port: x11-wm/xfce (fix ports/24932)
Message-ID:  <200102091918.f19JIeI02570@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         24975
>Category:       ports
>Synopsis:       Update port: x11-wm/xfce (fix ports/24932)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Feb 09 11:20:00 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     KATO Tsuguru
>Release:        4.2-RELEASE i386
>Organization:
>Environment:
>Description:
- Enable to play sound with internal function
- Remove USE_ESOUND
- Fix pkg-plist

New file:
files/patch-ag  files/patch-ah  files/patch-ai  files/patch-aj

Remove file:
files/patch-af

This PR supersedes ports/24932.

>How-To-Repeat:

>Fix:
diff -urN /usr/ports/x11-wm/xfce/Makefile x11-wm/xfce/Makefile
--- /usr/ports/x11-wm/xfce/Makefile	Sat Feb 10 00:41:37 2001
+++ x11-wm/xfce/Makefile	Sat Feb 10 04:09:08 2001
@@ -7,6 +7,7 @@
 
 PORTNAME=	xfce
 PORTVERSION=	3.7.2
+PORTREVISION=	1
 CATEGORIES=	x11-wm
 MASTER_SITES=	http://www.xfce.org/archive/
 
@@ -14,18 +15,24 @@
 
 USE_X_PREFIX=	yes
 USE_IMLIB=	yes
-USE_ESOUND=	yes
 USE_XPM=	yes
 USE_LIBTOOL=	yes
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
-		LIBS="-L${LOCALBASE}/lib -lxpg4"
-CONFIGURE_ARGS=	--localstatedir=${PREFIX}/share \
-		--datadir=${PREFIX}/share \
-		--sysconfdir=${PREFIX}/etc \
-		--with-xpm=${X11BASE}
+		LIBS="-L${LOCALBASE}/lib"
+CONFIGURE_ARGS=	--with-conf-dir=${PREFIX}/etc/xfce \
+		--with-data-dir=${PREFIX}/share/xfce \
+		--with-locale-dir=${PREFIX}/share/locale \
+		--with-xpm=${X11BASE} \
+		--disable-xinerama
 
-MAN1=	xfbd.1 xfce.1 xfclock.1 xfgnome.1 xfhelp.1 xflock.1 xfmountdev.1 \
-	xfmouse.1 xfpager.1 xfprint.1 xfrun.1 xfsound.1 xfterm.1 xftrash.1 \
-	xftree.1 xfwm.1 xfglob.1 glob.1
+MAN1=		glob.1 xfbd.1 xfce.1 xfclock.1 xfglob.1 xfgnome.1 xfhelp.1 \
+		xflock.1 xfmountdev.1 xfmouse.1 xfpager.1 xfprint.1 xfrun.1 \
+		xfsound.1 xfterm.1 xftrash.1 xftree.1 xfwm.1
+
+pre-patch:
+	@${PERL} -pi -e \
+		's|DATADIRNAME=lib|DATADIRNAME=share|g ; \
+		 s|USE_INCLUDED_LIBINTL=yes|#USE_INCLUDED_LIBINTL=yes|g ; \
+		 s|\$$\(top_builddir\)/intl/libintl.a|-lintl|g' ${WRKSRC}/configure
 
 .include <bsd.port.mk>
diff -urN /usr/ports/x11-wm/xfce/files/patch-af x11-wm/xfce/files/patch-af
--- /usr/ports/x11-wm/xfce/files/patch-af	Thu Nov  2 20:09:10 2000
+++ x11-wm/xfce/files/patch-af	Thu Jan  1 09:00:00 1970
@@ -1,22 +0,0 @@
---- configure.orig	Sun Oct  1 01:16:19 2000
-+++ configure	Thu Nov  2 05:45:10 2000
-@@ -2622,6 +2622,8 @@
-   if test "$cross_compiling" = yes; then
-   ac_cv_func_mmap_fixed_mapped=no
- else
-+    ac_save_LIBS="$LIBS"
-+    LIBS="-lintl  $LIBS"
-   cat > conftest.$ac_ext <<EOF
- #line 2627 "configure"
- #include "confdefs.h"
-@@ -6667,8 +6669,8 @@
- 
- 
- 
--
--
-+XFCE_DIR=`eval echo $XFCE_DIR`
-+XFCE_CONFDIR=`eval echo $XFCE_CONFDIR`
- sed -e "s%XFCE_DIR%$XFCE_DIR%g" -e "s%XFCE_CONFDIR%$XFCE_CONFDIR%g" scripts/xfce_setup.in > scripts/xfce_setup
- sed -e "s%XFCE_DIR%$XFCE_DIR%g" -e "s%XFCE_CONFDIR%$XFCE_CONFDIR%g" scripts/xfce_upgrade.in > scripts/xfce_upgrade
- sed -e "s%XFCE_DIR%$XFCE_DIR%g" -e "s%XFCE_CONFDIR%$XFCE_CONFDIR%g" scripts/xfhelp.in > scripts/xfhelp
diff -urN /usr/ports/x11-wm/xfce/files/patch-ag x11-wm/xfce/files/patch-ag
--- /usr/ports/x11-wm/xfce/files/patch-ag	Thu Jan  1 09:00:00 1970
+++ x11-wm/xfce/files/patch-ag	Wed Feb  7 00:53:11 2001
@@ -0,0 +1,11 @@
+--- libs/configure.h.orig	Tue Sep  5 02:26:09 2000
++++ libs/configure.h	Wed Feb  7 00:53:01 2001
+@@ -22,7 +22,7 @@
+ #define CLOSE_STRING4 "quit"
+ 
+ /* #ifdef __alpha */
+-#if defined(__alpha) && !defined(linux)
++#if defined(__alpha) && !(defined(linux) || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__))
+ #define NEEDS_ALPHA_HEADER
+ #undef BROKEN_SUN_HEADERS
+ #endif /* (__alpha) */
diff -urN /usr/ports/x11-wm/xfce/files/patch-ah x11-wm/xfce/files/patch-ah
--- /usr/ports/x11-wm/xfce/files/patch-ah	Thu Jan  1 09:00:00 1970
+++ x11-wm/xfce/files/patch-ah	Tue Feb  6 05:07:58 2001
@@ -0,0 +1,9 @@
+--- other/xfsoundrc.in.orig	Tue Sep  5 02:26:09 2000
++++ other/xfsoundrc.in	Tue Feb  6 05:07:47 2001
+@@ -1,5 +1,5 @@
+ Play
+-xfplay
++internal
+ XFCE_DIR/sounds/beep03.wav
+ XFCE_DIR/sounds/pop02.wav
+ 
diff -urN /usr/ports/x11-wm/xfce/files/patch-ai x11-wm/xfce/files/patch-ai
--- /usr/ports/x11-wm/xfce/files/patch-ai	Thu Jan  1 09:00:00 1970
+++ x11-wm/xfce/files/patch-ai	Tue Feb  6 04:52:33 2001
@@ -0,0 +1,20 @@
+--- xfsound/xfdsp.c.orig	Fri Jul  7 05:51:00 2000
++++ xfsound/xfdsp.c	Tue Feb  6 04:52:16 2001
+@@ -45,7 +45,7 @@
+ #include <sys/stat.h>
+ #include <sys/ioctl.h>
+ #include <sys/types.h>
+-#if defined(linux)
++#if defined(linux) || defined(__FreeBSD__)
+ #include <sys/soundcard.h>	/* guess :) */
+ #endif
+ 
+@@ -62,7 +62,7 @@
+ 
+ int masterfd;
+ 
+-#if defined(linux)
++#if defined(linux) || defined(__FreeBSD__)
+ int
+ i_play (char *soundfile)
+ {
diff -urN /usr/ports/x11-wm/xfce/files/patch-aj x11-wm/xfce/files/patch-aj
--- /usr/ports/x11-wm/xfce/files/patch-aj	Thu Jan  1 09:00:00 1970
+++ x11-wm/xfce/files/patch-aj	Tue Feb  6 04:56:24 2001
@@ -0,0 +1,37 @@
+--- xfwm/session.c.orig	Wed Jan 31 04:50:16 2001
++++ xfwm/session.c	Tue Feb  6 04:56:10 2001
+@@ -566,8 +566,10 @@
+ callback_save_yourself2 (SmcConn sm_conn, SmPointer client_data)
+ {
+   char *path = NULL;
+-  char *filename = NULL;
+-  FILE *f = NULL;
++  char *filename;
++  FILE *f;
++  int fd;
++
+   Bool success = True;
+   struct passwd *pwd;
+ 
+@@ -578,16 +580,18 @@
+       path = pwd->pw_dir;
+     }
+ 
+-  filename = tempnam (path, ".fs-");
++  sprintf (filename, "path/.fs-XXXXXXXX");
++  fd = mkstemp (filename);
+ 
+   if (Scr.Options & SessionMgt)
+     {
+-      f = fopen (filename, "w");
++      f = fdopen (fd, "w");
+       success = save_session_state (sm_conn, filename, f);
+       fclose (f);
+     }
+-  if (!success)
++  if (!success || fd < 0)
+     xfwm_msg (WARN, "SaveSession", "Can't save session\n");
++  close (fd);
+   /* also save session for builtin session mgt, so user will get
+    * back to his environmnent even if he doesn't use ICE
+    */
diff -urN /usr/ports/x11-wm/xfce/pkg-plist x11-wm/xfce/pkg-plist
--- /usr/ports/x11-wm/xfce/pkg-plist	Sat Feb 10 00:41:38 2001
+++ x11-wm/xfce/pkg-plist	Thu Feb  8 02:37:46 2001
@@ -45,6 +45,7 @@
 etc/xfce/xinitrc.mwm
 etc/xfce/xsession
 etc/xfce/xtree.reg
+lib/gtk/themes/engines/libxfce.so
 share/locale/ca/LC_MESSAGES/xfce.mo
 share/locale/cs/LC_MESSAGES/xfce.mo
 share/locale/da/LC_MESSAGES/xfce.mo
@@ -446,12 +447,12 @@
 share/xfce/textures/paper.xpm
 share/xfce/textures/silver.xpm
 share/xfce/textures/stripe.xpm
-@dirrm share/xfce/help
-@dirrm share/xfce/sounds
 @dirrm share/xfce/textures
-@dirrm share/xfce/fonts
+@dirrm share/xfce/sounds
 @dirrm share/xfce/palettes
 @dirrm share/xfce/icons
+@dirrm share/xfce/help
+@dirrm share/xfce/fonts
 @dirrm share/xfce/backdrops
 @dirrm share/xfce
 @dirrm etc/xfce


>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102091918.f19JIeI02570>