Added libao.
authorDaniel G <giri@nwrk.biz>
Tue, 22 Jan 2019 01:52:08 +0000 (02:52 +0100)
committerDaniel G <giri@nwrk.biz>
Tue, 22 Jan 2019 01:52:08 +0000 (02:52 +0100)
_template/packages/libao/.gitignore [new file with mode: 0644]
_template/packages/libao/Makefile [new file with mode: 0644]
_template/packages/libao/libao-1.2.2.tar.gz [new file with mode: 0644]

diff --git a/_template/packages/libao/.gitignore b/_template/packages/libao/.gitignore
new file mode 100644 (file)
index 0000000..3a0c00e
--- /dev/null
@@ -0,0 +1,7 @@
+# Ignore everything
+*
+
+# But not these files...
+!.gitignore
+!libao-1.2.2.tar.gz
+!Makefile
\ No newline at end of file
diff --git a/_template/packages/libao/Makefile b/_template/packages/libao/Makefile
new file mode 100644 (file)
index 0000000..3c48545
--- /dev/null
@@ -0,0 +1,45 @@
+############################################################################
+# Workfile: Makefile
+# Author: Daniel Giritzer, S1810567004 (daniel@giritzer.eu)
+# Date: 03.12.2018
+# Description: Universal Makefile for Unix based Operating Systems
+# For Linux please use libao of your distribution!
+############################################################################
+WORKDIR = $(shell pwd)
+
+all: unpack windows
+
+.PHONY: unpack
+unpack:
+       tar xvzf libao-1.2.2.tar.gz
+
+.PHONY: windows
+windows:
+       cd $(WORKDIR)/libao-1.2.2; \
+       ./autogen.sh; \
+       ./configure CFLAGS="-m32 -static -mconsole" CXXFLAGS="-static -m32 -mconsole" LDFLAGS="-m32 -static -static-libgcc -static-libstdc++ -lpthread" --enable-static --disable-pulse --disable-alsa --disable-alsa-mmap --enable-wmm --host=i686-w64-mingw32; \
+       make -j4
+       mkdir -p $(WORKDIR)/../../include
+       mkdir -p $(WORKDIR)/../../lib/mingw32
+       cp -rf $(WORKDIR)/libao-1.2.2/include/ao $(WORKDIR)/../../include
+       cp -rf $(WORKDIR)/libao-1.2.2/src/.libs/libao.a $(WORKDIR)/../../lib/mingw32
+
+.PHONY: linux_dont_build_me
+linux_dont_build_me:
+       cd $(WORKDIR)/libao-1.2.2; \
+       ./autogen.sh; \
+       ./configure CFLAGS='-m32 -static -static-libgcc -static-libstdc++' --enable-static --enable-pulse --enable-alsa --enable-alsa-mmap; \
+       sed -i -e 's/@HAVE_ALSA_TRUE@//g' $(WORKDIR)/libao-1.2.2/src/plugins/alsa/Makefile.in; \
+       sed -i -e 's/@HAVE_ALSA_FALSE@//g' $(WORKDIR)/libao-1.2.2/src/plugins/alsa/Makefile.in; \
+       make -j4
+       mkdir -p $(WORKDIR)/../../include
+       mkdir -p $(WORKDIR)/../../lib/linux32
+       cp -rf $(WORKDIR)/libao-1.2.2/include/ao $(WORKDIR)/../../include
+       cp -rf $(WORKDIR)/libao-1.2.2/src/.libs/libao.a $(WORKDIR)/../../lib/linux32
+       cp -rf $(WORKDIR)/libao-1.2.2/src/plugins/pulse/.libs/libpulse.a $(WORKDIR)/../../lib/linux32
+       cp -rf $(WORKDIR)/libao-1.2.2/src/plugins/alsa/.libs/libalsa.a $(WORKDIR)/../../lib/linux32
+
+.PHONY: clean
+clean:
+       cd $(WORKDIR)/libao-1.2.2; \
+       make clean
diff --git a/_template/packages/libao/libao-1.2.2.tar.gz b/_template/packages/libao/libao-1.2.2.tar.gz
new file mode 100644 (file)
index 0000000..2c424d3
Binary files /dev/null and b/_template/packages/libao/libao-1.2.2.tar.gz differ