On Fri, Nov 29, 2013 at 09:13:52AM +0100, Tommy Scheunemann wrote: > On Thu, 28 Nov 2013, Landry Breuil wrote: > > >On Thu, Nov 28, 2013 at 07:12:45PM +0100, Tommy Scheunemann wrote: > >>Hello list, > >> > >>a port for Wmconfig, a small menu generation tool for various X11 > >>window managers. > >>Been compiling and using it myself since some time already so maybe > >>someone can find a port useful. > >> > >>That's my first OpenBSD port so comments and hints are more then > >>welcome. > > > >What's the usefulness of DOCS in the makefile ? Also i'm not sure .1x > >is a valid manpage section. DISTNAME:L is unneeded too, it's already > >lowercase. Other than that it looks good portswise. > >As for wmconfig itself, does it allow you to create a > >freedesktop.org-compliant menu ? > > > >Landry > > Hello, > > thanks for the hints. The DOCS are intended to be installed, which has been > added in the attached version. Also DISTNAME:L is corrected.
You dont need PKGNAME=$DISTNAME, thats the default. As for the DOCS, you can do ${INSTALL_DATA} ${WRKSRC}/{README,COPYING} ${PREFIX}/share/doc/wmconfig (and then update the PLIST) Do the same for the samples, since mv'ing them wont work if you build as regular user ,you'll usually get ownership issues. > For the .1x - AfterStep uses the format though if that is unwanted I can > modify the upstream source and use .1 as extension. I have no idea how our man handles this - maybe just rename the manpage after installation ? > Finally - freedesktop menus can be created, but not 100% compliant because > the specification has pre-defined categories (or menu names) taking away > some choice in naming the menus like one may wish. > The generated output still works, tested in KDE 4.x, LXDE, Gnome 2.x and > 3.x, still it won't do a translation like: > > Submenu "My Networking Stuff" -> Submenu "Internet" > > to be completely compliant and put everything in the freedesktop.org > pre-defined categories. > Basically a XML file is created that includes one-by-one the specific > .desktop entries. > I know that this isn't beautiful, still it leaves it up to the user on how > menus are named. I get the point, and that's nice. Landry