1# $NetBSD: brotli-rename.mk,v 1.1 2023/01/29 07:54:11 mrg Exp $ 2 3# 4# functions exported by freetype's private brotli copy are renamed to have 5# a "nbft_" prefix. 6# 7 8RENAME_FUNCS= \ 9 BrotliBuildCodeLengthsHuffmanTable \ 10 BrotliBuildHuffmanTable \ 11 BrotliBuildSimpleHuffmanTable \ 12 BrotliDecoderCreateInstance \ 13 BrotliDecoderDecompress \ 14 BrotliDecoderDecompressStream \ 15 BrotliDecoderDestroyInstance \ 16 BrotliDecoderErrorString \ 17 BrotliDecoderGetErrorCode \ 18 BrotliDecoderHasMoreOutput \ 19 BrotliDecoderHuffmanTreeGroupInit \ 20 BrotliDecoderIsFinished \ 21 BrotliDecoderIsUsed \ 22 BrotliDecoderSetParameter \ 23 BrotliDecoderStateCleanup \ 24 BrotliDecoderStateCleanupAfterMetablock \ 25 BrotliDecoderStateInit \ 26 BrotliDecoderStateMetablockBegin \ 27 BrotliDecoderTakeOutput \ 28 BrotliDecoderVersion \ 29 BrotliDefaultAllocFunc \ 30 BrotliDefaultFreeFunc \ 31 BrotliGetDictionary \ 32 BrotliGetTransforms \ 33 BrotliInitBitReader \ 34 BrotliSafeReadBits32Slow \ 35 BrotliSetDictionaryData \ 36 BrotliTransformDictionaryWord \ 37 BrotliWarmupBitReader \ 38 39.for _f in ${RENAME_FUNCS} 40CPPFLAGS+= -D${_f}=nbft_${_f} 41.endfor 42