git-svn-id: https://mlt.svn.sourceforge.net/svnroot/mlt/trunk/mlt@710
d19143bc-622f-0410-bfdd-
b5b2a6649095
consumer_sdl_preview.o \
consumer_sdl_still.o
-CFLAGS += -I../.. `sdl-config --cflags`
+ifeq ($(targetos),Darwin)
+ CFLAGS +=-ObjC
+ LDFLAGS +=-lobjc -framework Foundation
+endif
+
+CFLAGS +=-I../.. `sdl-config --cflags`
+
+LDFLAGS +=`sdl-config --libs`
-LDFLAGS += `sdl-config --libs`
+LDFLAGS +=-L../../framework -lmlt
-LDFLAGS+=-L../../framework -lmlt
SRCS := $(OBJS:.o=.c)
// Get the wm structure
if ( SDL_GetWMInfo( &wm ) == 1 )
{
+#ifndef __DARWIN__
// Check that we have the X11 wm
if ( wm.subsystem == SDL_SYSWM_X11 )
{
*width = attr.width;
*height = attr.height;
}
+#endif
}
return changed;