diff options
author | David Seifert <soap@gentoo.org> | 2017-06-03 22:12:04 +0200 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-06-03 22:52:06 +0200 |
commit | 0a8189aa0fac03f213c968ba973bbe21ee178dbc (patch) | |
tree | 78aa7dcfc87305b929daefb7fd4c6235926abb7f /media-sound/flac-image/files | |
parent | media-sound/csound: [QA] Various fixes (diff) | |
download | gentoo-0a8189aa0fac03f213c968ba973bbe21ee178dbc.tar.gz gentoo-0a8189aa0fac03f213c968ba973bbe21ee178dbc.tar.bz2 gentoo-0a8189aa0fac03f213c968ba973bbe21ee178dbc.zip |
media-sound/flac-image: [QA] Various fixes
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-sound/flac-image/files')
-rw-r--r-- | media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch | 10 | ||||
-rw-r--r-- | media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch | 18 |
2 files changed, 28 insertions, 0 deletions
diff --git a/media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch b/media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch new file mode 100644 index 000000000000..0ba842c7ee02 --- /dev/null +++ b/media-sound/flac-image/files/flac-image-1.00-add-missing-string-include.patch @@ -0,0 +1,10 @@ +--- a/flac-image.c ++++ b/flac-image.c +@@ -15,6 +15,7 @@ + */ + + #include <stdio.h> ++#include <string.h> + #include <unistd.h> + #include <sys/stat.h> + #include <fcntl.h> diff --git a/media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch b/media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch new file mode 100644 index 000000000000..2cd8c538b475 --- /dev/null +++ b/media-sound/flac-image/files/flac-image-1.00-fix-build-system.patch @@ -0,0 +1,18 @@ +Fix Makefile to respect user variables + +--- a/Makefile ++++ b/Makefile +@@ -3,9 +3,8 @@ + # by default, you probably need to add -I/usr/whereever/flac to CFLAGS and + # -L/usr/lib/whereever to the link step. + +-CFLAGS="-Wall -g" +- + flac-image: flac-image.o +- gcc -o flac-image -lFLAC flac-image.o ++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ -lFLAC + +-flac-image: flac-image.c flac-image.h +\ No newline at end of file ++flac-image.o: flac-image.c flac-image.h ++ $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< |