[48455] trunk/dports/science/qucs/files/patch-configure.diff
Ryan Schmidt
ryandesign at macports.org
Sun Mar 22 15:29:02 PDT 2009
On Mar 22, 2009, at 13:28, rowue at macports.org wrote:
> Revision: 48455
> http://trac.macports.org/changeset/48455
> Author: rowue at macports.org
> Date: 2009-03-22 11:28:17 -0700 (Sun, 22 Mar 2009)
> Log Message:
> -----------
> Changed /opt/local/include/qt3 to $prefix/include/qt3
> -+ /usr/X11R6/include/qt2 /opt/local/include/qt3"
> ++ /usr/X11R6/include/qt2 $prefix/include/qt3"
You don't think that will work. You have to use a placeholder like
@PREFIX@ in the patchfile, then replace that placeholder with the
variable value in the portfile, as in
post-patch {
reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/configure
}
More information about the macports-dev
mailing list