aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-21 05:08:54 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-21 05:08:54 +0000
commit0ca6f43514c11e30d76618be69fcb995b926d0d5 (patch)
tree176c578365c3aa10b8881ac34aac7d4d0b73f4b4
parent66615de24cb4f2d3511ad4a6cee4b28058e3ebb8 (diff)
ported to new template Makefile and debianized it
svn path=/trunk/externals/moonlib/; revision=13184
-rw-r--r--Makefile253
-rw-r--r--absolutepath-help.pd (renamed from help/absolutepath-help.pd)0
-rw-r--r--basedir-help.pd (renamed from help/basedir-help.pd)0
-rw-r--r--char2f-help.pd (renamed from help/char2f-help.pd)0
-rw-r--r--comma-help.pd (renamed from help/comma-help.pd)0
-rw-r--r--d/d0.gif (renamed from help/d/d0.gif)bin231 -> 231 bytes
-rw-r--r--d/d1.gif (renamed from help/d/d1.gif)bin232 -> 232 bytes
-rw-r--r--d/d10.gif (renamed from help/d/d10.gif)bin239 -> 239 bytes
-rw-r--r--d/d11.gif (renamed from help/d/d11.gif)bin238 -> 238 bytes
-rw-r--r--d/d12.gif (renamed from help/d/d12.gif)bin236 -> 236 bytes
-rw-r--r--d/d13.gif (renamed from help/d/d13.gif)bin237 -> 237 bytes
-rw-r--r--d/d14.gif (renamed from help/d/d14.gif)bin237 -> 237 bytes
-rw-r--r--d/d15.gif (renamed from help/d/d15.gif)bin239 -> 239 bytes
-rw-r--r--d/d16.gif (renamed from help/d/d16.gif)bin238 -> 238 bytes
-rw-r--r--d/d17.gif (renamed from help/d/d17.gif)bin234 -> 234 bytes
-rw-r--r--d/d18.gif (renamed from help/d/d18.gif)bin232 -> 232 bytes
-rw-r--r--d/d19.gif (renamed from help/d/d19.gif)bin239 -> 239 bytes
-rw-r--r--d/d2.gif (renamed from help/d/d2.gif)bin237 -> 237 bytes
-rw-r--r--d/d20.gif (renamed from help/d/d20.gif)bin240 -> 240 bytes
-rw-r--r--d/d21.gif (renamed from help/d/d21.gif)bin236 -> 236 bytes
-rw-r--r--d/d22.gif (renamed from help/d/d22.gif)bin236 -> 236 bytes
-rw-r--r--d/d23.gif (renamed from help/d/d23.gif)bin236 -> 236 bytes
-rw-r--r--d/d24.gif (renamed from help/d/d24.gif)bin236 -> 236 bytes
-rw-r--r--d/d25.gif (renamed from help/d/d25.gif)bin234 -> 234 bytes
-rw-r--r--d/d26.gif (renamed from help/d/d26.gif)bin234 -> 234 bytes
-rw-r--r--d/d27.gif (renamed from help/d/d27.gif)bin236 -> 236 bytes
-rw-r--r--d/d28.gif (renamed from help/d/d28.gif)bin235 -> 235 bytes
-rw-r--r--d/d29.gif (renamed from help/d/d29.gif)bin234 -> 234 bytes
-rw-r--r--d/d3.gif (renamed from help/d/d3.gif)bin234 -> 234 bytes
-rw-r--r--d/d30.gif (renamed from help/d/d30.gif)bin233 -> 233 bytes
-rw-r--r--d/d31.gif (renamed from help/d/d31.gif)bin233 -> 233 bytes
-rw-r--r--d/d32.gif (renamed from help/d/d32.gif)bin238 -> 238 bytes
-rw-r--r--d/d33.gif (renamed from help/d/d33.gif)bin233 -> 233 bytes
-rw-r--r--d/d34.gif (renamed from help/d/d34.gif)bin236 -> 236 bytes
-rw-r--r--d/d35.gif (renamed from help/d/d35.gif)bin233 -> 233 bytes
-rw-r--r--d/d36.gif (renamed from help/d/d36.gif)bin235 -> 235 bytes
-rw-r--r--d/d37.gif (renamed from help/d/d37.gif)bin236 -> 236 bytes
-rw-r--r--d/d38.gif (renamed from help/d/d38.gif)bin237 -> 237 bytes
-rw-r--r--d/d39.gif (renamed from help/d/d39.gif)bin236 -> 236 bytes
-rw-r--r--d/d4.gif (renamed from help/d/d4.gif)bin231 -> 231 bytes
-rw-r--r--d/d40.gif (renamed from help/d/d40.gif)bin237 -> 237 bytes
-rw-r--r--d/d41.gif (renamed from help/d/d41.gif)bin235 -> 235 bytes
-rw-r--r--d/d42.gif (renamed from help/d/d42.gif)bin238 -> 238 bytes
-rw-r--r--d/d43.gif (renamed from help/d/d43.gif)bin236 -> 236 bytes
-rw-r--r--d/d44.gif (renamed from help/d/d44.gif)bin230 -> 230 bytes
-rw-r--r--d/d45.gif (renamed from help/d/d45.gif)bin235 -> 235 bytes
-rw-r--r--d/d46.gif (renamed from help/d/d46.gif)bin236 -> 236 bytes
-rw-r--r--d/d47.gif (renamed from help/d/d47.gif)bin235 -> 235 bytes
-rw-r--r--d/d48.gif (renamed from help/d/d48.gif)bin240 -> 240 bytes
-rw-r--r--d/d49.gif (renamed from help/d/d49.gif)bin236 -> 236 bytes
-rw-r--r--d/d5.gif (renamed from help/d/d5.gif)bin238 -> 238 bytes
-rw-r--r--d/d50.gif (renamed from help/d/d50.gif)bin237 -> 237 bytes
-rw-r--r--d/d51.gif (renamed from help/d/d51.gif)bin236 -> 236 bytes
-rw-r--r--d/d52.gif (renamed from help/d/d52.gif)bin234 -> 234 bytes
-rw-r--r--d/d53.gif (renamed from help/d/d53.gif)bin239 -> 239 bytes
-rw-r--r--d/d54.gif (renamed from help/d/d54.gif)bin238 -> 238 bytes
-rw-r--r--d/d55.gif (renamed from help/d/d55.gif)bin240 -> 240 bytes
-rw-r--r--d/d56.gif (renamed from help/d/d56.gif)bin235 -> 235 bytes
-rw-r--r--d/d57.gif (renamed from help/d/d57.gif)bin236 -> 236 bytes
-rw-r--r--d/d58.gif (renamed from help/d/d58.gif)bin236 -> 236 bytes
-rw-r--r--d/d59.gif (renamed from help/d/d59.gif)bin236 -> 236 bytes
-rw-r--r--d/d6.gif (renamed from help/d/d6.gif)bin236 -> 236 bytes
-rw-r--r--d/d60.gif (renamed from help/d/d60.gif)bin235 -> 235 bytes
-rw-r--r--d/d61.gif (renamed from help/d/d61.gif)bin236 -> 236 bytes
-rw-r--r--d/d62.gif (renamed from help/d/d62.gif)bin235 -> 235 bytes
-rw-r--r--d/d63.gif (renamed from help/d/d63.gif)bin229 -> 229 bytes
-rw-r--r--d/d7.gif (renamed from help/d/d7.gif)bin237 -> 237 bytes
-rw-r--r--d/d8.gif (renamed from help/d/d8.gif)bin240 -> 240 bytes
-rw-r--r--d/d9.gif (renamed from help/d/d9.gif)bin237 -> 237 bytes
-rw-r--r--debian/changelog5
-rw-r--r--debian/compat1
-rw-r--r--debian/control16
-rw-r--r--debian/copyright13
-rwxr-xr-xdebian/rules16
-rw-r--r--dinlet~-help.pd (renamed from help/dinlet~-help.pd)0
-rw-r--r--dispatch-help.pd (renamed from help/dispatch-help.pd)0
-rw-r--r--dripchar-help.pd (renamed from help/dripchar-help.pd)0
-rw-r--r--f2char-help.pd (renamed from help/f2char-help.pd)0
-rw-r--r--f2s-help.pd (renamed from help/f2s-help.pd)0
-rw-r--r--gamme-help.pd (renamed from help/gamme-help.pd)0
-rw-r--r--image-help.pd (renamed from help/image-help.pd)0
-rw-r--r--makecolor-help.pd (renamed from help/makecolor-help.pd)0
-rw-r--r--mknob-help.pd (renamed from help/mknob-help.pd)0
-rw-r--r--moonlib-meta.pd7
-rw-r--r--panvol~-help.pd (renamed from help/panvol~-help.pd)0
-rw-r--r--pause.gif (renamed from help/pause.gif)bin61 -> 61 bytes
-rw-r--r--play.gif (renamed from help/play.gif)bin58 -> 58 bytes
-rw-r--r--playy.gif (renamed from help/playy.gif)bin58 -> 58 bytes
-rw-r--r--popen-help.pd (renamed from help/popen-help.pd)0
-rw-r--r--readsfv~-help.pd (renamed from help/readsfv~-help.pd)0
-rw-r--r--readsfv~.c7
-rw-r--r--rec.gif (renamed from help/rec.gif)bin58 -> 58 bytes
-rw-r--r--relativepath-help.pd (renamed from help/relativepath-help.pd)0
-rw-r--r--s2f-help.pd (renamed from help/s2f-help.pd)0
-rw-r--r--sarray-help.pd (renamed from help/sarray-help.pd)0
-rw-r--r--saww.gif (renamed from help/saww.gif)bin61 -> 61 bytes
-rw-r--r--sfread2~-help.pd (renamed from help/sfread2~-help.pd)0
-rw-r--r--sin.gif (renamed from help/sin.gif)bin58 -> 58 bytes
-rw-r--r--sinw.gif (renamed from help/sinw.gif)bin61 -> 61 bytes
-rw-r--r--slist-help.pd (renamed from help/slist-help.pd)0
-rw-r--r--squarew.gif (renamed from help/squarew.gif)bin61 -> 61 bytes
-rw-r--r--ssaw~-help.pd (renamed from help/ssaw~-help.pd)0
-rw-r--r--tabdump2-help.pd (renamed from help/tabdump2-help.pd)0
-rw-r--r--tabenv-help.pd (renamed from help/tabenv-help.pd)0
-rw-r--r--tabreadl-help.pd (renamed from help/tabreadl-help.pd)0
-rw-r--r--tabsort-help.pd (renamed from help/tabsort-help.pd)0
-rw-r--r--tabsort2-help.pd (renamed from help/tabsort2-help.pd)0
-rw-r--r--wac-help.pd4
108 files changed, 307 insertions, 15 deletions
diff --git a/Makefile b/Makefile
index ae29994..e022bc4 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,249 @@
-TARGET := $(shell pwd | sed 's|.*/\(.*\)$$|\1|')
-EXTERNALS_ROOT := $(shell pwd | sed 's|^\(/.*externals\).*|\1|')
+# To use this Makefile for your project, first put the name of your library in
+# LIBRARY_NAME variable. The folder for your project should have the same name
+# as your library.
+LIBRARY_NAME = moonlib
+LIBRARY_VERSION = 0.2
-default:
- make -C $(EXTERNALS_ROOT) $(TARGET)
+# Next, add your .c source files to the SOURCES variable. The help files will
+# be included automatically
+SOURCES = absolutepath.c basedir.c char2f.c comma.c dinlet~.c dispatch.c dripchar.c f2char.c gamme.c image.c mknob.c panvol~.c popen.c relativepath.c s2f.c sarray.c sfread2~.c slist.c ssaw~.c tabdump2.c tabenv.c tabreadl.c tabsort2.c tabsort.c wac.c
+
+
+# For objects that only build on certain platforms, add those to the SOURCES
+# line for the right platforms.
+SOURCES_android =
+SOURCES_cygwin =
+SOURCES_macosx =
+SOURCES_iphoneos =
+SOURCES_linux = readsfv~.c
+SOURCES_windows =
+
+# list all pd objects (i.e. myobject.pd) files here, and their helpfiles will
+# be included automatically
+PDOBJECTS =
+
+# if you want to include any other files in the source and binary tarballs,
+# list them here. This can be anything from header files, READMEs, example
+# patches, documentation, etc.
+EXTRA_DIST = README.txt XFS.txt pause.gif play.gif playy.gif rec.gif saww.gif sin.gif sinw.gif squarew.gif
+
+# special case: the 'd' directory of gifs was manually added below
+
+
+#------------------------------------------------------------------------------#
+#
+# you shouldn't need to edit anything below here, if we did it right :)
+#
+#------------------------------------------------------------------------------#
+
+# where Pd lives
+PD_PATH = ../../pd
+# where to install the library
+prefix = /usr/local
+libdir = $(prefix)/lib
+pkglibdir = $(libdir)/pd-externals
+objectsdir = $(pkglibdir)
+
+
+INSTALL = install
+INSTALL_FILE = $(INSTALL) -p -m 644
+INSTALL_DIR = $(INSTALL) -p -m 755 -d
+
+CFLAGS = -DPD -I$(PD_PATH)/src -Wall -W -g
+LDFLAGS =
+LIBS =
+ALLSOURCES := $(SOURCES) $(SOURCES_android) $(SOURCES_cygwin) $(SOURCES_macosx) \
+ $(SOURCES_iphoneos) $(SOURCES_linux) $(SOURCES_windows)
+
+UNAME := $(shell uname -s)
+ifeq ($(UNAME),Darwin)
+ CPU := $(shell uname -p)
+ ifeq ($(CPU),arm) # iPhone/iPod Touch
+ SOURCES += $(SOURCES_macosx)
+ EXTENSION = pd_darwin
+ OS = iphoneos
+ IPHONE_BASE=/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
+ CC=$(IPHONE_BASE)/gcc
+ CPP=$(IPHONE_BASE)/cpp
+ CXX=$(IPHONE_BASE)/g++
+ ISYSROOT = -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.0.sdk
+ IPHONE_CFLAGS = -miphoneos-version-min=3.0 $(ISYSROOT) -arch armv6
+ OPT_CFLAGS = -fast -funroll-loops -fomit-frame-pointer
+ CFLAGS := $(IPHONE_CFLAGS) $(OPT_CFLAGS) $(CFLAGS)
+ LDFLAGS += -arch armv6 -bundle -undefined dynamic_lookup $(ISYSROOT)
+ LIBS += -lc
+ STRIP = strip -x
+ DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
+ DISTBINDIR=$(DISTDIR)-$(OS)
+ else # Mac OS X
+ SOURCES += $(SOURCES_macosx)
+ EXTENSION = pd_darwin
+ OS = macosx
+ OPT_CFLAGS = -ftree-vectorize -ftree-vectorizer-verbose=2 -fast
+ FAT_FLAGS = -arch i386 -arch ppc -mmacosx-version-min=10.4
+ CFLAGS += $(FAT_FLAGS) -fPIC -I/sw/include
+ LDFLAGS += $(FAT_FLAGS) -bundle -undefined dynamic_lookup -L/sw/lib
+ # if the 'pd' binary exists, check the linking against it to aid with stripping
+ LDFLAGS += $(shell test -e $(PD_PATH)/bin/pd && echo -bundle_loader $(PD_PATH)/bin/pd)
+ LIBS += -lc
+ STRIP = strip -x
+ DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
+ DISTBINDIR=$(DISTDIR)-$(OS)
+ endif
+endif
+ifeq ($(UNAME),Linux)
+ SOURCES += $(SOURCES_linux)
+ EXTENSION = pd_linux
+ OS = linux
+ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
+ CFLAGS += -fPIC
+ LDFLAGS += -Wl,--export-dynamic -shared -fPIC
+ LIBS += -lc
+ STRIP = strip --strip-unneeded -R .note -R .comment
+ DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
+ DISTBINDIR=$(DISTDIR)-$(OS)-$(shell uname -m)
+endif
+ifeq (CYGWIN,$(findstring CYGWIN,$(UNAME)))
+ SOURCES += $(SOURCES_cygwin)
+ EXTENSION = dll
+ OS = cygwin
+ OPT_CFLAGS = -O6 -funroll-loops -fomit-frame-pointer
+ CFLAGS +=
+ LDFLAGS += -Wl,--export-dynamic -shared -L$(PD_PATH)/src
+ LIBS += -lc -lpd
+ STRIP = strip --strip-unneeded -R .note -R .comment
+ DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
+ DISTBINDIR=$(DISTDIR)-$(OS)
+endif
+ifeq (MINGW,$(findstring MINGW,$(UNAME)))
+ SOURCES += $(SOURCES_windows)
+ EXTENSION = dll
+ OS = windows
+ OPT_CFLAGS = -O3 -funroll-loops -fomit-frame-pointer -march=i686 -mtune=pentium4
+ WINDOWS_HACKS = -D'O_NONBLOCK=1'
+ CFLAGS += -mms-bitfields $(WINDOWS_HACKS)
+ LDFLAGS += -s -shared -Wl,--enable-auto-import
+ LIBS += -L$(PD_PATH)/src -L$(PD_PATH)/bin -L$(PD_PATH)/obj -lpd -lwsock32 -lkernel32 -luser32 -lgdi32
+ STRIP = strip --strip-unneeded -R .note -R .comment
+ DISTDIR=$(LIBRARY_NAME)-$(LIBRARY_VERSION)
+ DISTBINDIR=$(DISTDIR)-$(OS)
+endif
+
+CFLAGS += $(OPT_CFLAGS)
+
+
+.PHONY = install libdir_install single_install install-doc install-exec install-examples clean dist etags
+
+all: $(SOURCES:.c=.$(EXTENSION))
+
+%.o: %.c
+ $(CC) $(CFLAGS) -o "$*.o" -c "$*.c"
+
+%.$(EXTENSION): %.o
+ $(CC) $(LDFLAGS) -o "$*.$(EXTENSION)" "$*.o" $(LIBS)
+ chmod a-x "$*.$(EXTENSION)"
+
+# this links everything into a single binary file
+$(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o
+ $(CC) $(LDFLAGS) -o $(LIBRARY_NAME).$(EXTENSION) $(SOURCES:.c=.o) $(LIBRARY_NAME).o $(LIBS)
+ chmod a-x $(LIBRARY_NAME).$(EXTENSION)
+
+
+install: libdir_install
+
+# The meta and help files are explicitly installed to make sure they are
+# actually there. Those files are not optional, then need to be there.
+libdir_install: $(SOURCES:.c=.$(EXTENSION)) install-doc install-examples
+ $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd \
+ $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ test -z "$(strip $(SOURCES))" || (\
+ $(INSTALL_FILE) $(SOURCES:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) && \
+ $(STRIP) $(addprefix $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/,$(SOURCES:.c=.$(EXTENSION))))
+ test -z "$(strip $(PDOBJECTS))" || \
+ $(INSTALL_FILE) $(PDOBJECTS) \
+ $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+
+# install library linked as single binary
+single_install: $(LIBRARY_NAME) install-doc install-exec
+ $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ $(INSTALL_FILE) $(LIBRARY_NAME).$(EXTENSION) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ $(STRIP) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/$(LIBRARY_NAME).$(EXTENSION)
+
+install-doc:
+ $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ test -z "$(strip $(SOURCES))" || \
+ $(INSTALL_FILE) $(SOURCES:.c=-help.pd) \
+ $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ test -z "$(strip $(PDOBJECTS))" || \
+ $(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) \
+ $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ $(INSTALL_FILE) README.txt $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/README.txt
+ $(INSTALL_FILE) \
+ pause.gif play.gif playy.gif rec.gif saww.gif sin.gif sinw.gif squarew.gif \
+ $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
+ $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/d
+ $(INSTALL_FILE) d/d*.gif $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/d/
+
+install-examples:
+ test ! -d examples || (\
+ $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples && \
+ $(INSTALL_FILE) examples/*.* $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples)
-install:
- make -C $(EXTERNALS_ROOT) $(TARGET)_install
clean:
- make -C $(EXTERNALS_ROOT) $(TARGET)_clean
+ -rm -f -- $(SOURCES:.c=.o)
+ -rm -f -- $(SOURCES:.c=.$(EXTENSION))
+ -rm -f -- $(LIBRARY_NAME).$(EXTENSION)
+
+distclean: clean
+ -rm -f -- $(DISTBINDIR).tar.gz
+ -rm -rf -- $(DISTBINDIR)
+ -rm -f -- $(DISTDIR).tar.gz
+ -rm -rf -- $(DISTDIR)
+
+
+$(DISTBINDIR):
+ $(INSTALL_DIR) $(DISTBINDIR)
+
+libdir: all $(DISTBINDIR)
+ $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTBINDIR)
+ $(INSTALL_FILE) $(SOURCES) $(DISTBINDIR)
+ $(INSTALL_FILE) $(SOURCES:.c=-help.pd) $(DISTBINDIR)
+ test -z "$(strip $(EXTRA_DIST))" || \
+ $(INSTALL_FILE) $(EXTRA_DIST) $(DISTBINDIR)
+# tar --exclude-vcs -czpf $(DISTBINDIR).tar.gz $(DISTBINDIR)
+
+$(DISTDIR):
+ $(INSTALL_DIR) $(DISTDIR)
+
+dist: $(DISTDIR)
+ $(INSTALL_FILE) Makefile $(DISTDIR)
+ $(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTDIR)
+ test -z "$(strip $(ALLSOURCES))" || \
+ $(INSTALL_FILE) $(ALLSOURCES) $(DISTDIR)
+ test -z "$(strip $(ALLSOURCES))" || \
+ $(INSTALL_FILE) $(ALLSOURCES:.c=-help.pd) $(DISTDIR)
+ test -z "$(strip $(PDOBJECTS))" || \
+ $(INSTALL_FILE) $(PDOBJECTS) $(DISTDIR)
+ test -z "$(strip $(PDOBJECTS))" || \
+ $(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) $(DISTDIR)
+ test -z "$(strip $(EXTRA_DIST))" || \
+ $(INSTALL_FILE) $(EXTRA_DIST) $(DISTDIR)
+ $(INSTALL_DIR) $(DISTDIR)/d
+ $(INSTALL_FILE) d/d*.gif $(DISTDIR)/d/
+ tar --exclude-vcs -czpf $(DISTDIR).tar.gz $(DISTDIR)
-test_locations:
- make -C $(EXTERNALS_ROOT) test_locations
etags:
- etags *.[ch] $(EXTERNALS_ROOT)/../pd/src/*.[ch] /usr/include/*.h \
- /usr/include/*/*.h
+ etags *.h $(SOURCES) ../../pd/src/*.[ch] /usr/include/*.h /usr/include/*/*.h
+
+showpaths:
+ @echo "PD_PATH: $(PD_PATH)"
+ @echo "objectsdir: $(objectsdir)"
+ @echo "LIBRARY_NAME: $(LIBRARY_NAME)"
+ @echo "SOURCES: $(SOURCES)"
+ @echo "ALLSOURCES: $(ALLSOURCES)"
+ @echo "UNAME: $(UNAME)"
+ @echo "CPU: $(CPU)"
+
diff --git a/help/absolutepath-help.pd b/absolutepath-help.pd
index b056f4a..b056f4a 100644
--- a/help/absolutepath-help.pd
+++ b/absolutepath-help.pd
diff --git a/help/basedir-help.pd b/basedir-help.pd
index cbf9c9e..cbf9c9e 100644
--- a/help/basedir-help.pd
+++ b/basedir-help.pd
diff --git a/help/char2f-help.pd b/char2f-help.pd
index f133288..f133288 100644
--- a/help/char2f-help.pd
+++ b/char2f-help.pd
diff --git a/help/comma-help.pd b/comma-help.pd
index b8a8e63..b8a8e63 100644
--- a/help/comma-help.pd
+++ b/comma-help.pd
diff --git a/help/d/d0.gif b/d/d0.gif
index 89fd454..89fd454 100644
--- a/help/d/d0.gif
+++ b/d/d0.gif
Binary files differ
diff --git a/help/d/d1.gif b/d/d1.gif
index 3bdd5b6..3bdd5b6 100644
--- a/help/d/d1.gif
+++ b/d/d1.gif
Binary files differ
diff --git a/help/d/d10.gif b/d/d10.gif
index 13941b5..13941b5 100644
--- a/help/d/d10.gif
+++ b/d/d10.gif
Binary files differ
diff --git a/help/d/d11.gif b/d/d11.gif
index 05489a9..05489a9 100644
--- a/help/d/d11.gif
+++ b/d/d11.gif
Binary files differ
diff --git a/help/d/d12.gif b/d/d12.gif
index b6f2e79..b6f2e79 100644
--- a/help/d/d12.gif
+++ b/d/d12.gif
Binary files differ
diff --git a/help/d/d13.gif b/d/d13.gif
index 95ac806..95ac806 100644
--- a/help/d/d13.gif
+++ b/d/d13.gif
Binary files differ
diff --git a/help/d/d14.gif b/d/d14.gif
index c820bcb..c820bcb 100644
--- a/help/d/d14.gif
+++ b/d/d14.gif
Binary files differ
diff --git a/help/d/d15.gif b/d/d15.gif
index aadd006..aadd006 100644
--- a/help/d/d15.gif
+++ b/d/d15.gif
Binary files differ
diff --git a/help/d/d16.gif b/d/d16.gif
index b6b7429..b6b7429 100644
--- a/help/d/d16.gif
+++ b/d/d16.gif
Binary files differ
diff --git a/help/d/d17.gif b/d/d17.gif
index dbc581a..dbc581a 100644
--- a/help/d/d17.gif
+++ b/d/d17.gif
Binary files differ
diff --git a/help/d/d18.gif b/d/d18.gif
index d2699d0..d2699d0 100644
--- a/help/d/d18.gif
+++ b/d/d18.gif
Binary files differ
diff --git a/help/d/d19.gif b/d/d19.gif
index 082ad9a..082ad9a 100644
--- a/help/d/d19.gif
+++ b/d/d19.gif
Binary files differ
diff --git a/help/d/d2.gif b/d/d2.gif
index c1cd34f..c1cd34f 100644
--- a/help/d/d2.gif
+++ b/d/d2.gif
Binary files differ
diff --git a/help/d/d20.gif b/d/d20.gif
index 2bf3398..2bf3398 100644
--- a/help/d/d20.gif
+++ b/d/d20.gif
Binary files differ
diff --git a/help/d/d21.gif b/d/d21.gif
index e1b9463..e1b9463 100644
--- a/help/d/d21.gif
+++ b/d/d21.gif
Binary files differ
diff --git a/help/d/d22.gif b/d/d22.gif
index b33a110..b33a110 100644
--- a/help/d/d22.gif
+++ b/d/d22.gif
Binary files differ
diff --git a/help/d/d23.gif b/d/d23.gif
index cef38bf..cef38bf 100644
--- a/help/d/d23.gif
+++ b/d/d23.gif
Binary files differ
diff --git a/help/d/d24.gif b/d/d24.gif
index 629442d..629442d 100644
--- a/help/d/d24.gif
+++ b/d/d24.gif
Binary files differ
diff --git a/help/d/d25.gif b/d/d25.gif
index 87b766a..87b766a 100644
--- a/help/d/d25.gif
+++ b/d/d25.gif
Binary files differ
diff --git a/help/d/d26.gif b/d/d26.gif
index 3a45164..3a45164 100644
--- a/help/d/d26.gif
+++ b/d/d26.gif
Binary files differ
diff --git a/help/d/d27.gif b/d/d27.gif
index 257f589..257f589 100644
--- a/help/d/d27.gif
+++ b/d/d27.gif
Binary files differ
diff --git a/help/d/d28.gif b/d/d28.gif
index 0de8ba8..0de8ba8 100644
--- a/help/d/d28.gif
+++ b/d/d28.gif
Binary files differ
diff --git a/help/d/d29.gif b/d/d29.gif
index 588f65c..588f65c 100644
--- a/help/d/d29.gif
+++ b/d/d29.gif
Binary files differ
diff --git a/help/d/d3.gif b/d/d3.gif
index 1d6528b..1d6528b 100644
--- a/help/d/d3.gif
+++ b/d/d3.gif
Binary files differ
diff --git a/help/d/d30.gif b/d/d30.gif
index 1962cb8..1962cb8 100644
--- a/help/d/d30.gif
+++ b/d/d30.gif
Binary files differ
diff --git a/help/d/d31.gif b/d/d31.gif
index 4b5dd54..4b5dd54 100644
--- a/help/d/d31.gif
+++ b/d/d31.gif
Binary files differ
diff --git a/help/d/d32.gif b/d/d32.gif
index 37391dc..37391dc 100644
--- a/help/d/d32.gif
+++ b/d/d32.gif
Binary files differ
diff --git a/help/d/d33.gif b/d/d33.gif
index 5ce47b2..5ce47b2 100644
--- a/help/d/d33.gif
+++ b/d/d33.gif
Binary files differ
diff --git a/help/d/d34.gif b/d/d34.gif
index 29f5804..29f5804 100644
--- a/help/d/d34.gif
+++ b/d/d34.gif
Binary files differ
diff --git a/help/d/d35.gif b/d/d35.gif
index 0f2ac0f..0f2ac0f 100644
--- a/help/d/d35.gif
+++ b/d/d35.gif
Binary files differ
diff --git a/help/d/d36.gif b/d/d36.gif
index 2c59cf6..2c59cf6 100644
--- a/help/d/d36.gif
+++ b/d/d36.gif
Binary files differ
diff --git a/help/d/d37.gif b/d/d37.gif
index 290e514..290e514 100644
--- a/help/d/d37.gif
+++ b/d/d37.gif
Binary files differ
diff --git a/help/d/d38.gif b/d/d38.gif
index 246422c..246422c 100644
--- a/help/d/d38.gif
+++ b/d/d38.gif
Binary files differ
diff --git a/help/d/d39.gif b/d/d39.gif
index c09316e..c09316e 100644
--- a/help/d/d39.gif
+++ b/d/d39.gif
Binary files differ
diff --git a/help/d/d4.gif b/d/d4.gif
index 16c157c..16c157c 100644
--- a/help/d/d4.gif
+++ b/d/d4.gif
Binary files differ
diff --git a/help/d/d40.gif b/d/d40.gif
index 15a4f98..15a4f98 100644
--- a/help/d/d40.gif
+++ b/d/d40.gif
Binary files differ
diff --git a/help/d/d41.gif b/d/d41.gif
index a618a8a..a618a8a 100644
--- a/help/d/d41.gif
+++ b/d/d41.gif
Binary files differ
diff --git a/help/d/d42.gif b/d/d42.gif
index 0a2f7ab..0a2f7ab 100644
--- a/help/d/d42.gif
+++ b/d/d42.gif
Binary files differ
diff --git a/help/d/d43.gif b/d/d43.gif
index 9a52db3..9a52db3 100644
--- a/help/d/d43.gif
+++ b/d/d43.gif
Binary files differ
diff --git a/help/d/d44.gif b/d/d44.gif
index b649b7c..b649b7c 100644
--- a/help/d/d44.gif
+++ b/d/d44.gif
Binary files differ
diff --git a/help/d/d45.gif b/d/d45.gif
index 6926b51..6926b51 100644
--- a/help/d/d45.gif
+++ b/d/d45.gif
Binary files differ
diff --git a/help/d/d46.gif b/d/d46.gif
index ef6966c..ef6966c 100644
--- a/help/d/d46.gif
+++ b/d/d46.gif
Binary files differ
diff --git a/help/d/d47.gif b/d/d47.gif
index f22a248..f22a248 100644
--- a/help/d/d47.gif
+++ b/d/d47.gif
Binary files differ
diff --git a/help/d/d48.gif b/d/d48.gif
index b76e2e2..b76e2e2 100644
--- a/help/d/d48.gif
+++ b/d/d48.gif
Binary files differ
diff --git a/help/d/d49.gif b/d/d49.gif
index 4db26a3..4db26a3 100644
--- a/help/d/d49.gif
+++ b/d/d49.gif
Binary files differ
diff --git a/help/d/d5.gif b/d/d5.gif
index 5245f49..5245f49 100644
--- a/help/d/d5.gif
+++ b/d/d5.gif
Binary files differ
diff --git a/help/d/d50.gif b/d/d50.gif
index acae768..acae768 100644
--- a/help/d/d50.gif
+++ b/d/d50.gif
Binary files differ
diff --git a/help/d/d51.gif b/d/d51.gif
index 345177e..345177e 100644
--- a/help/d/d51.gif
+++ b/d/d51.gif
Binary files differ
diff --git a/help/d/d52.gif b/d/d52.gif
index 371ee22..371ee22 100644
--- a/help/d/d52.gif
+++ b/d/d52.gif
Binary files differ
diff --git a/help/d/d53.gif b/d/d53.gif
index 0aaeed8..0aaeed8 100644
--- a/help/d/d53.gif
+++ b/d/d53.gif
Binary files differ
diff --git a/help/d/d54.gif b/d/d54.gif
index 4eae9e5..4eae9e5 100644
--- a/help/d/d54.gif
+++ b/d/d54.gif
Binary files differ
diff --git a/help/d/d55.gif b/d/d55.gif
index f7579f0..f7579f0 100644
--- a/help/d/d55.gif
+++ b/d/d55.gif
Binary files differ
diff --git a/help/d/d56.gif b/d/d56.gif
index 56157aa..56157aa 100644
--- a/help/d/d56.gif
+++ b/d/d56.gif
Binary files differ
diff --git a/help/d/d57.gif b/d/d57.gif
index eba1418..eba1418 100644
--- a/help/d/d57.gif
+++ b/d/d57.gif
Binary files differ
diff --git a/help/d/d58.gif b/d/d58.gif
index 9952fb4..9952fb4 100644
--- a/help/d/d58.gif
+++ b/d/d58.gif
Binary files differ
diff --git a/help/d/d59.gif b/d/d59.gif
index ec69b2c..ec69b2c 100644
--- a/help/d/d59.gif
+++ b/d/d59.gif
Binary files differ
diff --git a/help/d/d6.gif b/d/d6.gif
index fd27e6d..fd27e6d 100644
--- a/help/d/d6.gif
+++ b/d/d6.gif
Binary files differ
diff --git a/help/d/d60.gif b/d/d60.gif
index 8cfd531..8cfd531 100644
--- a/help/d/d60.gif
+++ b/d/d60.gif
Binary files differ
diff --git a/help/d/d61.gif b/d/d61.gif
index 937089a..937089a 100644
--- a/help/d/d61.gif
+++ b/d/d61.gif
Binary files differ
diff --git a/help/d/d62.gif b/d/d62.gif
index 1ac6be2..1ac6be2 100644
--- a/help/d/d62.gif
+++ b/d/d62.gif
Binary files differ
diff --git a/help/d/d63.gif b/d/d63.gif
index 3642bb1..3642bb1 100644
--- a/help/d/d63.gif
+++ b/d/d63.gif
Binary files differ
diff --git a/help/d/d7.gif b/d/d7.gif
index dd74b47..dd74b47 100644
--- a/help/d/d7.gif
+++ b/d/d7.gif
Binary files differ
diff --git a/help/d/d8.gif b/d/d8.gif
index 59251c0..59251c0 100644
--- a/help/d/d8.gif
+++ b/d/d8.gif
Binary files differ
diff --git a/help/d/d9.gif b/d/d9.gif
index 782e7b9..782e7b9 100644
--- a/help/d/d9.gif
+++ b/d/d9.gif
Binary files differ
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..02d3ec2
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+pd-moonlib (0.2-1) unstable; urgency=low
+
+ * Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>
+
+ -- Hans-Christoph Steiner <hans@eds.org> Thu, 21 Jan 2010 23:27:04 -0500
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..9606b2d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,16 @@
+Source: pd-moonlib
+Section: sound
+Priority: optional
+Maintainer: Paul Brossier <piem@debian.org>
+Build-Depends: debhelper (>= 7.0.50~), puredata (>= 0.42.5-3.1~)
+Standards-Version: 3.8.3
+Homepage: http://puredata.info
+
+Package: pd-moonlib
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, pd
+Description: library of objects related to GUI control
+ Moonlib includes three sub-sections: nilib, which is a kind of wrapper
+ between Pd and Gtk, sublib, which is a collection of gui control objects, and
+ other, which are miscellaneous objects.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..e0e4a7c
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,13 @@
+Debianized-By: Hans-Christoph Steiner <hans@eds.org>
+Debianized-Date: Sat, 20 Feb 2010 17:14:25 -0400
+Files: *
+Copyright: 2001-2004, Antoine Rousseau
+
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ version 2 can be found in file "/usr/share/common-licenses/GPL-2".
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7c37855
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,16 @@
+#!/usr/bin/make -f
+
+LIBRARY_NAME = moonlib
+PACKAGE = pd-$(LIBRARY_NAME)
+pkglibdir = /usr/lib/pd/extra
+
+%:
+ dh $@
+
+override_dh_auto_install:
+ make DESTDIR=$(CURDIR)/debian/$(PACKAGE) pkglibdir=$(pkglibdir) install
+
+override_dh_shlibdeps:
+ dpkg-shlibdeps $(CURDIR)/debian/$(PACKAGE)$(pkglibdir)/$(LIBRARY_NAME)/*.pd_linux \
+ -T$(CURDIR)/debian/$(PACKAGE).substvars
+
diff --git a/help/dinlet~-help.pd b/dinlet~-help.pd
index 8033afe..8033afe 100644
--- a/help/dinlet~-help.pd
+++ b/dinlet~-help.pd
diff --git a/help/dispatch-help.pd b/dispatch-help.pd
index 16231ef..16231ef 100644
--- a/help/dispatch-help.pd
+++ b/dispatch-help.pd
diff --git a/help/dripchar-help.pd b/dripchar-help.pd
index 6318f36..6318f36 100644
--- a/help/dripchar-help.pd
+++ b/dripchar-help.pd
diff --git a/help/f2char-help.pd b/f2char-help.pd
index f133288..f133288 100644
--- a/help/f2char-help.pd
+++ b/f2char-help.pd
diff --git a/help/f2s-help.pd b/f2s-help.pd
index 005754a..005754a 100644
--- a/help/f2s-help.pd
+++ b/f2s-help.pd
diff --git a/help/gamme-help.pd b/gamme-help.pd
index 8f87eb0..8f87eb0 100644
--- a/help/gamme-help.pd
+++ b/gamme-help.pd
diff --git a/help/image-help.pd b/image-help.pd
index 12a5e9f..12a5e9f 100644
--- a/help/image-help.pd
+++ b/image-help.pd
diff --git a/help/makecolor-help.pd b/makecolor-help.pd
index ac52e81..ac52e81 100644
--- a/help/makecolor-help.pd
+++ b/makecolor-help.pd
diff --git a/help/mknob-help.pd b/mknob-help.pd
index 90f4fb2..90f4fb2 100644
--- a/help/mknob-help.pd
+++ b/mknob-help.pd
diff --git a/moonlib-meta.pd b/moonlib-meta.pd
new file mode 100644
index 0000000..b065669
--- /dev/null
+++ b/moonlib-meta.pd
@@ -0,0 +1,7 @@
+#N canvas 10 10 200 200 10;
+#N canvas 20 20 420 300 META 0;
+#X text 10 10 META this is a prototype of a libdir meta file;
+#X text 10 30 NAME moonlib;
+#X text 10 50 AUTHOR Antoine Rousseau;
+#X text 10 70 VERSION 0.2;
+#X restore 10 10 pd META;
diff --git a/help/panvol~-help.pd b/panvol~-help.pd
index f7ad351..f7ad351 100644
--- a/help/panvol~-help.pd
+++ b/panvol~-help.pd
diff --git a/help/pause.gif b/pause.gif
index 684f755..684f755 100644
--- a/help/pause.gif
+++ b/pause.gif
Binary files differ
diff --git a/help/play.gif b/play.gif
index 10ae809..10ae809 100644
--- a/help/play.gif
+++ b/play.gif
Binary files differ
diff --git a/help/playy.gif b/playy.gif
index c710c7e..c710c7e 100644
--- a/help/playy.gif
+++ b/playy.gif
Binary files differ
diff --git a/help/popen-help.pd b/popen-help.pd
index e37d8e9..e37d8e9 100644
--- a/help/popen-help.pd
+++ b/popen-help.pd
diff --git a/help/readsfv~-help.pd b/readsfv~-help.pd
index 5870912..5870912 100644
--- a/help/readsfv~-help.pd
+++ b/readsfv~-help.pd
diff --git a/readsfv~.c b/readsfv~.c
index 195175b..fc9c54f 100644
--- a/readsfv~.c
+++ b/readsfv~.c
@@ -21,13 +21,12 @@ for Windows if someone were willing to find a Pthreads package for it. */
Antoine Rousseau
*/
-#ifdef UNIX
-#include <unistd.h>
-#include <fcntl.h>
-#endif
#include <pthread.h>
#ifdef _WIN32
#include <io.h>
+#else
+#include <unistd.h>
+#include <fcntl.h>
#endif
#include <stdio.h>
#include <string.h>
diff --git a/help/rec.gif b/rec.gif
index d49b027..d49b027 100644
--- a/help/rec.gif
+++ b/rec.gif
Binary files differ
diff --git a/help/relativepath-help.pd b/relativepath-help.pd
index b056f4a..b056f4a 100644
--- a/help/relativepath-help.pd
+++ b/relativepath-help.pd
diff --git a/help/s2f-help.pd b/s2f-help.pd
index 2192924..2192924 100644
--- a/help/s2f-help.pd
+++ b/s2f-help.pd
diff --git a/help/sarray-help.pd b/sarray-help.pd
index 157d245..157d245 100644
--- a/help/sarray-help.pd
+++ b/sarray-help.pd
diff --git a/help/saww.gif b/saww.gif
index 32997ad..32997ad 100644
--- a/help/saww.gif
+++ b/saww.gif
Binary files differ
diff --git a/help/sfread2~-help.pd b/sfread2~-help.pd
index ad8ae16..ad8ae16 100644
--- a/help/sfread2~-help.pd
+++ b/sfread2~-help.pd
diff --git a/help/sin.gif b/sin.gif
index c84ad79..c84ad79 100644
--- a/help/sin.gif
+++ b/sin.gif
Binary files differ
diff --git a/help/sinw.gif b/sinw.gif
index 8bedc66..8bedc66 100644
--- a/help/sinw.gif
+++ b/sinw.gif
Binary files differ
diff --git a/help/slist-help.pd b/slist-help.pd
index f499120..f499120 100644
--- a/help/slist-help.pd
+++ b/slist-help.pd
diff --git a/help/squarew.gif b/squarew.gif
index 3e689c7..3e689c7 100644
--- a/help/squarew.gif
+++ b/squarew.gif
Binary files differ
diff --git a/help/ssaw~-help.pd b/ssaw~-help.pd
index 25903d1..25903d1 100644
--- a/help/ssaw~-help.pd
+++ b/ssaw~-help.pd
diff --git a/help/tabdump2-help.pd b/tabdump2-help.pd
index b69458c..b69458c 100644
--- a/help/tabdump2-help.pd
+++ b/tabdump2-help.pd
diff --git a/help/tabenv-help.pd b/tabenv-help.pd
index cb719d0..cb719d0 100644
--- a/help/tabenv-help.pd
+++ b/tabenv-help.pd
diff --git a/help/tabreadl-help.pd b/tabreadl-help.pd
index feebabe..feebabe 100644
--- a/help/tabreadl-help.pd
+++ b/tabreadl-help.pd
diff --git a/help/tabsort-help.pd b/tabsort-help.pd
index 805f12a..805f12a 100644
--- a/help/tabsort-help.pd
+++ b/tabsort-help.pd
diff --git a/help/tabsort2-help.pd b/tabsort2-help.pd
index 4f4e29a..4f4e29a 100644
--- a/help/tabsort2-help.pd
+++ b/tabsort2-help.pd
diff --git a/wac-help.pd b/wac-help.pd
new file mode 100644
index 0000000..1a885e6
--- /dev/null
+++ b/wac-help.pd
@@ -0,0 +1,4 @@
+#N canvas 840 624 450 300 10;
+#X obj 178 120 wac;
+#X text 122 188 placeholder help patch;
+#X text 113 52 wacom graphire on serial port only;