residuum/PuRestJson — pull request #1 by eighthave (2012-01-29 05:08:13+00:00)
Title: updated to follow the Library Template and build on all platforms (GNU/Linux, MinGW, Mac OS X, Cygwin, etc)

I updated the Makefile to the latest release, 1.0.11 and adjusted the filenames and code organization to fit the Library Template standard. The only changes to the code besides moving chunks around to the different files was to add a setup function with a "hexloader" name so that Pd knows how to find it:

setup_rest0x2djson()
setup_json0x2dencode()

As for the build system, it will build the objects as standalone files by default. This is the preferred way of building Pd libraries because you can use namespace prefixes, i.e. [purest_json/rest-json]. If you still want to build it as one unified, purest_json.pd_linux, run:

make purest_json

Since this now follows the template, its super easy to Debianize, I added the debian files from the Library Template so it makes a pd-purest_json.deb. So with these patches you can make source releases by doing "make dist" and debian packages by running:

cd PuRestJson
make dist
mv purest_json-0.5.tar.gz ../pd-purest-json_0.5.orig.tar.gz
rm -rf purest_json-0.5
git-buildpackage