[SCM] libsndfile/master: Made examples buildable (and build reproducible)

umlaeute at users.alioth.debian.org umlaeute at users.alioth.debian.org
Thu Aug 17 12:26:09 UTC 2017


The following commit has been merged in the master branch:
commit d64696d8c5187069e8ec76d16b95033e8ad8754f
Author: IOhannes m zmölnig (Debian/GNU) <umlaeute at debian.org>
Date:   Thu Aug 17 14:20:51 2017 +0200

    Made examples buildable (and build reproducible)

diff --git a/debian/examples/Makefile b/debian/examples/Makefile
new file mode 100644
index 0000000..82d9a97
--- /dev/null
+++ b/debian/examples/Makefile
@@ -0,0 +1,13 @@
+SRC=$(wildcard *.c)
+APPS=$(SRC:%.c=%)
+SNDLIBS=$(LIBS) $(shell pkg-config --cflags --libs sndfile) -lm
+
+.PHONY: default clean
+
+default: $(APPS)
+
+%: %.c
+	$(CC) -Icommon $(CPPFLAGS) $(CFLAGS) -o $@ $< $(SNDLIBS)
+
+clean:
+	rm -f $(APPS)
diff --git a/debian/libsndfile1-dev.examples b/debian/libsndfile1-dev.examples
index 44f63b7..12bd6a0 100644
--- a/debian/libsndfile1-dev.examples
+++ b/debian/libsndfile1-dev.examples
@@ -1,2 +1,5 @@
 examples/*.c
-examples/Makefile
+debian/examples/Makefile
+src/common.h
+src/sfconfig.h
+src/config.h

-- 
libsndfile packaging



More information about the pkg-multimedia-commits mailing list