Subject: Re: wm/windowmaker and WPrefs
To: None <tech-pkg@netbsd.org>
From: Matthew Luckie <mjl@luckie.org.nz>
List: tech-pkg
Date: 09/17/2005 12:04:02
> On a fresh install of WindowMaker, the WPrefs application does not
> work.  This is for two reasons.  The first is that the menu item
> for the preferences utility points to WPrefs in the wrong location
> (/usr/pkg/GNUstep/Applications/WPrefs.app/WPrefs instead of
>  /usr/pkg/bin/WPrefs where it is installed).

Sorry to reply to myself.

Here's a patch to make WPrefs install in ${PREFIX}/GNUstep.  It all
works after this patch is applied.  Note that other packages which
depend on windowmaker already install in ${PREFIX}/GNUstep, such as
audio/wsoundprefs, mail/wmmail, and sysutils/fsviewer.

However, a bunch of other packages install in ${PREFIX}/share/GNUstep
which seems to be the nicest place to put such files.  For now, here's
a patch which puts WMPrefs in ${PREFIX}/GNUstep.  If the proper place
is share/GNUstep, please let me know, and I'll fix this package and
have a look at the other related WM applications listed above.

Matthew

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/wm/windowmaker/Makefile,v
retrieving revision 1.55
diff -u -p -r1.55 Makefile
--- Makefile	9 Jul 2005 14:57:08 -0000	1.55
+++ Makefile	16 Sep 2005 23:24:29 -0000
@@ -20,6 +20,7 @@ GNU_CONFIGURE=		yes
 CONFIGURE_ARGS+=	--enable-usermenu
 CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFBASEDIR}
 CONFIGURE_ARGS+=	--with-nlsdir=${PREFIX}/${PKGLOCALEDIR}/locale
+CONFIGURE_ARGS+=	--with-gnustepdir=${PREFIX}/GNUstep
 CONFIGURE_ENV+=		LINGUAS=yes
 CONFIGURE_ENV+=		CPP_PATH="${CPP}"
 
Index: PLIST
===================================================================
RCS file: /cvsroot/pkgsrc/wm/windowmaker/PLIST,v
retrieving revision 1.11
diff -u -p -r1.11 PLIST
--- PLIST	8 Jul 2005 09:47:02 -0000	1.11
+++ PLIST	16 Sep 2005 23:24:29 -0000
@@ -1,5 +1,71 @@
 @comment $NetBSD: PLIST,v 1.11 2005/07/08 09:47:02 adam Exp $
-bin/WPrefs
+GNUstep/Applications/WPrefs.app/WPrefs
+GNUstep/Applications/WPrefs.app/WPrefs.tiff
+GNUstep/Applications/WPrefs.app/WPrefs.xpm
+GNUstep/Applications/WPrefs.app/tiff/advancetonewworkspace.tiff
+GNUstep/Applications/WPrefs.app/tiff/animations.tiff
+GNUstep/Applications/WPrefs.app/tiff/appearance.tiff
+GNUstep/Applications/WPrefs.app/tiff/clip.tiff
+GNUstep/Applications/WPrefs.app/tiff/configs.tiff
+GNUstep/Applications/WPrefs.app/tiff/cycleworkspaces.tiff
+GNUstep/Applications/WPrefs.app/tiff/dock.tiff
+GNUstep/Applications/WPrefs.app/tiff/dontlinkworkspaces.tiff
+GNUstep/Applications/WPrefs.app/tiff/ergonomic.tiff
+GNUstep/Applications/WPrefs.app/tiff/expert.tiff
+GNUstep/Applications/WPrefs.app/tiff/fonts.tiff
+GNUstep/Applications/WPrefs.app/tiff/iconprefs.tiff
+GNUstep/Applications/WPrefs.app/tiff/keyboard.tiff
+GNUstep/Applications/WPrefs.app/tiff/keyboardprefs.tiff
+GNUstep/Applications/WPrefs.app/tiff/keyshortcuts.tiff
+GNUstep/Applications/WPrefs.app/tiff/menualign1.tiff
+GNUstep/Applications/WPrefs.app/tiff/menualign2.tiff
+GNUstep/Applications/WPrefs.app/tiff/menuprefs.tiff
+GNUstep/Applications/WPrefs.app/tiff/menus.tiff
+GNUstep/Applications/WPrefs.app/tiff/moreanim.tiff
+GNUstep/Applications/WPrefs.app/tiff/mousesettings.tiff
+GNUstep/Applications/WPrefs.app/tiff/mousespeed.tiff
+GNUstep/Applications/WPrefs.app/tiff/msty1.tiff
+GNUstep/Applications/WPrefs.app/tiff/msty2.tiff
+GNUstep/Applications/WPrefs.app/tiff/msty3.tiff
+GNUstep/Applications/WPrefs.app/tiff/newstyle.tiff
+GNUstep/Applications/WPrefs.app/tiff/nonopaque.tiff
+GNUstep/Applications/WPrefs.app/tiff/oldstyle.tiff
+GNUstep/Applications/WPrefs.app/tiff/opaque.tiff
+GNUstep/Applications/WPrefs.app/tiff/paths.tiff
+GNUstep/Applications/WPrefs.app/tiff/smooth.tiff
+GNUstep/Applications/WPrefs.app/tiff/sound.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed0.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed0s.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed1.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed1s.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed2.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed2s.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed3.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed3s.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed4.tiff
+GNUstep/Applications/WPrefs.app/tiff/speed4s.tiff
+GNUstep/Applications/WPrefs.app/tiff/tdel.tiff
+GNUstep/Applications/WPrefs.app/tiff/tedit.tiff
+GNUstep/Applications/WPrefs.app/tiff/textr.tiff
+GNUstep/Applications/WPrefs.app/tiff/theme.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer0.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer0s.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer1.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer1s.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer2.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer2s.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer3.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer3s.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer4.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer4s.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer5.tiff
+GNUstep/Applications/WPrefs.app/tiff/timer5s.tiff
+GNUstep/Applications/WPrefs.app/tiff/tnew.tiff
+GNUstep/Applications/WPrefs.app/tiff/whandling.tiff
+GNUstep/Applications/WPrefs.app/tiff/windowfocus.tiff
+GNUstep/Applications/WPrefs.app/tiff/workspace.tiff
+GNUstep/Applications/WPrefs.app/tiff/workspacename.tiff
+GNUstep/Applications/WPrefs.app/tiff/xis.tiff
 bin/convertfonts
 bin/get-wings-flags
 bin/get-wraster-flags
