Mercurial > hg > plosc
changeset 7:9b52fefb48c9
Now installable as SWI Prolog pack.
author | samer |
---|---|
date | Wed, 21 Aug 2013 14:35:39 +0100 |
parents | 8f2689f2989d |
children | 42c3d1f5c03b 0acbb359fe6a |
files | Makefile c/Makefile pack/Makefile pack/pack.pl release/plosc-0.1.tar.gz release/plosc-0.2.tar.gz release/plosc-0.3.tar.gz release/plosc-0.4.tgz |
diffstat | 8 files changed, 42 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Tue Feb 28 22:50:44 2012 +0000 +++ b/Makefile Wed Aug 21 14:35:39 2013 +0100 @@ -4,7 +4,7 @@ export LIBLO=/opt/local # target extension is dylib for OSX, so under Linux -export SO=dylib +export SOEXT=dylib # if you have multiple SWI Prolog installations or an installation # in a non-standard place, set PLLD to the appropriate plld invokation, eg @@ -19,12 +19,25 @@ # use '-bp' under Linux export INSTALL_FLAGS='-bCS' -VER=0.3 +VER=0.4 # ---------------- end of configuration --------------- +export PACKNAME=plosc main: make -C c +packfile: + mkdir -p $(PACKNAME) $(PACKNAME)/c $(PACKNAME)/prolog $(PACKNAME)/example + cp -p pack/* $(PACKNAME) + cp -p c/*.c $(PACKNAME)/c + cp -p c/Makefile $(PACKNAME)/c + cp -p prolog/*.pl $(PACKNAME)/prolog + cp -p README $(PACKNAME) + cp -p CHANGES $(PACKNAME) + cp -pR example $(PACKNAME) + tar czf release/$(PACKNAME)-$(VER).tgz $(PACKNAME) + rm -rf $(PACKNAME) + clean: make -C c clean @@ -37,7 +50,3 @@ install-pl: make -C prolog install - -tarball: - mkdirhier release - (cd .. && tar czf plosc/release/plosc-$(VER).tar.gz --exclude .DS_Store --exclude .swiple_history --exclude CVS --exclude "*.gz" --exclude release plosc)
--- a/c/Makefile Tue Feb 28 22:50:44 2012 +0000 +++ b/c/Makefile Wed Aug 21 14:35:39 2013 +0100 @@ -1,7 +1,7 @@ # This will not work as a stand-alone make file - it must be # called recursively from the make file in the directory above. -TARGET=plosc.$(SO) +TARGET=plosc.$(SOEXT) PLLDFLAGS=-I$(LIBLO)/include -L$(LIBLO)/lib -llo -fPIC -Wall .SUFFIXES: .c .o .so .dylib
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pack/Makefile Wed Aug 21 14:35:39 2013 +0100 @@ -0,0 +1,19 @@ +# ---------------- configuration ---------------------- +export PLLD=$(SWIHOME)/bin/$(SWIARCH)/swipl-ld + +# set this to the prefix directory of your liblo installation +export LIBLO=/opt/local +# ---------------- end of configuration --------------- + +all: + make -C c + +check: + echo "No checks defined." + +clean: + make -C c clean + +install: all + install -d $(PACKSODIR) + install -bCS c/plosc.$(SOEXT) $(PACKSODIR)
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pack/pack.pl Wed Aug 21 14:35:39 2013 +0100 @@ -0,0 +1,7 @@ +name(plosc). +version('0.4'). +author('Samer Abdallah','s.abdallah@ucl.ac.uk'). +title('OSC input/output via liblo'). +keywords([midi,osx]). +download('https://code.soundsoftware.ac.uk/projects/plosc/repository/raw/release/plosc-0.4.tgz'). +