echo "SHFLAGS=-dynamiclib"
echo "LDFLAGS+=`sdl-config --libs`"
;;
- Linux|GNU/kFreeBSD)
+ Linux|GNU/kFreeBSD|GNU)
[ "$(uname -m)" = "x86_64" ] && echo "ARCH_X86_64=1" && echo "CFLAGS+=-DARCH_X86_64"
[ "$optimisations" = "true" ] &&
echo "OPTIMISATIONS+=-ffast-math"
include ../../config.mak
+include config.mak
NAME = libmlt$(LIBSUF)
TARGET = $(NAME).$(version)
TARGET = $(NAME).$(version)
SONAME = $(NAME).$(soversion)
SHFLAGS += -Wl,-soname,$(SONAME)
+ ifeq ($(targetos), FreeBSD)
+ ifdef HAVE_SYS_PARAM_H
+ CFLAGS += -DHAVE_SYS_PARAM_H
+ endif
+ endif
endif
OBJS = mlt_frame.o \
#!/bin/sh
echo "framework -I$prefix/include -I$prefix/include/mlt -D_REENTRANT -L$libdir -lmlt" >> ../../packages.dat
+
+echo -n > config.mak
+if [ "$(uname -s)" = "FreeBSD" ]
+then
+ printf "#include <sys/param.h>\n int main(){ return 0;}" | gcc -c -x c - >/dev/null 2>&1
+ [ "$?" -eq 0 ] && echo "HAVE_SYS_PARAM_H=1" >> config.mak
+fi
+exit 0
#include "mlt_types.h"
-#if defined(__GLIBC__) || defined(__DARWIN__)
+#ifdef HAVE_SYS_PARAM_H
+#include <sys/param.h>
+#endif
+
+#if defined(__GLIBC__) || defined(__DARWIN__) || (__FreeBSD_version >= 1000002)
#include <xlocale.h>
#else
typedef void* locale_t;
echo "CXXFLAGS+=-D__DARWIN__ -Wall -fPIC"
echo "LIBFLAGS=-dynamiclib -single_module"
;;
- Linux|FreeBSD|NetBSD|GNU/kFreeBSD)
+ Linux|FreeBSD|NetBSD|GNU/kFreeBSD|GNU)
echo LIBSUF=.so
echo "CXXFLAGS+=-Wall $WARNINGS -fPIC -DPIC"
echo "LIBFLAGS=-shared"
av_register_all( );
#ifdef AVDEVICE
avdevice_register_all();
+#endif
+#if LIBAVFORMAT_VERSION_INT >= ((53<<16)+(13<<8))
+ avformat_network_init();
#endif
mlt_factory_register_for_clean_up( NULL, avformat_destroy );
av_log_set_level( mlt_log_get_level() );
*samples = *samples <= 0 ? 1920 : *samples;
*channels = *channels <= 0 ? 2 : *channels;
*frequency = *frequency <= 0 ? 48000 : *frequency;
+ *format = mlt_audio_s16;
// Calculate the size of the buffer
size = *samples * *channels * sizeof( int16_t );
sprintf( s, "ladspa.%lu", desc->id );
MLT_REGISTER( filter_type, s, filter_ladspa_init );
MLT_REGISTER_METADATA( filter_type, s, metadata, NULL );
+ free( s );
}
-// mlt_factory_register_for_clean_up( g_jackrack_plugin_mgr, (mlt_destructor) plugin_mgr_destroy );
+ mlt_factory_register_for_clean_up( g_jackrack_plugin_mgr, (mlt_destructor) plugin_mgr_destroy );
MLT_REGISTER( filter_type, "jackrack", filter_jackrack_init );
MLT_REGISTER_METADATA( filter_type, "jackrack", metadata, "filter_jackrack.yml" );
int err;
/* open the object file */
- dl_handle = dlopen (filename, RTLD_NOW|RTLD_GLOBAL);
+ dl_handle = dlopen (filename, RTLD_LAZY);
if (!dl_handle)
{
mlt_log_info( NULL, "%s: error opening shared object file '%s': %s\n",
#include <sys/ioctl.h>\r
#include <unistd.h>\r
#include <fcntl.h>\r
-#include "soundcard.h"\r
+#include <sys/soundcard.h>\r
#include <errno.h>\r
#include <math.h>\r
\r
--- /dev/null
+#!/bin/sh
+
+if [ "$help" != "1" ]
+then
+
+ if [ "$targetos" != "Darwin" ] && [ "$targetos" != "MinGW" ] && [ "$targetos" != "Linux" ]
+ then
+ echo "- only builds on Linux, OS X, or Windows: disabling"
+ touch ../disable-rtaudio
+ exit 0
+ fi
+fi