summaryrefslogtreecommitdiffstats
path: root/graphics/inkscape/PRE_BUILD
blob: 8bd3147159cccd35acb738e7fedacc301885ff6f (plain) (blame)
1
2
3
4
5
6
7
default_pre_build &&
cd "$SOURCE_DIRECTORY" &&
# XXX Inkscape wrongly uses NULL as a sentinel, which fails with musl
#     the C++ definition is generally problematic, so replace it with nullptr.
#     See <https://ewontfix.com/11/> for more information.
echo 'Replacing NULL with nullptr in C++ code:' &&
find -name '*.[ch]pp' -print -exec sed -E -i 's/\<NULL\>/nullptr/g' {} +