shithub: opusfile

Download patch

ref: 51de1cedecac2fed792dca1a9cc70eec9845da4f
parent: 96dc7c6cd70451d15d24387eb57d7997ad541198
author: Ralph Giles <giles@mozilla.com>
date: Thu Dec 31 12:45:46 EST 2015

mingw: Add a package target.

This does the basics to build the win32 binary release zipfile
for testing. Doesn't sign or version it properly.

--- a/mingw/Makefile
+++ b/mingw/Makefile
@@ -86,3 +86,30 @@
 	$(MAKE) -C $< install
 
 # CROSS_COMPILE="i686-w64-mingw32-" ./Configure mingw no-asm no-shared --prefix=$PWD/mingw && make depend && make -j8 && make install
+
+# Package the binaries.
+DIST=opusfile-0.7rc-f22docker-win32
+package: $(DIST).zip
+
+$(DIST).zip: $(DIST)
+	zip -r $@ $</*
+	@echo $@ ready to go.
+
+$(DIST): $(addprefix $(CURDIR)/bin/, libogg-0.dll libopus-0.dll ssleay32.dll) 
+	cd .. && make install
+	mkdir -p $(DIST)
+	cp ../AUTHORS ../COPYING ../README.txt ../include/opusfile.h $@
+	cp ../.libs/libopusfile-0.dll $@
+	cp ../.libs/libopusfile.a $@
+	cp ../.libs/libopusfile.dll.a $@
+	cp ../.libs/libopusurl-0.dll $@
+	cp ../.libs/libopusurl.a $@
+	cp ../.libs/libopusurl.dll.a $@
+	cp bin/*.dll $@
+	cp ../examples/.libs/*.exe $@
+	cp /usr/i686-w64-mingw32/sys-root/mingw/bin/libgcc_s_sjlj-1.dll $@
+	cp /usr/i686-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll $@
+	i686-w64-mingw32-strip $@/*.exe
+	i686-w64-mingw32-strip $@/*.dll
+	i686-w64-mingw32-strip $@/*.a
+	cd $@ && sha256sum * > SHA256SUMS.txt