is %%GECKO%% defined anywhere?
Test Rat
ttsestt at gmail.com
Wed Jul 27 09:55:59 UTC 2011
Anton Shterenlikht <mexas at bristol.ac.uk> writes:
> # cat /usr/ports/textproc/urlview/files/gecko.sh.in
> #! /bin/sh
> # $FreeBSD: ports/textproc/urlview/files/gecko.sh.in,v 1.1 2009/11/29 08:24:50 obrien Exp $
> # Launch %%GECKO%% for urlview
> URL=$@
> %%GECKO%% -remote "openurl($URL, new-tab)" || %%GECKO%% $URL
> #
>
> which on installation turns into
>
> # cat /usr/local/bin/gecko.sh
> #! /bin/sh
> # $FreeBSD: ports/textproc/urlview/files/gecko.sh.in,v 1.1 2009/11/29 08:24:50 obrien Exp $
> # Launch for urlview
> URL=$@
> -remote "openurl($URL, new-tab)" || $URL
> #
>
> I cannot find any reference to %%GECKO%% in Mk/*
It's pre-processed by sed(1) before being installed, see SUB_LIST.
$ make -V SUB_LIST:MGECKO\*
GECKO=
$ make -V SUB_LIST:MGECKO\* WITH_FIREFOX=
GECKO=firefox3
$ make -V SUB_LIST:MGECKO\* WITH_SEAMONKEY=
GECKO=seamonkey
Here is a bandaid that uses firefox by default. A proper fix would
probably involve relying on an environment variable and doing
away with gecko.sh to also address ports/152453.
%%
Index: textproc/urlview/Makefile
===================================================================
RCS file: /a/.cvsup/ports/textproc/urlview/Makefile,v
retrieving revision 1.33
diff -u -p -r1.33 Makefile
--- textproc/urlview/Makefile 2 May 2011 22:05:18 -0000 1.33
+++ textproc/urlview/Makefile 27 Jul 2011 09:32:54 -0000
@@ -25,12 +25,12 @@ MAN1= urlview.1
SUB_FILES= gecko.sh
SUB_LIST= GECKO=${GECKO}
-.if defined(WITH_FIREFOX)
-USE_FIREFOX= 36
-GECKO= firefox3
-.elif defined(WITH_SEAMONKEY)
+.if defined(WITH_SEAMONKEY)
USE_SEAMONKEY= 20
GECKO= seamonkey
+.else
+USE_FIREFOX= yes
+GECKO= firefox
.endif
.include <bsd.port.pre.mk>
%%
More information about the freebsd-ports
mailing list