@@ -57,72 +123,6 @@ share/WINGs/Images.tiff
 share/WINGs/Images.xpm
 share/WINGs/defaultIcon.tiff
 share/WINGs/defaultIcon.xpm
-share/WPrefs/WPrefs.tiff
-share/WPrefs/WPrefs.xpm
-share/WPrefs/tiff/advancetonewworkspace.tiff
-share/WPrefs/tiff/animations.tiff
-share/WPrefs/tiff/appearance.tiff
-share/WPrefs/tiff/clip.tiff
-share/WPrefs/tiff/configs.tiff
-share/WPrefs/tiff/cycleworkspaces.tiff
-share/WPrefs/tiff/dock.tiff
-share/WPrefs/tiff/dontlinkworkspaces.tiff
-share/WPrefs/tiff/ergonomic.tiff
-share/WPrefs/tiff/expert.tiff
-share/WPrefs/tiff/fonts.tiff
-share/WPrefs/tiff/iconprefs.tiff
-share/WPrefs/tiff/keyboard.tiff
-share/WPrefs/tiff/keyboardprefs.tiff
-share/WPrefs/tiff/keyshortcuts.tiff
-share/WPrefs/tiff/menualign1.tiff
-share/WPrefs/tiff/menualign2.tiff
-share/WPrefs/tiff/menuprefs.tiff
-share/WPrefs/tiff/menus.tiff
-share/WPrefs/tiff/moreanim.tiff
-share/WPrefs/tiff/mousesettings.tiff
-share/WPrefs/tiff/mousespeed.tiff
-share/WPrefs/tiff/msty1.tiff
-share/WPrefs/tiff/msty2.tiff
-share/WPrefs/tiff/msty3.tiff
-share/WPrefs/tiff/newstyle.tiff
-share/WPrefs/tiff/nonopaque.tiff
-share/WPrefs/tiff/oldstyle.tiff
-share/WPrefs/tiff/opaque.tiff
-share/WPrefs/tiff/paths.tiff
-share/WPrefs/tiff/smooth.tiff
-share/WPrefs/tiff/sound.tiff
-share/WPrefs/tiff/speed0.tiff
-share/WPrefs/tiff/speed0s.tiff
-share/WPrefs/tiff/speed1.tiff
-share/WPrefs/tiff/speed1s.tiff
-share/WPrefs/tiff/speed2.tiff
-share/WPrefs/tiff/speed2s.tiff
-share/WPrefs/tiff/speed3.tiff
-share/WPrefs/tiff/speed3s.tiff
-share/WPrefs/tiff/speed4.tiff
-share/WPrefs/tiff/speed4s.tiff
-share/WPrefs/tiff/tdel.tiff
-share/WPrefs/tiff/tedit.tiff
-share/WPrefs/tiff/textr.tiff
-share/WPrefs/tiff/theme.tiff
-share/WPrefs/tiff/timer0.tiff
-share/WPrefs/tiff/timer0s.tiff
-share/WPrefs/tiff/timer1.tiff
-share/WPrefs/tiff/timer1s.tiff
-share/WPrefs/tiff/timer2.tiff
-share/WPrefs/tiff/timer2s.tiff
-share/WPrefs/tiff/timer3.tiff
-share/WPrefs/tiff/timer3s.tiff
-share/WPrefs/tiff/timer4.tiff
-share/WPrefs/tiff/timer4s.tiff
-share/WPrefs/tiff/timer5.tiff
-share/WPrefs/tiff/timer5s.tiff
-share/WPrefs/tiff/tnew.tiff
-share/WPrefs/tiff/whandling.tiff
-share/WPrefs/tiff/windowfocus.tiff
-share/WPrefs/tiff/workspace.tiff
-share/WPrefs/tiff/workspacename.tiff
-share/WPrefs/tiff/xis.tiff
 share/WindowMaker/Backgrounds/BlueImage.jpeg
 share/WindowMaker/IconSets/Default.iconset
 share/WindowMaker/Icons/BitchX.tiff
@@ -344,6 +344,8 @@ ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/Wi
 ${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/WindowMaker.mo
 ${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/WPrefs.mo
 ${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/WindowMaker.mo
+@dirrm GNUstep/Applications/WPrefs.app/xpm
+@dirrm GNUstep/Applications/WPrefs.app/tiff
 @dirrm share/doc/WindowMaker
 @dirrm share/WindowMaker/Themes
 @dirrm share/WindowMaker/Styles
@@ -354,8 +356,6 @@ ${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES
 @dirrm share/WindowMaker/IconSets
 @dirrm share/WindowMaker/Backgrounds
 @dirrm share/WindowMaker
-@dirrm share/WPrefs/xpm
-@dirrm share/WPrefs/tiff
 @dirrm share/WPrefs
 @dirrm share/WINGs
 @dirrm man/sk/man1