--- Makefile.orig 2016-05-15 04:06:19.000000000 -0500
+++ Makefile 2016-09-26 00:19:13.000000000 -0500
# Enable compilation of Javascript decoder with Emscripten
# Enable x265 for the encoder
# Enable the JCTVC code (best quality but slow) for the encoder
# Compile bpgview (SDL and SDL_image libraries needed)
# Enable it to use bit depths > 12 (need more tests to validate encoder)
BPGDEC_LIBS:=-lpng $(LIBS)
BPGENC_LIBS+=-lpng -ljpeg $(LIBS)
-BPGVIEW_LIBS:=-lSDL_image -lSDL $(LIBS)
+BPGVIEW_LIBS:=$(shell pkg-config SDL_image --libs) $(LIBS)
size bpgdec libbpg.o libavcodec/*.o libavutil/*.o | sort -n
- install -s -m 755 $^ $(prefix)/bin
+install: bpgenc bpgdec bpgview
+ install -s -m 755 $^ $(DESTDIR)$(prefix)/bin
CLEAN_DIRS=doc html libavcodec libavutil \
jctvc jctvc/TLibEncoder jctvc/TLibVideoIO jctvc/TLibCommon jctvc/libmd5