diff --git a/libmodplug/PSPBUILD b/libmodplug/PSPBUILD index 0e542fbd..b0bf69f9 100644 --- a/libmodplug/PSPBUILD +++ b/libmodplug/PSPBUILD @@ -17,6 +17,14 @@ sha256sums=( "SKIP" ) +prepare() { + cd libmodplug + sed -i 's#@prefix@#${PSPDEV}/psp#' libmodplug.pc.in + sed -i 's#@exec_prefix@#${prefix}#' libmodplug.pc.in + sed -i 's#@libdir@#${prefix}/lib#' libmodplug.pc.in + sed -i '/configure_file/{s/)/ @ONLY)/;}' CMakeLists.txt +} + build() { cd libmodplug mkdir pspbuild