[PD-dev] pdstring -> libdir

Hans-Christoph Steiner hans at at.or.at
Thu Mar 22 05:03:28 CET 2012


Hey Bryan,

I'd like to ask you if its OK to port your pdstring library over to the Library Template.  pdstring does not need any special libraries, nor does it need to handle any cross-platform differences, so autotools aren't really needed, and the Makefile works fine.  Plus using the Library Template means that Debian, Gentoo, Arch, and soon Fedora packaging comes for free, as well as building both as a single pdstring.pd_linux and individual .pd_linux files per object for full libdir support.  It also gives you 'make dist' to create source tarballs.  And will build on GNU/Linux, Windows/MinGW, Cygwin, Mac OS X/Universal, iOS, Android, and even Debian GNU/kFreeBSD and GNU/HURD.  And lastly, there is preliminary support for Katja's unit test framework. And even documentation:

http://puredata.info/docs/developer/LibraryTemplate

Here's the basic idea of what needs to happen:

cp a/pdstring/COPYING   b/pdstring/LICENSE.txt
cp a/pdstring/README.*   b/pdstring/
cp a/pdstring/common/mooPdUtils.h   b/pdstring/
cp a/pdstring/src/*.pd   b/pdstring/
cp a/pdstring/src/pdstring.c b/pdstring/
cp a/pdstring/src/pdstringUtils.c b/pdstring/libpdstring.c
cp a/pdstring/src/pdstringUtils.h b/pdstring/pdstring.h
cp a/pdstring/src/?[^d]*.c   b/pdstring/

I did a quick version of this here, if you want to see what it looks like:
https://github.com/pd-projects/pdstring-libdir

.hc

----------------------------------------------------------------------------

You can't steal a gift. Bird gave the world his music, and if you can hear it, you can have it. - Dizzy Gillespie






More information about the Pd-dev mailing list