Well, I think the first question is, what solvents and chemicals (mostly acids and bases) do you have access to? And what kind of equipment?
In principle, given the right set of skills it should be possible to make a completely acceptable pharma with things that you can prepare for yourself in the jungle, like lime [cálcio] (from rocks or snail shells), alcohol, and vinegar, along with clay vessels for all of the processes and a little furnace. That could take a very long time unless you had a team of competent and dedicated assistants though! Presumably you have access to equipment and materials for purchase, however.
This is the thread I have in mind:
Extracting DMT with ethanol, vinegar and sodium carbonate. You could easily substitute the sodium carbonate with lime. Some very simple chemistry gives you access to a wide range of options here, in fact.
It should be equally simple to apply these principles to caapi, thus completing a low-tech approach to pharma. I'm here and ready to answer any further questions along these lines whenever I drop by.
“There is a way of manipulating matter and energy so as to produce what modern scientists call 'a field of force'. The field acts on the observer and puts him in a privileged position vis-à-vis the universe. From this position he has access to the realities which are ordinarily hidden from us by time and space, matter and energy. This is what we call the Great Work."
― Jacques Bergier, quoting Fulcanelli