vitasdk / vdpm

SDK installer and package "manager" for $VITASDK
GNU Lesser General Public License v2.1
221 stars 62 forks source link

pkg-config files prefix #69

Closed isage closed 3 years ago

isage commented 3 years ago

Currently, there's a bug in .pc files provided by packages in that, that their prefix line points to vitasdk path on build machine, which is not always true for end-users, and one of such examples are vitasdk docker image.

One of proposals was to create additional step in vdpm to automagically replace prefix line to path pointed by $VITASDK in package .pc files after installation.

glebm commented 3 years ago

Something like this in the right place should do the trick:

find "${INSTALLDIR}/arm-vita-eabi/lib/pkgconfig/" -name '*.pc' -exec \
  sed -i "s|/usr/local/vitasdk|${INSTALLDIR}|" '{}' \;