Nikos Chantziaras wrote:
> I have a package that uses qmake (from Qt 3) as its build system and
> that installs into /usr/local by default (as any well packaged
> software should do).  This of course can be overridden at build time. 
> In this case, with:
>
>   qmake PREFIX=/usr projectfile.pro
>
> In order to install into /usr (as any well written ebuild should do.)
> In the ebuild however, eqmake3 doesn't seem to accept any arguments. 
> This:
>
>   eqmake3 PREFIX=/usr projectfile.pro | die "qmake failed"
>
> results in:
>
>  * Project .pro file "PREFIX=/usr" does not exists
>  * qmake cannot handle non-existing .pro files
>
> when trying to emerge.  What can I do?
>
>
eqmake is taking arguments but you have to set the .pro file first like:
eqmake3 projectfile.pro PREFIX=/usr || die "eqmake3 failed"

By the way, you may want to set PREFIX="${D}"/usr

Thanks,
Mounir

Reply via email to