diff --git a/Makefile b/Makefile index 31b0566..c1da169 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,23 @@ + all: mkdir -p build cmake -S ao-play-async -B build (cd build; make) install: - mkdir -p ../../lib SUBDIR=`racket -e "(display (format \"~a-~a\" (system-type 'os*) (system-type 'arch)))"`; \ - FILES=`ls build/*.so` 2>/dev/null; if [ "$$FILES" != "" ]; then cp $$FILES ../../lib/$$SUBDIR; fi + mkdir -p lib/$$SUBDIR SUBDIR=`racket -e "(display (format \"~a-~a\" (system-type 'os*) (system-type 'arch)))"`; \ - FILES=`ls build/*.dll` 2>/dev/null; if [ "$$FILES" != "" ]; then cp $$FILES ../../lib/$$SUBDIR; fi + FILES=`ls build/*.so` 2>/dev/null; if [ "$$FILES" != "" ]; then cp $$FILES lib/$$SUBDIR; fi + SUBDIR=`racket -e "(display (format \"~a-~a\" (system-type 'os*) (system-type 'arch)))"`; \ + FILES=`ls build/*.dll` 2>/dev/null; if [ "$$FILES" != "" ]; then cp $$FILES lib/$$SUBDIR; fi +zip: + SUBDIR=`racket -e "(display (format \"~a-~a\" (system-type 'os*) (system-type 'arch)))"`; \ + (cd lib; zip -y -r -9 $$SUBDIR.zip $$SUBDIR) + SUBDIR=`racket -e "(display (format \"~a-~a\" (system-type 'os*) (system-type 'arch)))"`; \ + (cd lib; rm -rf $$SUBDIR) clean: rm -rf build diff --git a/lib/linux-x86_64.zip b/lib/linux-x86_64.zip new file mode 100644 index 0000000..1399825 Binary files /dev/null and b/lib/linux-x86_64.zip differ diff --git a/src/Makefile b/src/Makefile new file mode 100644 index 0000000..e76a88b --- /dev/null +++ b/src/Makefile @@ -0,0 +1,15 @@ + +TAGLIB=taglib-2.2.1 + +all: + tar xf ${TAGLIB}.tar.gz + SUBDIR=`racket -e "(display (format \"~a-~a\" (system-type 'os*) (system-type 'arch)))"`; \ + (cd ${TAGLIB}; cmake -DBUILD_SHARED_LIBS=ON -DCMAKE_INSTALL_PREFIX=../lib/$$SUBDIR -DCMAKE_BUILD_TYPE=Release .) + (cd ${TAGLIB}; make) + (cd ${TAGLIB}; make install) + SUBDIR=`racket -e "(display (format \"~a-~a\" (system-type 'os*) (system-type 'arch)))"`; \ + (cd lib/$$SUBDIR/lib; tar cf - *so *.so.*) | (cd ../lib/$$SUBDIR; tar xvf - ) + +clean: + rm -rf ${TAGLIB} + rm -rf lib diff --git a/src/taglib-2.2.1.tar.gz b/src/taglib-2.2.1.tar.gz new file mode 100644 index 0000000..17d68f5 Binary files /dev/null and b/src/taglib-2.2.1.tar.gz differ