Subject: Adding a new option the wm/windowmaker package
To: None <tech-pkg@netbsd.org>
From: Miguel Mendez <flynn@energyhq.homeip.net>
List: tech-pkg
Date: 02/11/2003 16:52:51
--=.0+Rs(GfKMB6quK
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Howdy,

Windowmaker has been depending on the Hermes lib for quite a while. This
causes problems with some configurations, e.g. little endian client and
big endian X servers. Some time ago I submitted a patch to the FreeBSD
ports people to fix this. Window Maker can and does work without the
Hermes lib, so I added an option for that. I'd love to see something
like that on NetBSD as well. Some like this patch could do...


--- windowmaker/Makefile.orig	2003-02-11 16:36:13.000000000 +0100
+++ windowmaker/Makefile	2003-02-11 16:43:04.000000000 +0100
@@ -56,6 +56,10 @@
 CONFIGURE_ARGS+=	--enable-${OPTION}
 .endfor
 
+.if defined(WITHOUT_HERMES)
+CONFIGURE_ARGS+=	--disable-hermes
+.endif
+
 post-extract:
 	${RM} -f ${WRKSRC}/WindowMaker/Defaults/WMState \
 		 ${WRKSRC}/WindowMaker/Defaults/WMWindowAttributes \
@@ -84,7 +88,9 @@
 		${PREFIX}/share/doc/WindowMaker
 
 .include "../../devel/gettext-lib/buildlink2.mk"
+.if !defined(WITHOUT_HERMES)
 .include "../../graphics/hermes/buildlink2.mk"
+.endif
 .include "../../graphics/libungif/buildlink2.mk"
 .include "../../graphics/jpeg/buildlink2.mk"
 .include "../../graphics/png/buildlink2.mk"

-------

Comments and feedback welcome.

Cheers,
-- 
        Miguel Mendez - flynn@energyhq.homeip.net
        GPG Public Key :: http://energyhq.homeip.net/files/pubkey.txt
        EnergyHQ :: http://www.energyhq.tk
        Of course it runs NetBSD!

--=.0+Rs(GfKMB6quK
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (NetBSD)

iD8DBQE+SRxWnLctrNyFFPERAi73AKC0+iqD2bqG3gDZgpLfOqUC6oWTFgCgmLeI
zS+YT6HZjUcTMi0KRqFzAQA=
=2cVX
-----END PGP SIGNATURE-----

--=.0+Rs(GfKMB6quK--