[48065] trunk/dports/games
Ryan Schmidt
ryandesign at macports.org
Fri Mar 13 14:43:01 PDT 2009
On Mar 13, 2009, at 16:06, raimue at macports.org wrote:
> Added: trunk/dports/games/freedink/files/patch-src-paths.c.diff
> ===================================================================
> --- trunk/dports/games/freedink/files/patch-src-
> paths.c.diff (rev 0)
> +++ trunk/dports/games/freedink/files/patch-src-paths.c.diff
> 2009-03-13 21:05:53 UTC (rev 48065)
> @@ -0,0 +1,11 @@
> +--- src/paths.c 2009-03-12 23:23:52.000000000 +0100
> ++++ src/paths.c 2009-03-12 23:24:09.000000000 +0100
> +@@ -140,7 +140,7 @@
> + seem to be found of */
> + default3 = br_build_path(datadir, "dink");
> + default4 = "/usr/local/share/games/dink";
> +- default5 = "/usr/local/share/dink";
> ++ default5 = "/opt/local/share/dink";
> + default6 = "/usr/share/games/dink";
> + default7 = "/usr/share/dink";
> + lookup[3] = default3;
This won't work if MacPorts is installed somewhere else. So you
mustn't put "/opt/local" into your files. Instead, use a placeholder
like "@PREFIX@" and then "reinplace s|@PREFIX@|${prefix}|g $
{worksrcpath}/src/paths.c" in the portfile.
More information about the macports-dev
mailing list