Files

44 lines
1.5 KiB
Diff

--- Makefile.orig 2018-04-21 04:42:55.000000000 -0500
+++ Makefile 2024-05-28 01:24:06.000000000 -0500
@@ -5,9 +5,9 @@
# Enable compilation of Javascript decoder with Emscripten
#USE_EMCC=y
# Enable x265 for the encoder
-USE_X265=y
+#USE_X265=y
# Enable the JCTVC code (best quality but slow) for the encoder
-#USE_JCTVC=y
+USE_JCTVC=y
# Compile bpgview (SDL and SDL_image libraries needed)
USE_BPGVIEW=y
# Enable it to use bit depths > 12 (need more tests to validate encoder)
@@ -41,7 +41,7 @@
CFLAGS:=-Os -Wall -MMD -fno-asynchronous-unwind-tables -fdata-sections -ffunction-sections -fno-math-errno -fno-signed-zeros -fno-tree-vectorize -fomit-frame-pointer
CFLAGS+=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT
CFLAGS+=-I.
-CFLAGS+=-DCONFIG_BPG_VERSION=\"$(shell cat VERSION)\"
+CFLAGS+=-DCONFIG_BPG_VERSION=\"$(shell cat VERSION.txt)\"
ifdef USE_JCTVC_HIGH_BIT_DEPTH
CFLAGS+=-DRExt__HIGH_BIT_DEPTH_SUPPORT
endif
@@ -181,7 +181,7 @@
BPGDEC_LIBS:=-lpng $(LIBS)
BPGENC_LIBS+=-lpng -ljpeg $(LIBS)
-BPGVIEW_LIBS:=-lSDL_image -lSDL $(LIBS)
+BPGVIEW_LIBS:=$(shell pkg-config SDL_image --libs) $(LIBS)
endif #!CONFIG_WIN32
@@ -213,8 +213,8 @@
size bpgdec libbpg.o libavcodec/*.o libavutil/*.o | sort -n
gzip < bpgdec | wc
-install: bpgenc bpgdec
- 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