diff options
Diffstat (limited to 'externals/grill/py')
22 files changed, 49 insertions, 425 deletions
diff --git a/externals/grill/py/build-lnx-pd-gcc.sh b/externals/grill/py/build-lnx-pd-gcc.sh new file mode 100644 index 00000000..e76f5ed1 --- /dev/null +++ b/externals/grill/py/build-lnx-pd-gcc.sh @@ -0,0 +1 @@ +make -f ../flext/build/gnumake.mak PLATFORM=lnx RTSYS=pd COMPILER=gcc $* diff --git a/externals/grill/py/build-mac-pd-gcc.sh b/externals/grill/py/build-mac-pd-gcc.sh new file mode 100644 index 00000000..a88a3dbb --- /dev/null +++ b/externals/grill/py/build-mac-pd-gcc.sh @@ -0,0 +1 @@ +make -f ../flext/build/gnumake.mak PLATFORM=mac RTSYS=pd COMPILER=gcc $* diff --git a/externals/grill/py/build-pd-bcc.bat b/externals/grill/py/build-pd-bcc.bat deleted file mode 100644 index 3dd21329..00000000 --- a/externals/grill/py/build-pd-bcc.bat +++ /dev/null @@ -1,3 +0,0 @@ -@echo --- Building with BorlandC++ --- - -make -f makefile.pd-bcc diff --git a/externals/grill/py/build-pd-darwin.sh b/externals/grill/py/build-pd-darwin.sh deleted file mode 100755 index edd03207..00000000 --- a/externals/grill/py/build-pd-darwin.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -. config-pd-darwin.txt - -make -f makefile.pd-darwin && -{ - if [ $INSTPATH != "" ]; then - echo Now install as root - sudo make -f makefile.pd-darwin install - fi -} diff --git a/externals/grill/py/build-pd-linux.sh b/externals/grill/py/build-pd-linux.sh deleted file mode 100755 index 421cb6e1..00000000 --- a/externals/grill/py/build-pd-linux.sh +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/sh - -. config-pd-linux.txt - -make -f makefile.pd-linux && -{ - if [ ${INSTPATH} != "" ]; then - echo Now install as root - su -c "make -f makefile.pd-linux install" - fi -} diff --git a/externals/grill/py/build-win-max-msvc.bat b/externals/grill/py/build-win-max-msvc.bat index 436f6a8e..fcbccf23 100644 --- a/externals/grill/py/build-win-max-msvc.bat +++ b/externals/grill/py/build-win-max-msvc.bat @@ -1,4 +1,3 @@ @echo --- Building with MS Visual C++ ---
-nmake -f ..\flext\build\make-win-max-msvc.txt clean
-nmake -f ..\flext\build\make-win-max-msvc.txt
+nmake -f ..\flext\build\nmake.mak PLATFORM=win RTSYS=max COMPILER=msvc %1 %2 %3 %4 %5 %6 %7 %8 %9
diff --git a/externals/grill/py/build-win-pd-msvc.bat b/externals/grill/py/build-win-pd-msvc.bat index 942ee174..5a3958b9 100644 --- a/externals/grill/py/build-win-pd-msvc.bat +++ b/externals/grill/py/build-win-pd-msvc.bat @@ -1,4 +1,3 @@ @echo --- Building with MS Visual C++ --- -nmake -f ..\flext\build\make-win-pd-msvc.txt clean -nmake -f ..\flext\build\make-win-pd-msvc.txt +nmake -f ..\flext\build\nmake.mak PLATFORM=win RTSYS=pd COMPILER=msvc %1 %2 %3 %4 %5 %6 %7 %8 %9 diff --git a/externals/grill/py/config-lnx-gcc.txt b/externals/grill/py/config-lnx-gcc.txt new file mode 100644 index 00000000..737a5947 --- /dev/null +++ b/externals/grill/py/config-lnx-gcc.txt @@ -0,0 +1,12 @@ +# Your settings are defined in the files
+# ../flext/build/config-mac-pd-gcc.txt
+# and
+# ../flext/build/config-mac-max-gcc.txt
+#
+# You can override them here.
+
+# what is the base prefix of the Python
+PYTHONPREFIX=/usr
+
+# which Python version do you want to compile against
+PYTHONVERSION=2.3
diff --git a/externals/grill/py/config-mac-gcc.txt b/externals/grill/py/config-mac-gcc.txt new file mode 100644 index 00000000..5fdc44fb --- /dev/null +++ b/externals/grill/py/config-mac-gcc.txt @@ -0,0 +1,6 @@ +# Your settings are defined in the files
+# ../flext/build/config-mac-pd-gcc.txt
+# and
+# ../flext/build/config-mac-max-gcc.txt
+#
+# You can override them here. diff --git a/externals/grill/py/config-pd-bcc.txt b/externals/grill/py/config-pd-bcc.txt deleted file mode 100644 index 9137590d..00000000 --- a/externals/grill/py/config-pd-bcc.txt +++ /dev/null @@ -1,31 +0,0 @@ -# py/pyext - python script objects for PD and Max/MSP -# Copyright (c) 2002 Thomas Grill (xovo@gmx.net) -# - -# where is PD? -PDPATH=c:\programme\audio\pd - -# where do the flext libraries reside? -FLEXTPATH=$(PDPATH)\flext - -# where is BorlandC++? -BCCPATH=c:\programme\prog\bcc55 - -# which version of Python? -PYTHONVER=python23 - -# where are the python header files? -PYTHONINCLUDE=c:\programme\prog\$(PYTHONVER)\include - -# what is the python library file? -PYTHONBIN=c:\windows\system32\$(PYTHONVER).dll - -# where should the external(s) be built? -OUTPATH=.\pd-bcc - -# should the external be installed? (yes/no) -INSTALL=yes - -# where should the external be installed? -INSTDIR=$(PDPATH)\extra - diff --git a/externals/grill/py/config-pd-darwin.txt b/externals/grill/py/config-pd-darwin.txt deleted file mode 100755 index 427395fa..00000000 --- a/externals/grill/py/config-pd-darwin.txt +++ /dev/null @@ -1,28 +0,0 @@ -# py/pyext - python script objects for PD and Max/MSP -# Copyright (c) 2002 Thomas Grill (xovo@gmx.net) -# -# your c++ compiler (define only if not g++) -# CXX=g++ - -# where are the PD header files? -# leave it blank if it is a system directory (like /usr/local/include), -# since gcc 3.2 complains about it -PDPATH=../../../pd/src - -# where is the PD executable? -PD=/usr/local/bin/pd - -# where do the flext libraries reside? -FLEXTPATH=/usr/local/lib/pd/flext - -# where should flext libraries be built? -TARGDIR=./pd-darwin -# where should the external be installed? -# (leave blank to omit installation) -INSTPATH=/usr/local/lib/pd/extra - -# user flags -UFLAGS=-malign-power -faltivec -maltivec - -# use shared flext library -FLEXT_SHARED=1 diff --git a/externals/grill/py/config-pd-linux.txt b/externals/grill/py/config-pd-linux.txt deleted file mode 100644 index 19692e54..00000000 --- a/externals/grill/py/config-pd-linux.txt +++ /dev/null @@ -1,35 +0,0 @@ -# py/pyext - python script objects for PD and Max/MSP -# Copyright (c) 2002 Thomas Grill (xovo@gmx.net) -# - -# your c++ compiler (define only if not g++) -# CXX=g++ - -# where are the PD header files? -# leave it blank if it is a system directory (like /usr/local/include), -# since gcc 3.2 complains about it -PDPATH= - -# where do the flext libraries reside? -FLEXTPATH=/usr/local/lib/pd/flext - -# what is the python version? -PYTHONVER=2.3 -# where are the python header files? -PYTHONINCLUDE=/usr/local/include/python${PYTHONVER} -# where is the python library file? -# in most cases this need only be specified for static linking -# PYTHONLIB=/usr/local/lib/python${PYTHONVER}/config - -# where should flext libraries be built? -TARGDIR=./pd-linux - -# where should the external be installed? -# (leave blank to omit installation) -INSTPATH=/usr/local/lib/pd/extra - -# define for shared build -#FLEXT_SHARED=1 - -# additional user flags -UFLAGS= diff --git a/externals/grill/py/config-win-max-msvc.txt b/externals/grill/py/config-win-max-msvc.txt deleted file mode 100644 index 6ea09abd..00000000 --- a/externals/grill/py/config-win-max-msvc.txt +++ /dev/null @@ -1,11 +0,0 @@ -# py/pyext - python script objects for PD and Max/MSP
-# Copyright (c)2002-04 Thomas Grill (gr@grrrr.org)
-#
-#
-# Your settings are defined in the file
-# ..\flext\build\config-win-max-msvc.txt
-#
-# You can override them here.
-
-# where is the Python installation?
-PYTHONPATH=c:\programme\prog\python24
diff --git a/externals/grill/py/config-win-msvc.txt b/externals/grill/py/config-win-msvc.txt new file mode 100644 index 00000000..9c2a195a --- /dev/null +++ b/externals/grill/py/config-win-msvc.txt @@ -0,0 +1,9 @@ +# Your settings are defined in the files
+# ..\flext\build\config-win-pd-msvc.txt
+# and
+# ..\flext\build\config-win-max-msvc.txt
+#
+# You can override them here.
+
+# where is the Python installation?
+PYTHONPATH=c:\programme\prog\python24
diff --git a/externals/grill/py/config-win-pd-msvc.txt b/externals/grill/py/config-win-pd-msvc.txt deleted file mode 100644 index 828b469c..00000000 --- a/externals/grill/py/config-win-pd-msvc.txt +++ /dev/null @@ -1,12 +0,0 @@ -# py/pyext - python script objects for PD and Max/MSP -# Copyright (c)2002-04 Thomas Grill (gr@grrrr.org) -# -# -# Your settings are defined in the file -# ..\flext\build\config-win-pd-msvc.txt -# -# You can override them here. - - -# where is the Python installation? -PYTHONPATH=c:\programme\prog\python24 diff --git a/externals/grill/py/makefile-lnx-gcc.txt b/externals/grill/py/makefile-lnx-gcc.txt new file mode 100644 index 00000000..a536803d --- /dev/null +++ b/externals/grill/py/makefile-lnx-gcc.txt @@ -0,0 +1,9 @@ +# usage:
+# to build run "sh build-mac-max-gcc.sh" or "sh build-mac-pd-gcc.sh"
+#
+
+INCPATH += -I$(PYTHONPREFIX)/include/python$(PYTHONVERSION)
+LIBS += -lpython$(PYTHONVERSION)
+
+# multi-threaded build
+THREADED=1
diff --git a/externals/grill/py/makefile-mac-gcc.txt b/externals/grill/py/makefile-mac-gcc.txt new file mode 100644 index 00000000..c1ed50cb --- /dev/null +++ b/externals/grill/py/makefile-mac-gcc.txt @@ -0,0 +1,8 @@ +# usage:
+# to build run "sh build-mac-max-gcc.sh" or "sh build-mac-pd-gcc.sh"
+# + +LIBS += -framework Python
+ +# multithreaded build
+THREADED=1
diff --git a/externals/grill/py/makefile-win-msvc.txt b/externals/grill/py/makefile-win-msvc.txt index 9d923235..0dea185b 100644 --- a/externals/grill/py/makefile-win-msvc.txt +++ b/externals/grill/py/makefile-win-msvc.txt @@ -1,6 +1,3 @@ -# py/pyext - python script object for PD and Max/MSP
-# Copyright (C)2002-04 Thomas Grill (gr@grrrr.org)
-#
# Makefile for MSVC++ 6 and 7
#
# usage:
@@ -12,4 +9,4 @@ INCPATH=/I$(PYTHONPATH)\include LIBPATH=/LIBPATH:$(PYTHONPATH)\libs
# multithreaded build
-FLEXT_THREADED=1
+THREADED=1
diff --git a/externals/grill/py/makefile.pd-bcc b/externals/grill/py/makefile.pd-bcc deleted file mode 100644 index 9141ffb8..00000000 --- a/externals/grill/py/makefile.pd-bcc +++ /dev/null @@ -1,81 +0,0 @@ -# py/pyext - python script object for PD and MaxMSP -# Copyright (C) 2002 Thomas Grill -# -# Makefile for BorlandC++ -# -# usage: make -f makefile.pd-bcc -# -# ... no threads! -# -# --------------------------------------------- - -!include config-pd-bcc.txt - -NAME=py -SETUPFUNCTION=$(NAME)_setup - -# flext stuff -TARGET=pdwin - -# includes, libs -INCPATH=-I$(BCCPATH)\include -I$(PYTHONINCLUDE) -I$(PDPATH)\src -I$(FLEXTPATH) -LIBPATH=-L$(BCCPATH)\lib -L$(PDPATH)\lib -LIBS=cw32.lib import32.lib C0D32.OBJ - -# compiler definitions and flags -DEFS=-DFLEXT_SYS=2 -CFLAGS=-6 -O2 -OS -ff -tWD - - -# the rest can stay untouched -# ---------------------------------------------- - -# all the source files from the package -!include make-files.txt - -# default target -all: $(OUTPATH)\$(NAME).dll - -# remove build -clean: - -del /s /q $(OUTPATH) > nul - rmdir $(OUTPATH) - - -install: - cp $(OUTPATH)\$(NAME).dll $(INSTDIR) - -# ---------------------------------------------- - -OBJS= $(SRCS:.cpp=.obj) - -#.PATH.OBJ=$(OUTPATH) - -#$(SRCS): $(HDRS) -# -touch $< - -{$(SRCDIR)}.cpp.obj: - bcc32 -c $(CFLAGS) $(DEFS) $(INCPATH) -n$(OUTPATH) $< - -$(OUTPATH): - -@if not exist $< mkdir $< - -$(OUTPATH)\pd.lib: $(PDPATH)\bin\pd.dll - implib -a $< $** - -$(OUTPATH)\python.lib: $(PYTHONBIN) - implib -a $< $** - -$(OUTPATH)\$(NAME).def: - @echo EXPORTS $(SETUPFUNCTION) = _$(SETUPFUNCTION) > $< - @echo IMPORTS _Py_Initialize = $(PYTHONVER).Py_Initialize >> $< - @echo IMPORTS _Py_Finalize = $(PYTHONVER).Py_Finalize >> $< - -$(OUTPATH)\$(NAME).dll :: $(OUTPATH) $(OUTPATH)\$(NAME).def $(OUTPATH)\pd.lib $(OUTPATH)\python.lib - -$(OUTPATH)\$(NAME).dll :: $(OBJS) - cd $(OUTPATH) - ilink32 -C -Tpd $(LIBPATH) $** ,..\$<,,$(LIBS) pd.lib python.lib $(FLEXTPATH)\flext-$(TARGET).lib ,$(NAME).def - cd .. - -
\ No newline at end of file diff --git a/externals/grill/py/makefile.pd-darwin b/externals/grill/py/makefile.pd-darwin deleted file mode 100755 index 46e50bab..00000000 --- a/externals/grill/py/makefile.pd-darwin +++ /dev/null @@ -1,83 +0,0 @@ -# py/pyext - python script objects for PD and Max/MSP -# Copyright (C) 2002 Thomas Grill (xovo@gmx.net) -# -# Makefile for gcc @ darwin (OSX) -# -# usage: -# to build run "make -f makefile.pd-darwin" -# to install (as root), do "make -f makefile.pd-darwin install" -# - -CONFIG=config-pd-darwin.txt - -include ${CONFIG} - -# compiler+linker stuff -INCLUDES=${PDPATH} ${FLEXTPATH} -FLAGS=-DFLEXT_SYS=2 -CFLAGS=$(UFLAGS) -Wno-long-double -Wno-unused -Wno-parentheses -Wno-switch -Wstrict-prototypes -LIBS=m -FRAMEWORKS=Python Carbon -LDFLAGS=-bundle -bundle_loader ${PD} - -ifndef DEBUG -CFLAGS+=-O2 -else -CFLAGS+=-g -endif - -ifdef FLEXT_SHARED - -CFLAGS+=-DFLEXT_SHARED -LDFLAGS+=-L$(FLEXTPATH) -FLEXTLIB=-lflext - -else - -CFLAGS+=-DFLEXT_THREADS -FLEXTLIB=$(FLEXTPATH)/libflext_t.a - -endif - -# --------------------------------------------- -# the rest can stay untouched -# ---------------------------------------------- -# all the source files from the package -include make-files.txt - - -TARGET=$(TARGDIR)/$(NAME).pd_darwin -MAKEFILE=makefile.pd-darwin - -# default target -all: $(TARGDIR) $(TARGET) - -$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(MAKEFILE) $(CONFIG) - touch $@ - -$(TARGDIR): - -mkdir $(TARGDIR) - -$(TARGDIR)/%.o : $(SRCDIR)/%.cpp - $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES)) $< -o $@ - -$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) - $(CXX) $(LDFLAGS) $^ $(FLEXTLIB) $(patsubst %,-framework %,$(FRAMEWORKS)) $(patsubst %,-L%,$(LIBPATH)) $(patsubst %,-l%,$(LIBS)) -o $@ - chmod 755 $@ - -$(INSTPATH): - -mkdir $(INSTPATH) - -install:: $(INSTPATH) - -install:: $(TARGET) - cp $^ $(INSTPATH) -# chown root.root $(patsubst %,$(INSTPATH)/%,$(notdir $^)) -# chmod 755 $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - -.PHONY: clean - -clean: - rm -f $(TARGDIR)/*.o $(TARGET) - - diff --git a/externals/grill/py/makefile.pd-linux b/externals/grill/py/makefile.pd-linux deleted file mode 100644 index 2b725264..00000000 --- a/externals/grill/py/makefile.pd-linux +++ /dev/null @@ -1,111 +0,0 @@ -# py/pyext - python script object for PD and Max/MSP -# Copyright (C) 2002 Thomas Grill (xovo@gmx.net) -# -# Makefile for gcc @ linux -# -# usage: -# to build run "make -f makefile.pd-linux" -# to install (as root), do "make -f makefile.pd-linux install" -# - -CONFIG=config-pd-linux.txt -MAKEFILE=makefile.pd-linux - -include $(CONFIG) - - -# compiler+linker stuff -INCLUDES=$(PDPATH) $(PYTHONINCLUDE) -LIBPATH=$(PYTHONLIB) -FLAGS=-DFLEXT_SYS=2 -CFLAGS=-pthread $(UFLAGS) -LDFLAGS=$(UFLAGS) # needed by icc -LIBS=util python$(PYTHONVER) - -ifdef DEBUG -CFLAGS+=-g -DFLEXT_DEBUG -else -CFLAGS+=-O2 -endif - -ifdef FLEXT_SHARED -CFLAGS+=-shared -FLAGS+=-DFLEXT_SHARED -LIBPATH+=$(FLEXTPATH) - -ifdef DEBUG -LIBFLEXT=-lflext_d -else -LIBFLEXT=-lflext -endif - -ifeq ($(CXX),icc) -LDFLAGS+=-i_dynamic -else -LDFLAGS+=-Wl,-Bdynamic -endif - -else - -FLAGS+=-DFLEXT_THREADS -ifdef DEBUG -LIBFLEXT=$(FLEXTPATH)/libflext_td.a -else -LIBFLEXT=$(FLEXTPATH)/libflext_t.a -endif - -endif - - -# --------------------------------------------- -# the rest can stay untouched -# ---------------------------------------------- - -NAME=py - -# all the source files from the package -include make-files.txt - -TARGET=$(TARGDIR)/$(NAME).pd_linux - -# default target -all: $(TARGDIR) $(TARGET) - -$(patsubst %,$(SRCDIR)/%,$(SRCS)): $(patsubst %,$(SRCDIR)/%,$(HDRS)) $(MAKEFILE) $(CONFIG) - touch $@ - -$(TARGDIR): - -mkdir $(TARGDIR) - -$(TARGDIR)/%.o : $(SRCDIR)/%.cpp - $(CXX) -c $(CFLAGS) $(FLAGS) $(patsubst %,-I%,$(INCLUDES) $(FLEXTPATH)) $< -o $@ - -$(TARGET) : $(patsubst %.cpp,$(TARGDIR)/%.o,$(SRCS)) - $(CXX) -shared $(LDFLAGS) -o $@ $^ $(patsubst %,-L%,$(LIBPATH)) $(LIBFLEXT) $(patsubst %,-l%,$(LIBS)) -ifndef DEBUG - strip --strip-unneeded $@ -endif - chmod 755 $@ - -$(INSTPATH): - -mkdir $(INSTDIR) - -install:: $(INSTDIR) - -install:: $(TARGET) - cp $^ $(INSTPATH) - chown root.root $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - chmod 755 $(patsubst %,$(INSTPATH)/%,$(notdir $^)) - -.PHONY: clean -clean: - rm -f $(TARGDIR)/*.o $(TARGET) - - - - - - - - - diff --git a/externals/grill/py/py.cw b/externals/grill/py/py.cw Binary files differdeleted file mode 100644 index 0327d7a3..00000000 --- a/externals/grill/py/py.cw +++ /dev/null |