Subject: wm/windowmaker and WPrefs
To: None <tech-pkg@netbsd.org>
From: Matthew Luckie <mjl@luckie.org.nz>
List: tech-pkg
Date: 09/17/2005 10:28:38
Hi
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).
This is easily fixed with a small patch to the package's makefile:
[mjl@rayon windowmaker]$ cvs diff -u Makefile
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/wm/windowmaker/Makefile,v
retrieving revision 1.55
diff -u -r1.55 Makefile
--- Makefile 9 Jul 2005 14:57:08 -0000 1.55
+++ Makefile 16 Sep 2005 22:10:07 -0000
@@ -66,11 +66,18 @@
done;
cd ${WRKSRC} && \
for f in WINGs/wapplication.c WindowMaker/Defaults/WindowMaker.in \
- WPrefs.app/Paths.c WindowMaker/menu* WindowMaker/plmenu*; do \
- ${SED} "s|/usr/local|${PREFIX}|g" $$f > $$f.new && \
+ WindowMaker/menu* WindowMaker/plmenu*; do \
+ ${SED} -e "s|/usr/local|${PREFIX}|g" \
+ -e "s|GNUstep/Applications/WPrefs.app|bin|g" \
+ $$f > $$f.new && \
${MV} $$f.new $$f; \
done
However, WPrefs still does not quite work correctly. The pixmaps
which make up the top toolbar are not found, as
WMPathForResourceOfType does not look in /usr/pkg/share/WPrefs where
the resources are. This function will not find this directory without
being changed.
Alternatively, we could configure windowmaker with
--with-gnustepdir="${PREFIX}/GNUstep"
which would then install WPrefs into
GNUstep/Applications/WPrefs.app/
which would then not require the Makefile hack above, or
WMPathForResourceOfType to be altered.
I'm tempted to suggest that the configure option is the right
way to go, although it will put the WPrefs app in a different
location for anyone who had got their text editor out to
edit their menu by hand.
Comments?
Matthew