Subject: Re: teTeX3-bin dependency on motif?
To: Hubert Feyrer <hubert@feyrer.de>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-pkg
Date: 06/07/2005 15:39:40
--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Based on the previous patch, I now created a patch which implements an
OPTION called tetex-use-motif. If set, xdvi will be built on motif,
otherwise on xaw.
Should the .include "../../mk/xaw.buildlink3.mk" line at the end of the
Makefile be moved into the .if statement then?
GH
--
:wq
--5vNYLRcllDrimb99
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="Makefile.diff"
--- print/teTeX3-bin/Makefile.orig 2005-06-07 15:17:51.000000000 +0200
+++ print/teTeX3-bin/Makefile 2005-06-07 15:31:11.000000000 +0200
@@ -29,6 +29,17 @@
LOWER_PAPERSIZE= ${LOWER_PAPERSIZE_cmd:sh}
.endif
+PKG_OPTIONS_VAR= PKG_OPTIONS.teTeX3-bin
+PKG_SUPPORTED_OPTIONS= tetex-use-motif
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mtetex-use-motif)
+CONFIGURE_ARGS+= --with-xdvi-x-toolkit=motif
+. include "../../mk/motif.buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --with-xdvi-x-toolkit=xaw
+.endif
+
post-install:
@${RM} -f ${PREFIX}/share/texmf/web2c/*.log
.if defined(PAPERSIZE)
--5vNYLRcllDrimb99--