void-packages/templates/libpng.pre_build
Juan RP c06defc719 Replace run_stuff with post/pre_<stage> variables.
If there's a file called "$pkgname.{pre,post}_{configure,build,install}
it will be automatically executed. In addition to this, templates may
use {pre,post}_{configure,build,install}_cmd variables to run arbitrary
commands.

--HG--
extra : convert_revision : 62ad549b8299689ecf8c833e73eda436ffdb7aa7
2008-10-27 03:56:42 +01:00

6 lines
225 B
Plaintext

# Add the correct rpath flags to libpng-config.
$sed_cmd -e '/^L_opts=/s|-L\([ ]*[^ ]*\)"|-Wl,-R\1 -L\1"|g' \
$wrksrc/libpng-config > $wrksrc/libpng-config.in
$mv_cmd -f $wrksrc/libpng-config.in $wrksrc/libpng-config