]> git.sesse.net Git - mlt/blobdiff - src/modules/opengl/Makefile
Add a little hack for linking against Movit with epoxy.
[mlt] / src / modules / opengl / Makefile
index 2ee2cae3f7ede663580e30fbe74e2cf7e44d50ca..7a55c6cb3ecf97023c75ec789210682488bc5b52 100644 (file)
@@ -1,6 +1,6 @@
-CFLAGS += -I../..
+CFLAGS := -I../.. $(CFLAGS)
 
-LDFLAGS += -L../../framework -lmlt -lm -lpthread
+LDFLAGS += -L../../framework -lmlt -lm
 
 include ../../../config.mak
 
@@ -25,10 +25,11 @@ CPPOBJS += filter_movit_saturation.o
 CPPOBJS += filter_movit_vignette.o
 CPPOBJS += filter_movit_white_balance.o
 CPPOBJS += mlt_movit_input.o
+CPPOBJS += transition_movit_luma.o
 CPPOBJS += transition_movit_mix.o
 CPPOBJS += transition_movit_overlay.o
 
-CXXFLAGS += -Wno-deprecated $(CFLAGS)
+CXXFLAGS := -Wno-deprecated $(CFLAGS) $(CXXFLAGS)
 CXXFLAGS += $(shell pkg-config --cflags movit 2> /dev/null)
 
 SHADERDIR = $(shell pkg-config --variable=shaderdir movit)
@@ -38,12 +39,12 @@ LDFLAGS += -L../../mlt++ -lmlt++
 
 ifeq ($(targetos), MinGW)
        CXXFLAGS += $(shell pkg-config --cflags glew)
-       LDFLAGS += -lmovit $(shell pkg-config --libs-only-L glew) -lglew32 -lopengl32
+       LDFLAGS += -lmovit $(shell pkg-config --libs-only-L glew) -lglew32 -lopengl32 -lpthread
 else
-       LDFLAGS += $(shell pkg-config --libs movit 2> /dev/null)
+       LDFLAGS += $(shell pkg-config --static --libs movit 2> /dev/null)
 ifeq ($(targetos), Darwin)
        CXXFLAGS += -FOpenGL
-       LDFLAGS += -framework OpenGL
+       LDFLAGS += -lpthread -framework OpenGL
 else
        OBJS += consumer_xgl.o
        LDFLAGS += -lpthread -lGL -lX11